Vous êtes sur la page 1sur 36

Subject

Topic

MS SQL Server 2008- Programming

DML

Question Number 1 - of - 50

Elapsed Time: 0:42


Question:

What is the output of the SQL sample below?

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

Active Server Pages.NET 3.5

ASP.NET Ajax

Question Number 2 - of - 50

Elapsed Time: 1:58

Question:

Which of the following Javascript objects manages AJAX requests?

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

MS SQL Server 2008- Programming

DDL

Question Number 3 - of - 50

Elapsed Time: 0:27


Question:

Which of the following features is the new replacement for osql?

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

Windows Communication Foundation (WCF)

Question Number 4 - of - 50

Elapsed Time: 3:23


Question:

Which of the following can be used to host a WCF service in a managed


application?
A.
B.
C.
D.
E.

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

Active Server Pages.NET 3.5

Topic

Linq and related technologies

Question Number
5 - of - 50

Elapsed Time: 3:26


Question:

Which of the following sets of methods are valid overloads of a method named
"GetCustomer"?
A.
B.
C.
D.
E.

public Customer GetCustomer(){return new Customer();} public


ArrayList GetCustomer(){return
new ArrayList();}
public ArrayList GetCustomer(){return new ArrayList();} public
ArrayList GetCustomer(int
id){return new ArrayList();}
public ArrayList GetCustomers(){return GetCustomer();} public
ArrayList GetCustomer(){return
new ArrayList();}
public string GetCustomer(int id){return "John";}public
Customer GetCustomer(string
name) {return new Customer();}
public Customer GetCustomer(int id){return new
Customer();}public Customer
GetCustomer(int x){return new Customer();}

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

Active Server Pages.NET 3.5

Topic

Linq and related technologies

Question Number 6 - of - 50

Elapsed Time: 1:02


Question:

Sometimes, information is duplicated in query results. Which of the following

operators should be used in order to remove duplication?


A.
B.
C.
D.
E.

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

MS .NET Framework 3.5

Topic

ASP.NET

Question Number 7 - of - 50

Elapsed Time: 2:50


Question:

Which of the following can be a Web Part?


A.
B.
C.
D.
E.

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

Active Server Pages.NET 3.5

Topic

State Management

Question Number 8 - of - 50

Elapsed Time: 1:31


Question:

Which of the following types of data is/are most suitable for data caching?
(Select all that apply.)
A.
B.
C.
D.
E.

a dynamically generated XML file


a table retrieved from a database
user authentication tokens
a shopping cart
custom Web control settings

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

MS .NET Framework 3.5

ASP.NET

Question Number 9 - of - 50

Elapsed Time: 2:18


Question:

Which of the following can you use to catch unhandled exceptions in an

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

Active Server Pages.NET 3.5

Topic

Linq and related technologies

Question Number 10 - of - 50

Elapsed Time: 1:47


Question:

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

Active Server Pages.NET 3.5

Topic

ASP.NET Ajax

Question Number 11 - of - 50

Elapsed Time: 1:26


Question:

What happens when the following Javascript code gets executed?


eval(MyCustomJSONEncodedFunction);

Note: "MyCustomJSONEncodedFunction" is a valid JSON string.

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

Active Server Pages.NET 3.5

Framework Related

Question Number 12 - of - 50

Elapsed Time: 1:53


Question:

Which of the following isapi extensions is loaded by the IIS in order to


manage requests for aspx files?
A.
B.
C.
D.
E.

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

Active Server Pages.NET 3.5

General Knowledge

Question Number 13 - of - 50

Elapsed Time: 0:26


Question:

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

application if the file was modified.

Subject

Topic

Active Server Pages.NET 3.5

General Knowledge

Question Number 13 - of - 50

Elapsed Time: 0:26


Question:

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.

Active Server Pages.NET 3.5

Page Life Cycle

Question Number 15 - of - 50

Elapsed Time: 2:10


Question:

The view state data for a page is loaded between the __________ page events.

A.
B.

PreInit and Init


Init and InitComplete

C.
D.
E.
Correct
Answer:
User Answer:
Explanation:

InitComplete and PreLoad


Preload and Load
Load and LoadCompleted

C
D
The view state data is loaded after the InitComplete event, and just before the
PreLoad event.

Subject

Active Server Pages.NET 3.5

Topic

Silverlight

Question Number 16 - of - 50

Elapsed Time: 1:43


Question:

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.

MS .NET Framework 3.5

Topic

Common Type System (CTS)

