Académique Documents
Professionnel Documents
Culture Documents
Topic
DML
Question Number 1 - of - 50
Content:
A. true
B. false
C. NoFlag
D. An SQL compilation error is generated.
E. EOF
A
A
The output of the SQL sample shown is true.
Correct Answer:
User Answer:
Explanation:
Subject
Topic
ASP.NET Ajax
Question Number 2 - of - 50
Question:
XMLDomainRequest
A.
JSRemoteScripting
B.
XMLHttpRequest
C.
JSHttpRequest
D.
HttpRequest
E.
Correct Answer: C
User Answer:
D
Explanation:
The XMLHttpRequest object can be used by JavaScript and other Web
browser scripting languages to transfer XML and other text data between a
Web server and a browser. The XMLHttpRequest object is the foundation for
the next generation of AJAX-enabled Web pages.
Subject
Topic
DDL
Question Number 3 - of - 50
isql
A.
isqlw
B.
osqlw
C.
bcp
D.
sqlcmd
E.
Correct Answer: E
User Answer:
E
Explanation:
The sqlcmd utility allows you to enter Transact-SQL statements, system
procedures, and script files at the command prompt. This utility uses OLE
DB to execute Transact-SQL batches.
Subject
MS .NET Framework 3.5
Topic
Question Number 4 - of - 50
Windows Forms
Windows
Visual Basic Script
Console
Windows Presentation Foundation UI
Correct
A; B;D;E
Answer:
User Answer: B ; D
Explanation: The correct answers are A, B, D, and E. WCF services can be hosted in a
Windows Forms application. You will need to add code to open and close the
host, as well as manage the availability of the service. WCF services can be
hosted by a Windows Presentation Foundation UI application, since they are also
managed .NET applications. WCF services can easily be hosted by a Console
application, and they typically are during the development process. WCF services
can also be hosted with Windows services, formerly known as Windows NT
services.
Subject
Topic
Question Number
5 - of - 50
Which of the following sets of methods are valid overloads of a method named
"GetCustomer"?
A.
B.
C.
D.
E.
Correct
B;D
Answer:
User Answer: B ; C
Explanation: Method overloads must have the same method name and different parameter
types or a varying number of parameters. The Return type can be the same, or it
can differ. Only options B and D meet the aforementioned criteria.
Subject
Topic
Question Number 6 - of - 50
Unique()
SelectUnique
SelectOnly
Distinct()
SelectDistinct()
Correct
D
Answer:
User Answer: D
Explanation: Use the Distinct() linq operator in order to be sure that every element in the
collection is unique.
Subject
Topic
ASP.NET
Question Number 7 - of - 50
a master page
a standard Label control
a control based on the Web user control template
a type derived from WebPart
a C# class
Correct
B;C;D
Answer:
User Answer: C ; D
Explanation: The correct answers are B, C, and D. A user control can be leveraged as a Web
Part by being placed into a Web Part zone.
ASP.NET will automatically define a Web Part when you place a standard
control, such as a Label, into a Web Part zone. You can create Web Parts by
defining custom controls based on the WebPart class.
Subject
Topic
State Management
Question Number 8 - of - 50
Which of the following types of data is/are most suitable for data caching?
(Select all that apply.)
A.
B.
C.
D.
E.
Correct
A;B
Answer:
User Answer: A ; C ; E
Explanation: Caching is the process of storing a copy of large amounts of data in memory.
This technique is used in order to increase the Web application performance.
Subject
Topic
ASP.NET
Question Number 9 - of - 50
application?
A.
B.
C.
D.
E.
Server_Error
Page_Error
Response_Error
Application_Error
OnError event
Correct
B;D
Answer:
User Answer: D ; E
Explanation: The correct answers are B and D. You can trap errors at the page level by using
the Page_Error method. You can catch application-wide, unhandled errors by
using the Application_Error method in the Global.asax file.
Subject
Topic
Question Number 10 - of - 50
Every linq query expression always ends with the ______ operator
A.
B.
C.
D.
E.
select
where
groupby
orderby
None of the options above are correct. A linq query
expression may
end either with either select or groupby.
Correct Answer: E
User Answer: E
Explanation:
Linq queries may end with either a select or a groupby statement.
Subject
Topic
ASP.NET Ajax
Question Number 11 - of - 50
A.
B.
C.
D.
E.
Sys.Serialization.JavaScriptSerializer.deserialize() method
gets called;
a new JavaScript function named "MyCustomJSONEncodedFuntion"
is created.
Sys.Serialization.JavaScriptSerializer.deserialize() method
gets called;
the resulting JavaScript code gets executed.
The string gets parsed; a new JavaScript function named
"MyCustomJSONEncodedFunction"
is created.
eval() assumes that the "MyCustomJSONEncodedFunction" string
is valid
JavaScript code and executes it.
None of the options above is correct. eval() can only execute
valid
JavaScript code.
Correct
D
Answer:
User Answer: C
Explanation: eval() assumes that the provided string is valid JavaScript code, and executes it
immediately.
Subject
Topic
Framework Related
Question Number 12 - of - 50
aspxnet_isapi.dll
aspnet_isapi.dll
asp_net.dll
w3wp.dll
none of the above
Correct
B
Answer:
User Answer: B
Explanation: The aspnet_isapi.ddl file is required. This isapi extension is the interface
between the IIS server and the worker process.
Subject
Topic
General Knowledge
Question Number 13 - of - 50
Correct
Answer:
User Answer:
Explanation:
Your Web application will restart if you make changes to its web.config file.
TRUE
FALSE
ASP.NET monitors the Web configuration file for changes and restarts the
Subject
Topic
General Knowledge
Question Number 13 - of - 50
Correct
Answer:
User Answer:
Explanation:
Subject
Topic
Your Web application will restart if you make changes to its web.config file.
TRUE
FALSE
ASP.NET monitors the Web configuration file for changes and restarts the
application if the file was modified.
Question Number 15 - of - 50
The view state data for a page is loaded between the __________ page events.
A.
B.
C.
D.
E.
Correct
Answer:
User Answer:
Explanation:
C
D
The view state data is loaded after the InitComplete event, and just before the
PreLoad event.
Subject
Topic
Silverlight
Question Number 16 - of - 50
In order to use the C# code below, you should add which of the following
statements to your code, behind the .cs file?
HtmlElement element =
HtmlPage.Document.GetElementByID("paragraph");
A.
B.
C.
D.
E.
using System.Windows.HtmlBrowser
using System.Windows.HtmlDom
using System.Windows.Browser
using System.HtmlDom.Browser
using System.HtmlDom
Correct
C
Answer:
User Answer: C
Explanation: In order to access and modify Html components from the current page, you
should use an instance of the HtmlPage.Document class, which can be found in
the System.Windows.Browser namespace.
Topic
Question Number 17 - of - 50
Elapsed Time:
Question:
1:05
Correct
Answer:
User Answer:
Explanation:
Subject
Topic
System.Drawing.Point
String
Integer
Decimal
Object
A; C;D
C;D
The correct answers are A, C, and D. Decimal, System.Drawing.Point, and
Integer are value types.
State Management
Question Number 18 - of - 50
Is there another way to control Output Caching for your page, other than using
the @ Outputcache directive?
Yes, you can add the ResponseCache section in your .config
A. file.
B. Yes, you can programmatically make use of the Response.Cache
C.
D.
E.
object.
Yes, you can programmatically make use of the
Response.HttpCachePolicy
object.
Yes, you can add an <object id="MyCustomCaheOBJ"
class="System.Web.HttpCachePolicy"
runat="server"/> to your global.asax file.
No, your page will not be cached if the @ Outputcache
directive is
not set in your .aspx file.
Correct
B
Answer:
User Answer: E
Explanation: You can programmatically control output cache for your page by using the
Response.Cache object, which is an instance of the
System.Web.HttpCachePolicy Class. This class provides the means for
managing Cache settings for your current page.
Subject
Topic
ASP.NET Ajax
Question Number 19 - of - 50
ScriptManager
UpdatePanel
PopupControl
Timer
UpdateProgress
Calendar
Correct
A; B;D;E
Answer:
User Answer: A ; B
Explanation: The ASP.NET Ajax framework provides the following Ajax-enabled Web
controls.
- UpdatePanel
- Timer
- UpdateProgress
The ScriptManager Web Server control adds the Ajax infrastructure to the
Webpage.
PopupControl is an Ajax control extender. (Ajax extenders can be attached to
any Web server control in order to add Ajax behavior.)
Subject
Topic
Config
Question Number 20 - of - 50
ASP.NET framework allows you to extend the structure of your .config files with
custom configuration sections. Any custom configuration element must be
registered within the _________ section of the .config file.
A.
B.
C.
D.
E.
Correct
Answer:
User
Answer:
Explanation
:
<customConfigSections>
<system.codedom>
<configSections>
<system.web>
none of the above
C
C
In order to register a new configuration section, you should add a new <section>
element to the <configSections> section of your custom .config file.
The following is an example.
<configSections>
<section name="scriptResourceHandler"
type="System.Web.Configuration.ScriptingScriptResourceHandlerSecti
on, System.Web.Extensions, Version=3.5.0.0, Culture=neutral,
PublicKeyToken=31BF3856AD364E35" requirePermission="false"
allowDefinition="MachineToApplication"/>
</configSections>
Subject
Topic
Question Number 21 - of - 50
You have created a client application that needs the WCF service to invoke a
callback method. Which of the following bindings supports this requirement?
wsHttpContextBinding
A.
wsHttpBinding
B.
basicHttpBinding
C.
customBinding
D.
wsDualHttpBinding
E.
Correct Answer: E
User Answer:
C
Explanation:
The correct answer is E. Although the wsDualHttpBinding binding is still
an HTTP-based binding, CompositeDuplexBindingElement has been added
to support the client's listening for a request from the service.
Subject
Topic
DML
Question Number 22 - of - 50
Which of the options below will produce the same result as the following code
snippet?
Content:
A.
B.
C.
D.
E.
Correct
Answer:
User Answer:
Explanation:
D
B
The syntax in Option D is the same as a cross join, which is a Cartesian
product.
Subject
Topic
Question Number 23 - of - 50
Correct
Answer:
User Answer:
Explanation:
IList
ISerializable
ICollection
IEnumerable
None of the options above are correct. The Array type is a
Value type.
A;C;D
A;C;D
The Array type is a Reference type, therefore Array instances are .NET objects.
The Array type represents a collection of objects, and its functionality is
implemented using the following interfaces.
- Ilist
- ICollections
- IEnumerable
Subject
Topic
Question Number 24 - of - 50
Correct
Answer:
User Answer:
Explanation:
Subject
Topic
() => {;}
x => ();
(x,y) => {x=y=0;}
(x,y) => x=y=0
x => {}
A;C;E
C;D
A Statement lambda is a lambda expression in which the right side is enclosed
in curly brackets.
Question Number 25 - of - 50
Question:
Which of the following code groups offers the most restrictive permission set?
A.
B.
C.
D.
E.
Correct
Answer:
User Answer:
Explanation:
Restricted_Zone
LocalIntranet_Zone
My_Computer_Zone
Internet_Zone
Custom_Zone
A
A
The correct answer is A. Restricted_Zone uses the Nothing permission set,
which grants no privileges.
Subject
Topic
General Knowledge
Question Number 26 - of - 50
Which of the following namespaces is a container for classes used to access the
data within the web.config file?
A.
B.
C.
D.
E.
System.Configuration
System.Net.Configuration
System.Web.Configuration
System.Web.UI
System.Web.XML
Correct
C
Answer:
User Answer: A
Explanation: Classes that can be used to access data within the web.config file belong in the
System.Web.Configuration namespace.
Subject
Topic
Security
Question Number 27 - of - 50
db_owner
db_datareader
db_datawriter
db_securityadmin
db_userdatareader
Correct
B
Answer:
User Answer: B
Explanation: The db_datareader database role allows only read access to user tables in the
database. The db_userdatareader does not exist.
Subject
Topic
Query Optimisation
Question Number 28 - of - 50
You are running SQL Server Profiler looking for long running queries, but there
is too much data to sift through. What filter should you apply to your trace to
show only the long running queries?
A.
B.
C.
D.
E.
Duration
CPU
Logical Reads
Writes
Physical Reads
Correct
A
Answer:
User Answer: A
Explanation: If you are looking for queries that are taking a long time to run, you should use
the Duration filter.
Subject
Topic
Question Number 29 - of - 50
Which of the following Delegate type definitions can be used for declaring a
new event object?
A. public delegate void delType(object sender, eventargs e);
public delegate Treturn delType < Treturn > (object sender,
B. eventargs
C.
D.
Correct
Answer:
User Answer:
Explanation:
args);
public delegate void delType < Tsender,Targs > (Tsender
sender, Targs
args);
public delegate void delType < Tsender,Targs > ( < Tsender >
sender,
< Targs > args);
A;C
C;D
The standard delegate type definition is the following.
Subject
Topic
State Management
Question Number 30 - of - 50
You can add any object to the View state, as long as the class from which it was
instantiated ____________________________.
A.
B.
C.
D.
Correct
A; C
Answer:
User
A; B
Answer:
Explanation: In order to store your object data in the View state, ASP.NET must be able to
convert this data into a stream of bytes. The process is called "Serialization," and
can be performed only on objects that implement this feature.
A Serializable class must have the [Serializable] attribute added to the class
definition and must implement the ISerializable interface.
Subject
Topic
General Knowledge
Question Number
Elapsed Time:
Question:
31 - of - 50
1:20
Which of the following statements is/are not true regarding abstract classes?
A. Abstract classes cannot define abstract methods.
An abstract class is a base model for a collection of derived
B. classes.
C. Abstract classes have no implementation.
D. An abstract class cannot be instantiated.
E. An abstract class can be instantiated.
Correct
A; E
Answer:
User Answer:
Explanation: An abstract class cannot be instantiated. The purpose of an abstract class is to
provide a common definition of a base class that multiple derived classes can
share.
Subject
Topic
Query Optimisation
Question Number 32 - of - 50
Content:
Which change to the query below will generate the best improvement in the query
plan? The query is designed to return any names that begin with Smith. The
dbo.Contact table has a million rows and a non clustered index on the
ContactName column.
A.
B.
C.
D.
E.
Correct
Answer:
User
Answer:
Explanation
:
D
D
The LIKE statement is incorrect because it will return any name that includes
"Smith." Removing the first wildcard will allow the optimizer to stop scanning the
index and perform a seek on it.
Subject
Topic
Indexes
Question Number 33 - of - 50
Correct Answer:
User Answer:
Explanation:
0
A.
1
B.
2
C.
16
D.
256
E.
B
B
Only one clustered index can be created on a table.
Subject
Topic
DDL
Question Number 34 - of - 50
Correct
TRUE
Answer:
User Answer: TRUE
Explanation: The statement is true. Unless a view is indexed, its data is not stored in the
database as an individual object. What is stored in the database is a SELECT
statement. The result set of the SELECT statement shapes the virtual table
returned by the view. You can utilize this virtual table by referencing the view
name in Transact-SQL statements, the same way you would reference a table.
Subject
Topic
DDL
Question Number 35 - of - 50
Which of the following is the best method to use to remove all the data from a
table in a minimally logged fashion?
A.
B.
C.
D.
E.
Correct
B
Answer:
User Answer: B
Explanation: TRUNCATE TABLE functions just like the DELETE statement with no WHERE
clause: it eliminates all rows in the table. Yet, TRUNCATE TABLE is quicker
and employs less system and transaction log resources than DELETE. The
DELETE statement eliminates rows one at a time and records an entry in the
transaction log for every deleted row. TRUNCATE TABLE eliminates the data
by deallocating the data pages employed to store the table's data, and just the
page deallocations are recorded in the transaction log.
Subject
Topic
Question Number 36 - of - 50
Your user account has Read permission to a file named text.txt. You run an
assembly in the My_Computer_Zone code group, which permits it the FullTrust
permission set. Which of the actions below can the assembly carry out on the
file?
A.
B.
C.
D.
E.
delete
change permissions
read
write
nothing
Correct
C
Answer:
User Answer: C
Explanation: The correct answer is C. You can read the file because your user account and the
assembly's CAS make it possible to read the file.
Subject
Active Server Pages.NET 3.5
Topic
State Management
Question Number 37 - of - 50
Cookies are another way to preserve user data between requests. Cookies are
typically used in order to save _____________________________.
A.
B.
C.
D.
E.
Correct
A;D
Answer:
User Answer: E
Explanation: Usually, cookies are used in order to save Personalization preferences for a Web
site. Because they are stored in clear text on the client machine, no sensitive data
should be placed within a cookie.
If cookies are enabled, they can also be used to store session IDs.
Subject
Topic
State Management
Question Number 38 - of - 50
In order to validate the data stored in View State, ASP.NET generates a Hash code
for View State data. The Hash code is stored
____________________________________.
in a hidden Input field inside the form sent to the browser
A. (____VIEWSTATEHASH)
B. in a cookie
C. in a temporary Database table
None of the options above are correct. The Hash code for the
Correct
D
Answer:
User Answer: D
Explanation: Hashes of the View-state data are created from the data by using a Machine
Authentication Code (MAC) key. The Hash value is added to the encoded Viewstate data, and the resulting string is stored in the page. By creating a Hash value,
the ASP.NET page framework can test whether the View-state data has been
corrupted or tampered with. However, even if it is not tampered with, View-state
data can still be intercepted and read by malicious users.
Subject
Topic
State Management
Question Number 39 - of - 50
C.
D.
E.
a cookie
an XML file
a CSV (Comma Separated Values) file
Correct
A
Answer:
User Answer: A
Explanation: View state data is stored as a hidden field in the current Web page, as shown in
the following example.
<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE"
value="/wEPDwULLTE2MDcwMDIzMDJkZABduTEEMNnRV0pm/RyEloUY5B+Y" />
Subject
Topic
Question Number 40 - of - 50
Correct
A
Answer:
User Answer: A
Explanation: The correct answer is A. An encrypted application configuration file is the
recommended location for storing sensitive information.
Subject
Topic
General Knowledge
Question Number 41 - of - 50
Which of the following connection types can you use to deploy an ASP.NET
Web application with the Copy Web tool?
A.
B.
C.
D.
E.
Correct
Answer:
User Answer:
Explanation:
Subject
Topic
Shared Folders
SMTP
Http
Ftp
P2P
A; C;D
A; C;D
Your ASP.NET application can be deployed, one of the following methods.
- HTTP
- FTP
- Shared Folders
Troubleshooting
Question Number 42 - of - 50
What is the most efficient and simplest method to measure the Execution time of
Event Handler methods in a page?
A. Store the DateTime.Now value at Execution Start and Execution
End,
then subtract one from the other.
Review the machine's EventLogs.
B.
C. Enable Tracing.
D. to load.
E. Review the Web server's logs.
Correct
C
Answer:
User Answer: A
Explanation: While option A provides a valid method of measuring execution times, Tracing
offers a built-in log of execution times for all the Page-level event handlers.
Additional traces can be added to the list to measure the Execution time for a
specific code block. Option B is incorrect because the machine's EventLog does
not record page level events. Options D and E can reveal the time it took for the
request to execute as a whole, but offer no information about Event-level
Execution times.
Subject
Topic
General Knowledge
Question Number 43 - of - 50
Which of the following member types can be accessed from within the page
(.aspx) if they are declared within the Page class?
A.
B.
C.
D.
E.
Correct
E
Answer:
User Answer: A
Explanation: The only protection level that the .aspx Partial class cannot access is the Private
protection level. Protected and Public members are available to the .aspx
Partial class.
Subject
Topic
Question Number 44 - of - 50
Correct
Answer:
User Answer:
Explanation:
System.Drawing.Point
EventHandler
Boolean
String
Nullable
B;E
B;E
The correct answers are B and E. Both Nullable and EventHandler are
generic types.
Subject
Topic
Question Number 45 - of - 50
Question:
Stack
Array
Queue
HashTable
Dictionary
Correct
A
Answer:
User Answer: C
Explanation: Undo feature implementation relies on the Last In First Out paradigm. The .NET
framework provides a Stack class that implements a Stack algorithm (LIFO).
Subject
Topic
Question Number 46 - of - 50
You want to host a WCF service by using a Windows service, and you have
already created the Windows service application. What else must you do to load
your new Windows service?
A. You don't need to do anything else.
You need to execute the installutil command-line utility in
B. order to
C.
D.
Correct
E.
B
Answer:
User Answer: B
Explanation: The correct answer is B. You can run the installutil command-line utility to
install the service. The service will then be available through the service control
manager.
Subject
Topic
Question Number 47 - of - 50
Because the Page class and the Web Control class are derived from the Control
class, the following events are common for the Page objects as well as for any
asp.web controls.
A.
B.
C.
D.
E.
DataBinding
Init
PreLoad
LoadComplete
Render
Correct
A;B
Answer:
User Answer: B ; C ; D
Explanation: The following table shows the complete list of events available for any asp.net
Control-derived class.
Content:
Subject
Topic
DDL
Question Number 48 - of - 50
What changes will be made to the transaction log once the code snippet below
is run?
Content:
Subject
B
C
Transactions, whether explicit or implicit, are only logged once a data
modification has been made.
Topic
General Knowledge
Question Number 49 - of - 50
Correct
Answer:
User Answer:
Explanation:
A
A
Database connection related information is stored within the connection string
in the web.config file.
Subject
Topic
Question Number 50 - of - 50
IList
ISerializable
ICollection
D.
E.
Correct
Answer:
User Answer:
Explanation:
IEnumerable
IComparable
A; C;D
A; C
The following is the C# syntax for the CollectionBase class.
[SerializableAttribute] [ComVisibleAttribute(true)]
public abstract class CollectionBase : IList, ICollection,
IEnumerable