Question Number 17 - of - 50

Elapsed Time:

Question:

1:05

Which of the following options are value types?


A.
B.
C.
D.
E.

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.

Active Server Pages.NET 3.5

State Management

Question Number 18 - of - 50

Elapsed Time: 1:46


Question:

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

Active Server Pages.NET 3.5

Topic

ASP.NET Ajax

Question Number 19 - of - 50

Elapsed Time: 1:13


Question:

The ASP.NET Ajax framework provides several Ajax-enabled Web controls.


From the options listed below, select all that apply.
A.
B.
C.
D.
E.
F.

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

Active Server Pages.NET 3.5

Topic

Config

Question Number 20 - of - 50

Elapsed Time: 1:07


Question:

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

MS .NET Framework 3.5

Windows Communication Foundation (WCF)

Question Number 21 - of - 50

Elapsed Time: 1:35


Question:

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

MS SQL Server 2008- Programming

DML

Question Number 22 - of - 50

Elapsed Time: 1:18


Question:

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:

SELECT * FROM ProductA INNER JOIN ProductB


SELECT * FROM ProductA LEFT JOIN ProductB
SELECT * FROM ProductA RIGHT JOIN ProductB
SELECT * FROM ProductA CROSS JOIN ProductB
SELECT * FROM ProductA FULL JOIN ProductB

D
B
The syntax in Option D is the same as a cross join, which is a Cartesian
product.

Subject

Active Server Pages.NET 3.5

Topic

Linq and related technologies

Question Number 23 - of - 50

Elapsed Time: 1:15


Question:

The Array type implements which of the following interfaces?


A.
B.
C.
D.
E.

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

Active Server Pages.NET 3.5

Topic

Linq and related technologies

Question Number 24 - of - 50

Elapsed Time: 0:44


Question:

Which of the following options is/are valid Statement lambda(s)?


A.
B.
C.
D.
E.

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.

MS .NET Framework 3.5

.NET Framework Programming

Question Number 25 - of - 50

Elapsed Time: 0:23

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

Active Server Pages.NET 3.5

Topic

General Knowledge

Question Number 26 - of - 50

Elapsed Time: 0:21


Question:

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

MS SQL Server 2008- Programming

Topic

Security

Question Number 27 - of - 50

Elapsed Time: 0:17


Question:

Which of the following database-level roles limits a user's permissions to


reading all data from all user tables?
A.
B.
C.
D.
E.

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

MS SQL Server 2008- Programming

Query Optimisation

Question Number 28 - of - 50

Elapsed Time: 1:32


Question:

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

Active Server Pages.NET 3.5

Topic

Linq and related technologies

Question Number 29 - of - 50

Elapsed Time: 1:18


Question:

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.

public delegate void eventHandler ( object sender, eventArgs


args );

You can also use a generic definition, as follows.

public delegate void delType < Tsender,Targs > ( Tsender


sender, Targs args );
only if
public event delType < object, eventArgs > MouseDown;

Subject

Active Server Pages.NET 3.5

Topic

State Management

Question Number 30 - of - 50

Elapsed Time: 2:25


Question:

You can add any object to the View state, as long as the class from which it was
instantiated ____________________________.
A.
B.
C.
D.

implements the ISerializable interface


implements the IBindToViewState interface
is marked as serializable using [Serializable] attribute
implements the IByteStreamSerialization interface

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

Active Server Pages.NET 3.5

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

MS SQL Server 2008- Programming

Query Optimisation

Question Number 32 - of - 50

Elapsed Time: 0:53


Question:

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
:

Change the index to a clustered index.


Remove the non clustered index.
Add statistics to the column ContactName.
Change the LIKE statement to 'Smith%'.
Change the LIKE statement to 'Smith[^]'.

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

MS SQL Server 2008- Programming

Indexes

Question Number 33 - of - 50

Elapsed Time: 0:31


Question:

How many clustered indexes can be created on a table in SQL 2008?

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

MS SQL Server 2008- Programming

Topic

DDL

Question Number 34 - of - 50

Elapsed Time: 0:14


Question:

A view can be thought of as either a virtual table or a stored query.

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

MS SQL Server 2008- Programming

Topic

DDL

Question Number 35 - of - 50

Elapsed Time: 0:44


Question:

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.

DELETE TABLE [dbo].[Contact]


TRUNCATE TABLE [dbo].[Contact]
DELETE FROM [dbo].[Contact]
TRUNCATE [dbo].[Contact]
DROP [dbo].[Contact]

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

MS .NET Framework 3.5

Topic

.NET Framework Programming

Question Number 36 - of - 50

Elapsed Time: 0:39


Question:

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

Elapsed Time: 1:38


Question:

Cookies are another way to preserve user data between requests. Cookies are
typically used in order to save _____________________________.
A.
B.
C.
D.
E.

Personalization preferences for a Website


Authentication tokens
Session data
Session IDs
any kind of data. There is no limitation to what type of data
should be placed within
a cookie

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

Active Server Pages.NET 3.5

State Management

Question Number 38 - of - 50

Elapsed Time: 0:16


Question:

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

D. current View State

data is embedded with the View-state data.

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

Active Server Pages.NET 3.5

Topic

State Management

Question Number 39 - of - 50

Elapsed Time: 0:42


Question:

ViewState is usually used by Web control objects in order to retain their


properties between Postbacks. View state data is stored as
__________________________.
A.
B.

a hidden field in the current Web page


a temporary database entry

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

MS .NET Framework 3.5

Topic

Base Class Libraries (BCL)

Question Number 40 - of - 50

Elapsed Time: 0:18


Question:

If you must use a username and password to connect to a database, where


should you store the sensitive information?
A.
B.
C.
D.
E.

in an encrypted application configuration file


in a resource file deployed with the application
in the registry
compiled in the application
in the INI file

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

Active Server Pages.NET 3.5

Topic

General Knowledge

Question Number 41 - of - 50

Elapsed Time: 0:15


Question:

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

Active Server Pages.NET 3.5

Troubleshooting

Question Number 42 - of - 50

Elapsed Time: 1:02


Question:

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.

Use a Browser Plugin to measure the time it takes for a page

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

Active Server Pages.NET 3.5

Topic

General Knowledge

Question Number 43 - of - 50

Elapsed Time: 0:50


Question:

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.

Private and Public members


Private and Protected members
Public members
Protected members
Public and Protected members

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

MS .NET Framework 3.5

.NET Framework Programming

Question Number 44 - of - 50

Elapsed Time: 0:36


Question:

Which of the following are examples of built-in generic types?


A.
B.
C.
D.
E.

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

Active Server Pages.NET 3.5

Topic

Linq and related technologies

Question Number 45 - of - 50

Elapsed Time: 0:50

Question:

If your Web application requires the implementation of an "undo" capability,


which of the following Collection types should be used, in order to keep track of
all the changes within a Webpage?
A.
B.
C.
D.
E.

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

MS .NET Framework 3.5

Topic

Windows Communication Foundation (WCF)

Question Number 46 - of - 50

Elapsed Time: 0:23


Question:

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

install the service.


You need to add the application to the machine.config file for
your
server computer.
You need to add the application to the app.config file for
your WCF
service.
You need to add the application to the regedit.

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

Active Server Pages.NET 3.5

Topic

Page Life Cycle

Question Number 47 - of - 50

Elapsed Time: 0:21


Question:

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

MS SQL Server 2008- Programming

Topic

DDL

Question Number 48 - of - 50

Elapsed Time: 1:45


Question:

What changes will be made to the transaction log once the code snippet below
is run?

Content:

The beginning of the transaction will be logged. The SELECT

A. will be ignored because


it makes no changes.

B. Nothing will be logged until a data modification is made.


The beginning of the transaction will be logged, and the

C. SELECT will also be logged.


D. Nothing will be logged until the transaction is committed.
E. none of the above
Correct
Answer:
User Answer:
Explanation:

Subject

B
C
Transactions, whether explicit or implicit, are only logged once a data
modification has been made.

Active Server Pages.NET 3.5

Topic
General Knowledge

Question Number 49 - of - 50

Elapsed Time: 0:17


Question:

Information regarding a database connection is stored within


_____________________.
A.
B.
C.
D.
E.

Correct
Answer:
User Answer:
Explanation:

the connectionstrings section of the web.config file


the databaseconnection section of the global.asax file
the databases section of a web.config file
the config sections of the global.asax file
none of the above

A
A
Database connection related information is stored within the connection string
in the web.config file.

Subject

Active Server Pages.NET 3.5

Topic

Linq and related technologies

Question Number 50 - of - 50

Elapsed Time: 1:20


Question:

Which of the following interfaces are implemented by the CollectionBase


class?
A.
B.
C.

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

The CollectionBase class implements the Ilist, ICollection, and


IEnumerable interfaces.

Vous aimerez peut-être aussi