question mt2 sem c

41
1 When a Web page uses a master page to help define its layout and functionality, it is known as a _________ page. 1, Web Farm 2, Content 3, Web Form 4, Nested Master 2 2 Using which of the following can you maintain the state data of your web server control, even when the ViewState property is disabled for the page? 1, ControlState data 2, Session.Start 3, Application.Start 4, StateServer Mode 1 3 Which of the following data-bound controls displays one or more records from a data source, one record at a time? 1, GridView Control 2, TreeView Control 3, DetailsView Control 4, DataList Control 3 4 Which of the following controls features hierarchical data-binding and may be bound to an XmlDataSource or a SiteMapDataSource? 1, DropDownList Control m 2, Menu Control m 3, DataList Control m 4, GridView Control m 2 5 Which of the following classes provides methods for creating, deleting, and updating user accounts, authenticating users, and managing passwords? 1, Members Class m 2, Membership Class m 3, Member Class m 4, FormsAuthentication Class m 2 6 Which of the following data-bound controls displays multiple records, typically in a table and does not provide a predetermined layout for the data. 1, Menu Control m 2, DataList Control m 3, GridView Control m 4, DetailsView Control m 2 7 Which of the following uses a separate resource file for each culture? m 1, Globalization m 2, Implicit Localization m 3, Explicit Localization m 4, Localization m 2 8 The public methods and properties of a master page can be accessed in a content page by assigning a class name to the master page. Which directive can be used to assign a class name to the master page? M 1, <%@ Master %> m 2, <%@ Page %> m

Upload: rinku99

Post on 27-Apr-2015

3.525 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Question Mt2 Sem c

1 When a Web page uses a master page to help define its layout and functionality, it is known as a _________ page.

1, Web Farm 2, Content 3, Web Form 4, Nested Master 2

2 Using which of the following can you maintain the state data of your web server control, even when the ViewState property is disabled for the page?

1, ControlState data 2, Session.Start 3, Application.Start 4, StateServer Mode 1

3 Which of the following data-bound controls displays one or more records from a data source, one record at a time?

1, GridView Control 2, TreeView Control 3, DetailsView Control 4, DataList Control 3

4 Which of the following controls features hierarchical data-binding and may be bound to an XmlDataSource or a SiteMapDataSource?

1, DropDownList Control m2, Menu Control m3, DataList Control m4, GridView Control m 2

5 Which of the following classes provides methods for creating, deleting, and updating user accounts, authenticating users, and managing passwords?

1, Members Class m2, Membership Class m3, Member Class m4, FormsAuthentication Class m 2

6 Which of the following data-bound controls displays multiple records, typically in a table and does not provide a predetermined layout for the data.

1, Menu Control m2, DataList Control m3, GridView Control m4, DetailsView Control m 2

7 Which of the following uses a separate resource file for each culture? m1, Globalization m2, Implicit Localization m3, Explicit Localization m4, Localization m 2

8 The public methods and properties of a master page can be accessed in a content page by assigning a class name to the master page. Which directive can be used to assign a class name to the master page? M1, <%@ Master %> m2, <%@ Page %> m3, <%@ MasterType %> m4, <%@ Control %> m 1

9 Which of the following is NOT a feature of composite Web server controls?

1.They have a user interface that is composed of several custom Web server controls. 2, They derive from the System.Web.UI.WebControls.CompositeControls class. 3, They create the child controls by overriding the CreateChildControls method.4, They are compiled into an assembly in the Bin folder before you deploy the application. 1

10 Repeater, DataList, and GridView Web server controls are examples of which type of controls?

1, User Controls m

Page 2: Question Mt2 Sem c

2, Custom Web server controls m3, Template controls m4, Navigation controls m 3

11 Which of the following can be used to configure the way encryption is used to protect forms authentication cookies and view state information in a Web form?1, <trace> 2, <machine Key> 3, <custom Errors> 4, <script> m 2

12 To use the objects of GDI+, an object of the Graphics class must be created. Which of the following methods of the Graphics class is used to free all the resources being used by the currently loaded graphic? M

1, Flush m2, Dispose m3, Clear m4, Kill m 2

13 The Alternate View class can be used to embed an attachment to an E-mail message. Which of the following enables the Alternate View class to embed images in a message? M

1, Attachment m2, Base Uri m3, Content Link m4, Linked Resources m 4

14 There are different ways of specifying security permissions in your code. Which of the following uses code attributes to specify the permissions that are required to execute an assembly? M

1, Imperative syntax m2, caspol.exe m3, Declarative syntax m4, TlbImp.exe m 3

15 Host evidence is the evidence from the application domain or the host in which an assembly executes. Which of the following is NOT a type of host evidence? M1, Site m2, Zone m3, Subscriber m4, Hash m 3

16 "Consider the following statements in context of the encryption classes available in .Net Framework 2.0:

Statement A: The Rijndael algorithm in the .Net Framework supports an encryption key from 40 bits to 128 bits in increments of 8 bits.Statement B: RC"1, Statement A is TRUE and statement B is FALSE. M2, Statement B is TRUE and statement A is FALSE. M3, Both statements, A and B, are TRUE. M4, Both statements, A and B, are FALSE. M 4

17 ASP.NET profiles can be best described by which of the following options? M

1, An ASP.NET profile consists of a set of named properties that is stored for each user. M2, An ASP.NET a profile is a collection of property settings that enable a developer to define the look of pages and controls and then applies the look consistently across pages. M3, An ASP.NET profile provides a tracing system that can be used to generate the diagnostic information which can be written to logs, text file, or the screen. M4, An ASP.NET profile enables a developer to store objects and data in the server's memory for reuse. m 1

18 ASP.NET themes can be best described by which of the following options?

1, An ASP.NET theme consists of a set of named properties that is stored for each user. M2, An ASP.NET theme is a collection of property settings that enable a developer to define the look of pages and controls and then applies the look consistently across page3, An ASP.NET theme provides a tracing system that will used to generate the diagnostic information which can be written to logs, text file or the screen. 4, An ASP.NET theme enables a developer to store object and data in the server's memory for reuse. m 2

Page 3: Question Mt2 Sem c

19 After storing the name of the preferred theme for each user in the Preferred Theme property of the user's ASP.NET profile, which of the following code snippets can be used to set this theme programmatically as each page loads? M

1, <@ Page Theme = Profile.PreferedTheme %> m

"2, <configuration> <system.web>

<pages theme = Profile.PreferedTheme /> </system.web>

</configuration> m" "

3, void Page_PreInit (object sender, EventArgs e) {

Page. Theme = Profile.PreferredTheme; } "

4, void Page_Load (object sender, EventArgs e) { Page. Theme = Profile.PreferredTheme; } m" 3

20 Which of the following can be used to set the "BlueSky" theme for the entire application in the Web.config file? M

1, <@ Page Theme = "BlueSky" %> m

"2, <configuration> <system.web> <pages theme = "" BlueSky"" /> </system.web>

</configuration> m" "

3, void Page_PreInit(object sender, EventArgs e) {

Page.Theme = "" BlueSky"" ;} m" "

4, void Page_Laod (object sender, EventArgs e) {

Page. Theme = "BlueSky" ;} m" 2

21 "Consider the following statements: Statement A: While defining a theme, the name of the folder created in App_Theme folder must be the same as the name of the theme.Statement B: While creating a skin file, the name of the skin file created must be the"

1, Statement A is TRUE, Statement B is FALSE. M2, Statement A is FALSE, Statement B is TRUE. M3, both statements, A and B, are TRUE. M4, both statements, A and B, are FALSE. M 1

22 "Consider the following statements in context of the Copy Web Site utility:

Statement A: If the Web site contains source files that do not compile, they will not get copied by the Copy Web Site utility.Statement B: If the Copy Web Site utility is used as"

1, Statement A is TRUE and Statement B is FALSE. M2, Statement A is FALSE and statement B is TRUE. M3, both statements, A and B, are TRUE. M4, both statements, A and B, are FALSE. M 2

23 While using the Publish Web Site utility, when you choose to prevent editing of the ASPX files at the destination site, the markup from the ASPX files is removed. What does the utility create instead of the ASPX markup? M

1, .Exe file m2, DLL assemblies m3, HTML code m4, Plain text m 2

Page 4: Question Mt2 Sem c

24 You can select "Allow this precompiled site to be updateable" option, to be able to bring about changes in the aspx files after publishing the site. What type of changes can you make to the aspx files on selecting this option? m

1, Changes to the code of the ASPX files. m2, Changes to the layout of the ASPX files. m3, Changes to the location of the ASPX files. m4, Changes to the extension of the ASPX files. m 2

25 Visual Studio 2005 includes Device Emulator 1.0. Which of the following is NOT emulated by this software? M

1, Microsoft Windows CE 5.0 m2, Microsoft Pocket PC 2003 m3, Symbian OS S60 m4, Microsoft Smartphone 2003 m 3

26 Which of the following Mobile controls is used to group child controls and can modify several child controls in a single operation? M

1, ObjectList m2, Form m3, Panel m4, List m 3

27 In an application you are creating, the icon associated with MS Paint is to be displayed to the users. This is required to indicate that MS Paint will be opened if the users request to open any image files within the application. Which of the following code:

1, Icon PaintIcon = Icon.ExtractAssociatedIcon("C:\WINDOWS\system32\mspaint.exe"); m

2, SystemIcons PaintIcon = SystemIcons.ExtractAssociatedIcon("C:\WINDOWS\system32\mspaint.exe");

3, Icon PaintIcon = IconConverter.ExtractAssociatedIcon("C:\WINDOWS\system32\mspaint.exe");

4, SystemIcons PaintIcon = SystemIcons.FromHandle("C:\WINDOWS\system32\mspaint.exe"); m 1

28 You are working as a System Administrator with RedSky Inc. You need to set and configure the Security Policies to be granted to the assemblies being created by the different developers in the organization. Before you carry out this task, you want to view

1, Ienumerator policyEnum = SecurityManager.PolicyHierarchy();while(policyEnum.MoveNext()){

PolicyLevel currentLevel = (PolicyLevel)policyEnum.Current; Console.WriteLine(""Policy Level {0}:"", currentLevel.Label);

} m" "

2, Ienumerator policyEnum = SecurityManager.PolicyHierarchy();while(policyEnum.MoveNext()){

PolicyStatement currentStatement = (PolicyStatement)policyEnum.Current; Console.WriteLine(""Policy Level {0}:"", currentStatement.Label);

} m" "

3, Ienumerator policyEnum = Assembly.PolicyHierarchy();while(policyEnum.MoveNext()){

PolicyStatement currentStatement = (PolicyStatement)policyEnum.Current; Console.WriteLine(""Policy Level {0}:"", currentStatement.Label);

} m" "

4, Ienumerator policyEnum = SecurityManager.PolicyHierarchy();while(policyEnum.MoveNext()){

Policy currentLevel = (Policy)policyEnum.Current; Console.WriteLine(""Policy Level {0}:"", currentLevel.Label);

} m" 1

Page 5: Question Mt2 Sem c

29 Bryan has created an inventory control application. Now, for the assembly of this application he wishes to provide certain customized metadata such as the version number, creator's name, and description of the assembly. Which of the following should Bryan?

1, Assembly class m2, AssemblyInfo file m3, Reflection m4, PropertyInfo class m 2

30 A memory management application developed by you needs to access certain functions provided in kernel32.dll file located in "C:\windows\system32" directory. How will you locate and call the function included in kernel32.dll from your application? m

1, Use Delegates. m2, Use Platform Invoke. m3, Copy the file in the application folder and reference it in the application. 4, Include the complete path of the file in the application's code. m 2

31 To eliminate the problem of flickering occurring on the screen while rendering graphics, you have decided to implement double buffering in your code. You need to allocate memory to a specific object for implementing double buffering using the BufferedGrap

1, Graphics class m2, BufferredGraphicsManager class m3,SystemColors class m4, BufferredGraphics class m 2

32 "Sam wants to configure his ASP.NET application to enable profiles and define a FavColor property to track each user's favorite color. Sam also wants to configure the property to track both anonymous users and logged-on users. He has already checked that " "

1, <system.web> <properties> <profile> <anonymousIdentification enabled= ""true"" />

<add name = ""FavColor"" type= ""System.String"" allowAnonymous= ""true""/> </profile> </propertie" "

2, <system.web> <profile> <properties> <anonymousIdentification enabled= ""true"" />

<add name = ""FavColor"" type= ""System.String"" allowAnonymous= ""true""/> </properties> </profile>

</system.web> m" "

3, <system.web> <anonymousIdentification enabled= ""true"" /> <profile> <properties>

<add name = ""FavColor"" type= ""System.String"" allowAnonymous= ""true""/> </properties>

</profile></system.web> m" "

4, system.web> <anonymousIdentification enabled= ""true"" /> <properties> <profile>

<add name = ""FavColor"" type= ""System.String"" allowAnonymous= ""true""/> </profile> </properties>

</system.web> m" 3

33 "Sam wants to define his own page theme for his Web application with a name LabelThm. The theme should be defined in such a way that all Label controls

Page 6: Question Mt2 Sem c

on the page should appear with the following settings:Fore color = redFont size= 14ptFont name= Verd" "

1, a) Create a new folder LabelThm_Theme in \App_Themes folder for the application.b) In the LabelThm_Theme folder add a skin file with the name LabelThm.skin.c) In the LabelThm.skin file, add the following definitions:

<asp:Label runat= " "

2, a) Create a new folder LabelThm in \App_Themes folder for the application. b) In the LabelThm folder, add a skin file with the name LabelThm.skin. c) In the LableThm.skin file, add the following definitions:

<asp:Label runat= ""serve" "

3, a) Create a new folder LabelThm_Theme in \App_Themes folder for the application. b) In the LabelThm_Theme folder, add a skin file with the name LabelThm.aspx.skin. c) In the LableThm.aspx.skin file, add the following definitions:

<asp:Label" "

4, a) Create a new folder LabelThm in \App_Themes folder for the application. b) In the LabelThm folder, add a skin file with the name LabelThm.aspx.skin. c) In the LableThm.aspx.skin file, add the following definitions:

<asp:Label runat= ""server" 2

34 "Sam has created two themes with the names Theme1 and Theme2. Sam wants to implement these themes at run time on the basis of values of theme variables in the QueryString. In case value of the theme variable is Thm1, Theme1 should be applied. In case val" "

1, void Page_Load (object sender, EventArgs e){

switch (Request.QueryString[""theme""]) {

case ""Thm1"":Page.Theme = ""Theme1"";break;

case ""Thm2"":Page.Theme = ""Theme2"";break;

}} m" "

2, void Page_PreInit(object sender, EventArgs e){

switch (Request.QueryString[""theme""]) { case ""Thm1"": Page.Theme(""Theme1""); break; case ""Thm2"": Page.Theme (""Theme2"") " "

3, void Page_Load (object sender, EventArgs e){

switch (Request.QueryString[""theme""]) {

case ""Thm1"":Page.Theme(""Theme1"");break;

case ""Thm2"":Page.Theme(""Theme2"");break;

}} m" "

Page 7: Question Mt2 Sem c

4, void Page_PreInit(object sender, EventArgs e){

switch (Request.QueryString[""theme""]) { case ""Thm1"": Page.Theme = ""Theme1""; break; case ""Thm2"": Page.Theme = ""Theme2""; " 4

35 Sam is developing a Web application. He has already configured his Web site to track a profile property FavColor. Now he wants to create a page "profile.aspx" to set the value of FavColor profile. In the profile.aspx page, he has created a Textbox control

"1, void SetFavColor_Click(object sender, System.EventArgs e){ Profile.FavColor =Server.HTMLEncode(textFavColor.Text);}

2 void SetFavColor_OnClick(object sender, System.EventArgs e){ Profile.FavColor =Server.HTMLEncode(textFavColor.Text);} m

3, void SetFavColor_OnClick(object sender, System.EventArgs e){ FavColor.Profile =Server.HTMLEncode(textFavColor.Text);} m" "

4, void SetFavColor_Click(object sender, System.EventArgs e){ FavColor.Profile=Server.HTMLEncode(textFavColor.Text);} m" 1

36 Sam wants to configure his ASP.NET application to enable profiles. He wants to define a group of two properties, FirstName and LastName under the group name Person to track each user's name. Sam wants to configure this property to track only logged-on use "1, <system.web>

<properties> <anonymousIdentification enabled=""false""/> <profile >

<add groupName= ""Person"" name=""FirstName"" type=""System.String"" allowAnonymous=""false"" /> <add groupName = ""Person"" " "

2, <system.web> <properties> <anonymousIdentification enabled=""false""/> <profile > <group name=""Person"">

<add name=""FirstName"" type=""System.String"" allowAnonymous=""false"" /> " "

3, <system.web> <anonymousIdentification enabled=""false""/> <profile > <properties> <group name=""Person"">

<add name=""FirstName"" type=""System.String"" allowAnonymous=""false"" /> <add name=""LastName"" type" "

4 , <system.web> <anonymousIdentification enabled=""false""/> <profile > <properties>

<add groupName = ""Person"" name=""FirstName"" type=""System.String"" allowAnonymous=""false"" /> <add groupName= " 3

Page 8: Question Mt2 Sem c

37 You have created a Web application using ASP.NET. Now you want to test it for compatibility with mobile devices running Microsoft Pocket PC 2003 SE, by connecting to its Device Emulator using Microsoft ActiveSync. Which of the following sequence of steps "1, 1. In Visual Studio, on the Tools menu, click Device Emulator Manager.

2. In the Device Emulator Manager, on the Actions menu, click Cradle.3. In the Device Emulator Manager, right-click the emulator you want to use and t then click Connect. "

"

2, 1. In Visual Studio, on the File menu, click Device Emulator Manager.2. In the Device Emulator Manager, right-click the emulator you want to use and then click Connect.3. In the Device Emulator Manager, on the Actions menu, click Cradle.4. The Activ" "

3, 1. In Visual Studio, on the Tools menu, click Device Emulator Manager.2. In the Device Emulator Manager, right-click the emulator you want to use and then click Connect.3. In the Device Emulator Manager, on the Actions menu, click Cradle.4. The Acti" "

4, 1. In Visual Studio, on the File menu, click Device Emulator Manager2. In the Device Emulator Manager, right-click the emulator you want to use and then click Connect.3. The ActiveSync Connection Wizard starts and guides you through making a connecti" 3

38 "Bryan needs to deploy the Web application developed by him. For this he has decided to create a Web Setup project in the Microsoft Visual Studio 2005 IDE and then add the project output of the Web application to be deployed to the Web Setup project. What" "

1, 1. Using Visual Studio 2005, open the solution containing the Web site to be deployed.2. On the File menu, point to Add and then click New Project. The Add New Project dialog box appears.3. In the Templates section of the Add New Project dialog box, " "

2, 1. Using Visual Studio 2005, open the solution containing the Web site to be deployed.2. On the File menu, point to Add and then click New Project. The Add New Project dialog box appears.3. Expand the Other Project Types node in the Project types tre" "

3, 1. Using Visual Studio 2005, open the solution containing the Web site to be deployed.2. On the Tools menu, point to Add and then click New Project. The Add New Project dialog box appears.3. Expand the Other Project Types node in the Project types tr" "

4, 1. Using Visual Studio 2005, open the solution containing the Web site to be deployed.2. On the File menu, point to Add and then click New Project. The Add New Project dialog box appears.3. In the Templates section of the Add New Project dialog box, " 2

39 Bryan needs to deploy the Web application developed by him. For this he has created a Web Setup project in the Microsoft Visual Studio 2005 IDE. Now he needs to add the project output of the Web application to be deployed to the Web Setup project. Which o "

1, 1. In Solution Explorer, right-click the new Web Setup project that has been added to the solution.2. Point to Add on the shortcut menu and then click Project Output. The Add Project Output Group dialog box appears.3. Ensure that the Web site project" "

2, 1. In Solution Explorer, right-click the new Web Setup project that has been added to the solution.2. Point to Add on the shortcut menu and then click Project Output. The Add Project Output Group dialog box appears.3. Click Content Files.4. Ensure t" "

3, 1. In Solution Explorer, right-click the new Web Setup project that has been added to the solution.2. Point to Add on the shortcut menu and then click Project Output. The Add Project Output Group dialog box appears.3. Ensure that Content Files is not" "

4, 1. In Solution Explorer, right-click the new Web Setup project that has been added to the solution.2. Point to Add on the shortcut menu and then click Project Output. The Add Project Output Group dialog box appears.3. Ensure that Content Files is not" 2

40 Bryan is a Web developer at RedSky Inc. He has created an intranet application for the employees of RedSky Inc. Now he needs to distribute the application to the various branches of his organization. The application will be installed on a centrally locate

"

Page 9: Question Mt2 Sem c

1, 1. In Solution Explorer, right-click the Web Setup project, point to View on the shortcut menu, and then click User Interface.2. Right-click the Progress node in the Install section of the tree-view and then click Add Dialog on the shortcut menu. The "

2, 1. In Solution Explorer, right-click the Web Setup project, point to View on the shortcut menu, and then click User Interface.2. Right-click the Start node in the Administrative Install section of the tree-view and then click Add Dialog on the shortcu" "

3 , 1. In Solution Explorer, right-click the Web Setup project, point to View on the shortcut menu, and then click User Interface.2. Right-click the Start node in the Install section of the tree-view and then click Add Dialog on the shortcut menu. The Add" "

4, 1. In Solution Explorer, right-click the Web Setup project, point to View on the shortcut menu, and then click User Interface.2. Right-click the Progress node in the Administrative Install section of the tree-view and then click Add Dialog on the shor" 3

41 "John needs to test his website's compatibility on different mobile devices. To test his site on the Pocket PC 2003 SE, he needs to browse a Web page of his Web Site on the corresponding Emulator. The IP address of the host computer is 172.23.4.227. Which" "

1, 1. In the Device Emulator Manager, select Pocket PC 2003 SE Emulator.2. On the Actions menu, click Connect.3. In the Device Emulator Manager, on the Actions menu, click Cradle. ActiveSync connects to the emulator and synchronizes.4. Once the synchro" "

2, 1. In the Device Emulator Manager, select Pocket PC 2003 SE Emulator.2. On the Actions menu, click Cradle.3. In the Device Emulator Manager, on the Actions menu, click Connect. ActiveSync connects to the emulator and synchronizes.4. Once the synchro" "

3, 1. In the Device Emulator Manager, select Pocket PC 2003 SE Emulator.2. In the Device Emulator Manager, on the Actions menu, click Cradle.3. In the Address box, type the address http://172.23.4.227/page.aspx

4, 1. In the Device Emulator Manager, select Pocket PC 2003 SE Emulator.

2. On the Actions menu, click Connect.3. In the Device Emulator Manager, on the Actions menu, click Clear Save State. ActiveSync connects to the emulator and synchronizes.4. Once t" 1

42 John is creating a Web site that allows users to shop online for different products. The site should allow users to select goods from different categories spanning over different pages on the website. The selected goods are to be added to a shopping cart

1, ControlState m2, ViewState m3, Session object m4, Application object m 3

43 A web application created by Jim in Microsoft Visual Studio 2005 has several forms which connect and store user information in a single database in the SQL Server 2005. Instead of creating a connection on each form, he has created a connection string with

"1, string dbStr =Configuration.ConnectionStrings[""NewConString""].ConnectionString;System.Data.SqlClient.SqlConnection sqlConn = newSystem.Data.SqlClient.SqlConnection(dbStr);sqlConn.Open(); m" "

2, string dbStr =ConfigurationManager.ConnectionStrings[""NewConString""].ConnectionString;

Page 10: Question Mt2 Sem c

System.Data.SqlClient.SqlConnection sqlConn = newSystem.Data.SqlClient.SqlConnection(dbStr);sqlConn.Open(); m" "

3, string dbStr =ConfigurationSettings.ConnectionStrings[""NewConString""].ConnectionString;System.Data.SqlClient.SqlConnection sqlConn = newSystem.Data.SqlClient.SqlConnection(dbStr);sqlConn.Open(); m" "

4, string dbStr =ConfigurationSection.ConnectionStrings[""NewConString""].ConnectionString;System.Data.SqlClient.SqlConnection sqlConn = newSystem.Data.SqlClient.SqlConnection(dbStr);sqlConn.Open(); m" 2

44 Samantha, a developer with RedSky Inc. has created a Web application which caters to different users based on their membership types. Samantha wants that access to certain directories on the website should only be given to some particular users and the re"1, Samantha should write the following code in Web.config instead of the one already written:

<credentials><allow roles=""Samantha""/><allow roles=""Bryan""/><allow roles=""John""/><deny users=""*""/></credentials> m" "

2, Samantha should write the following code in Web.config instead of the one already written:

<authorization><allow roles=""Samantha""/><allow roles=""Bryan""/><allow roles=""John""/><deny users=""*""/></authorization> m" "

3, Samantha should write the following code in App.config instead of the one already written in Web.config:

<credentials><allow roles=""Samantha""/><allow roles=""Bryan""/><allow roles=""John""/><deny users=""*""/></credentials> m" "

4, Samantha should write the following code in Web.config instead of the one already written:

<authorization><allow users=""Samantha""/><allow users=""Bryan""/><allow users=""John""/><deny users=""*""/></authorization> m" 4

45 "John, a software engineer working with NewTech Books has written the following code snippet for adding the username, password, and country for a new user on the site:

Membership NewLogin = Membership.CreateUser(""Jim"", ""pass@123"",""[email protected]"");"1, John should use the AddUser method of the Membership class instead of the CreateUser method. M

Page 11: Question Mt2 Sem c

2, John should instantiate NewLogin as an object of MembershipUser class. m3, John should use AddUser method of the MembershipUser class. m4, John should use the CreateUser method with the MembershipUser class instead of the Membership class. m 2

46 John is working as a software developer at BlueMoon Inc., He needs to create a Web page that will enable the users to provide reviews for various products. To accomplish this task, he has decided to use a FormView control that uses Reviews.cs file as a bu

1, <ItemTemplate> m2, <EmptyDataTemplate> m3, <InsertItemTemplate> m4, <InsertParameters> m 2

47 Which of the following is NOT used to load an assembly dynamically? m

1, The Load method of the AppDomain class m2, The Load method of the Assembly class m3, The LoadFrom method of the Assembly class m4, The LoadTo method of the Assembly class m 4

48 ApplicationBase, ApplicationName, and ConfigurationFile are the properties of which class? m1, AppDomainSetup class m2, ApplicationDomain class m3, AppDomain class m4, Assembly class m 1

49 To create a Windows service application, you must create a Windows application containing a class that extends the _________ class. m

1, ServiceInstaller class m2, ServiceController class m3, ServiceBase class m4, ServiceProcessInstaller class m 3

50 Which of the following classes can be used to access the metadata of assemblies during reflection? M1, Assembly class m2, FieldInfo class m3, PropertyInfo class m4, MethodInfo class m 1

51 Which of the following classes does NOT implement symmetric encryption? M1, DES m2, RC2 m3, DSA m4, Rijndael m 3

52 While creating a file-system Web site, where can the files be stored other than a folder in the local computer's file system? M1, They may be stored in a shared network folder. M2, They may be stored in a shared local folder. M3, They may be stored in a shared folder on the remote web server. M4,They may be stored in a local folder that is not shared. M 1

53 Which of the following files contains the ASP.NET application root settings? M 1, machine.config m2, web.config m3, app.config m4, config.sys m 2

54 Which of the following does ASP.NET use to determine which procedures to call when objects raise events? M1, Centralized Event Handlers m2, Event Wire-Ups m3, Non-Default Event Handlers m4, Default Event-Handlers m 2

55 Which of the following is a .NET Framework object that is converted by ASP.NET to an HTML element at run time? M1, HTML Control m2, Web Farm m3, WebPart m4, Web Server Control m 4

Page 12: Question Mt2 Sem c

56 John works as as software developer in GamingApp Pvt. Ltd. He is assigned a taskt to develop an application that generates the sales report on a monthly basis in the form of a pic chart and bar diagrams. Which type of performance library should John use t1,Graphic Library m2,Math Library m3,Image Processing Library m4,Engineering and Scienc Library m 1

57 John works as a software developer in Quick Solutions Pvt. Ltd. He is required to develop a software that keeps track of th records of the employees. The application should be capable of storing and retrieving, and editing the photo of the employees. Which

1,Math Library m2,Image Processing Library m3,Graphic Library m4,Enguneering and Science Library m 2

58 Consider the following code snippet:

for (i=0; i<100; i++) { a= a+ i; } for(i=0; i<100; i++) { b=b+i; }

By observing the preceeding code snippet, identify the correct method that would optimize the preceeding code snippet. M

1, Combining Loops m2,Remove unwanted parts of Loops m3,Reduce work inside loops m4,Use setinel value m 1

59 "Identify the technique that needs to be used to optimize the following code snippet:

int y [500] [220];void xmpl17 (int *x){int i, j;for (i=0; i<220; i++)for (j=0; j<500; j++)y[j] [i] = y[j] [i] +x[2*j];} m"

1,Use sentinel values m2,Interchange loops m3,Use pointers m4,Combine loops m 2

60 "Consider the statements:Statement A: Input/output(I/O) operations accesses memory to read or write data.Statement B: The speed of I/O operations is limited by the speed of memory.Which of the below given options is true? m"

1,Statement A is true and Statement B is false m2,Statement A is false and Statement B is true. M3,Both, statements A and B, are true. M4,Both, statements A and B, are false. m 3

61 "Consider the statements:Statement A: At the computer-architecture level, optimization involves tuning the processor architecture according to the application. Statement B: If the processor is tuned for a specific task, there might be a possibility that "

1,Statement A is true and Statement B is false. M2,Statement A is false and Statement B is true. M3,Both, statements A and B, are true. M4,Both, statements A and B, are false. m 3

Page 13: Question Mt2 Sem c

62 "Consider the statements:

Statement A: To collect performance-related data with reference to the time taken for execution, you can use a stopwatch, a timing function inserted in code, or a performance-analyzing tool to measure the time.Statement B: After "

1,Statement A is true and Statement B is false. M2,Statement A is false and Statement B is true. M3,Both, statements A and B, are true. M4,Both, statements A and B, are false. m 3

63 Tom Wilkins is working as a software developer at Good Graphics Inc. Tom is analyzing the performance of a C# application. Tom identifies that a data structure that is too large, is retarding the application performance. What should Tom Wilkins do to reso

1,Optimize memory operations m2,Increase the number of MFLOPS of the processor m3,Optimize floating-point operations m4,Optimize system calls m 1

64 "Consider the statements:

Statement A: For optimizing memory operations, you need to write code that accesses memory sequentially. Statement B: Accessing memory locations that are located at a distance from each other will require more processor time and "

1,Statement A is true and Statement B is false. M2,Statement A is false and Statement B is true. M3,Both, statements A and B, are true. M4,Both, statements A and B, are false. m 3

65 What are the levels at which Application Optimization is done? M1,System, Application, micro Architecture m2,Only System and Application m3,System, Software, Peripherals m4,Only System Configuration and Hardware m 1

66 Which is the key factor that a developer can optimize to suit different specifications and obtain best performance on a given hardware? M1,System resources m2,Source code m3,Hardware resources m4,Processor performance m 2

67 A small code executed independently by the processor that enables a computer to perform several tasks simultaneously is known as: m

1,Library m2,Performance library m3,Module m4,Thread m 4

68 Why is Application optimization used? Select the best answer. M

1,To make the best use of available resources and as an alternative to upgrading hardware resources. M2,As an alternative to upgrading hardware resources. M3,To debug the application and as an alternative to upgrading hardware resources. 4,To obtain error free results and as an alternative to upgrading hardware resources. m 1

69 Which of the following levels of optimization will be used to tune application performance with respect to system level DLLs and APIs? M

1,Application Level m2,Computer Architecture Level m3,System Level m4,Application Level and Computer Architecture Level m 3

Page 14: Question Mt2 Sem c

70 "For optimizing the performance of an inventory management system, Jim gathers the performance data for the application by using the VTune performance Analyzer. From the options given below, identify the next step he needs to perform to successfully compl"

1,He needs to analyze alternatives before identifying issues that necessitate application enhancement. M

2,He needs to implement enhancements and identify the data that necessitate enhancement before generating alternatives. M

3,He needs to analyze the gathered data and identify the performance issues before generating alternatives. M

4,He needs to generate the possible enhancements. m 3

71 Jack develops a payroll application. He implements enhancements for the application and tests the optimized version. He notices that results that the optimized version computed are correct. However, the optimized version does not reach the desired level o

1,He needs to analyze the application for system calls and implement enhancements. M2,He needs to identify alternatives and optimize issues that necessitate application enhancement. M3,He needs to optimize memory operations, floating point operations, and system calls. M4,He needs to reiterate through the entire optimization process step-by-step and stop the optimization process when the desired level of optimization is achieved. m 4

72 Sam has written a code to search for a string from the give list. However, on carefully analysing the code, Sam found that a lot of ime is wasted in performing an additional task of checking the end of the search string. How should Sam optimize his code?

1,Use unrolling m2,Use sentinel value m3,Reduce work inside loops m4,Combine loops m 2

73 Sam has developed an application in C# whose performance needs to be analysed using Vtune. Sam wants to use the tuning assistant feature of Vtune to get some advice for optimizing the application. After invoking the tuning the assistant, Sam wishes to vie1,Workload insights m2,System Info m3,Hotspot insights m4,Module insights m 2

74 Henry needs to collect remote sampling data for a remote Java application. He has prepared the target and controlling systems by installing VTune Performance Analyzer on the controlling system, enabling all three DCOM components on target system, and spec

1,He needs to install the remote agent configuration required for performing remote sampling on the target system and enable the remote agent on target system. M

2,He needs to install the Java application on the controlling system and restart the target system. M

3,He needs to install a remote agent on the controlling system as on the target system. M

4,He needs to install a fourth DCOM component on the target system. m 1

75 "Jim, a graphics designer at Websolutions Inc., is analyzing an application which is a web page developed using ASP.NET. The application is located on the remote server, which has Windows 2000 Server operating system and Intel P4 processor.Suggest a feasi"

1, He needs to copy the application to his computer and then optimize the source code. M2, He needs to analyze the system level performance of the server. M3, He needs to analyze the performance of the remote application on the remote system using VTune

Performance Analyzer. M4, He needs to launch the application in interactive mode on his local computer . m 3

76 "In order to analyze the performance of a remote application, Jack installed the VTune Performance Analyzer on the controlling system and restarted the system. He has performed the following steps:A. Enabled the remote agent on the target systemB. Enable"

1,Jack did not install the remote application on the controlling system before starting with remote data collection. M

Page 15: Question Mt2 Sem c

2,Jack did not specify the address of the controlling system on the target system. M

3,Jack did not check if the configuration of the target system was same as that of the controlling system before starting with remote data collection. M

4,Jack did not install the DCOM component DbgExeCtrl on the target system before starting with remote data collection. m 4

77 "Sam needs to launch an application interactively on 100 mobile phones using VTune Performance Analyzer. Which of the following would enable Sam to launch the application interactively? m"

1, He needs to install the full VTune analyzer product on all the mobile phones and configure each one of them system to act as the controlling system. m

2, He needs to install the full VTune remote agent on all the mobile phones and configure controlling system by installing Vtune analyzer on it. M

3, He needs to install the full VTune analyzer product on at least half of the mobile phones and configure these systems to act as the controlling systems. M

4, He needs to install the full VTune analyzer product on at least half ofthe mobile phones and configure these systems to act as the target systems. m 2

78 Henry needs to optimize the memory operations and system calls for a web application. This application is a static web page that accepts and displays information about the products and services of a company. This information is stored in a database. Which1,He needs to write code that accesses memory sequentially and built custom routines for accessing operating system services.

2,He needs to reduce the number of floating-point operations and load data into the memory before executing instructions, so that the process need not wait for data. m

3,He needs to use large data structures. M

4,He needs to identify the floating-point operations and build custom routines so that the process need not wait for data. m1

79 Henry needs to optimize an e-commerce application at the system-level and application-level. Which of the below given options states the optimization goals at these levels? M

1,At system level, improve application interaction with the system with respect to DLLs and APIs and at application level, improve algorithms. M

2,At system level, improve algorithms and at application level, improve application interaction with the system. M

3,At system level, tune the processor according to the application and at application level, improve algorithms. M

4,At system level, improve algorithms and at application level, improve application interaction with the processor. m 1

80 "Consider the statements:Statement A: The speed of the I/O operations is not limited by the speed of memory. Statement B: Floating-point operations consume both space and time. Which of the following is true, with respect to the above statements? m" 1,Statement A is true and statement B is false. 2,Statement A is false and statement B is true.

3,Both, statements A and B, are true. 4,Both, statements A and B, are false. 2

81 "Jack needs to analyze the performance of a mobile phone from a remote location. He plans to use the utility of analyzing remote application performance provided by VTune Performance Analyzer. Identify the first requirement that he needs to fulfill in ord"

Page 16: Question Mt2 Sem c

1,He needs to install the remote agent on the controlling system from where he would be accessing the remote application. M2,He needs to install the remote agent on the controlling computer on which the remote application was created. M3,He needs to install the remote agent on the mobile phone on which the remote application is located. M4,He needs to install the remote application on the controlling system from where he would be analyzing remote performance. m 3

82 Mike Womack is working as a software developer at SuperGraphics Inc. He needs to use VTune to collect data for a specific performance counter. In addition, he wants to analyze the performance of the system during runtime to identify system-related perform1,Invoke Tuning Assistant for Counter-monitor based advice m2,Invoke Tuning Assistant for call graph results m3,Invoke Tuning Assistant for time-based sampling results m4,Invoke Tuning Assistant for event-based sampling results m 1

83 Tom Wilkins is working as a software developer at Technology Systems. Tom needs to measure the performance of the processor that he is working on to identify the level of achievable optimization. He needs to measure the program execution time and a standa"1,Calculate execution time as:

Execution time for a program = SUM (Execution time for each instruction).Use the CPI standard metric to measure processor performance. m""

2,Calulate execution time as:

Execution time for a program = Number of instructions * (Clock cycles per instruction) * (Number of seconds per clock cycle).Use the Instructions Retired standard metric to measure processor performance.

3,Calculate execution time as:

Execution time for a program = SUM (Execution time for each instruction).Use the Instruction Retired standard metric to measure processor performance. m"

"4,Calculate execution time as:

Execution time for a program = Number of instructions * (Clock cycles per instruction) * (Number of seconds per clock cycle).Use the Percentage of Floating-Point Instructions standard metric to measure processor performance" 3

84 Jim Lewis is working as a software developer at Technology Systems. Jim observes that the chat application developed by him performs slowly because the processor has to wait for the data to be loaded into the cache. In addition, the capacity of cache is a

1,Only A m2,Only B m3,Both A and B m4,Both B and C m 1

85 Pat Greene is working as a software developer. He is assigned a task of developing an application that will be used by a space research organization to launch a satellite. The performance of the application should be the top priority. Pat develops the app

1,One sampling run with minimal advice m2, A few sampling runs with some advice m3,Many sampling runs with more advice m4,One sampling run with minimal advice or A few sampling runs with some advice m 3

86 Ken Burton is working as a software developer at SuperGraphics Inc. Ken observes that the performance of the phone book application is slow due to the time taken during memory reads and writes. In addition, the capacity of the cache is limited and data ne1,Only A m2,Only B m3,Both A and B m4,Both B and C m 1

87 "Pat Greene is working as a software developer at Super Graphics. He develops a .Net application, which helps to store, edit and retrieve reminders. He analyzes the performance of the code in VTune Performance Analyzer. Pat needs to view information about"

Page 17: Question Mt2 Sem c

1,Module insights and the More Information window m2,Hotspots insights and System Info m3,Top Insights and Relevance scale m4,Top insights and the More Information window m 3

88 True Travel Services uses a .Net application for reservation of tickets. However, the users complain that the application takes more time than usual to close after the details of the customers are entered. Donna Bard is working as a software developer at

1,Top Insights m2,Workload Insights m3,Module Insights m4,System Info m 1

89 Jim Lewis is working as a software developer at GoodGraphics Inc. The performance of the inventory management application that he has developed is affected due to mismatch in process and memory speed.He wants to optimize his application in such a way so t

1,Temporal locality and paging m2,Cache Efficiency m3, Software Prefetch m4,Data Alignment m 3

90 Larry Williams wants to view the insights that have significant impact on the performance of his application. Which of the following options should Larry view using the tuning assitant? M

1,Workload Insights m2,Static Analysis m3,Top Analysis m4,System Info m 3

91 Pat Greene is working as a software developer at Technology Systems. Pat has developed a jukebox application on Java platform. Now, he needs to view the possible optimization that can be made to the performance of the code using VTune. Pat uses Sampling W

1,Check the "One sampling run with minimal advice" option and view the Module insights for a selected process. M

2,Check the "One sampling run with minimal advice" option. M

3,Check the "Few sampling run with some advice" option and view the Hotspots insights for a selected process. M

4,Check the "Many sampling run with more advice" option and view the Modules insights for a selected process. m4

92 "Ken Burton, a Software developer at Red Sky IT Systems, has developed a chat application. However, it is observed that the application is performing slowly. Some files of the application, such as .dll files, interact at system level.

To analyze performan" "

1, 1. Click the “Select Range to Zoom/Drill Down button”.2. Select the range of interest in the “Logged Data” view to choose the process for which Tuning Advice is required.3. Select the “Get Tuning Advice” option from the “View” option of the menu bar 2, 1. Select the “Get Tuning

Advice” option from the “View” option of the menu bar to launch the Tuning Assistant.2. Click the “Select Range to Zoom/Drill Down button”. m"

3, 1. Click the “Select Range to Zoom/Drill Down button”.2. Select the “Get Tuning Advice” option from the “View” option of the menu bar to choose the process for which

Tuning Advice is required.3. Select the range of interest in the “Logged Data” view t

4, 1. Click the “Select Range to Zoom/Drill Down button”2. Select the range of interest in the “Logged Data” view to choose the process for which Tuning Advice is required.

m" 1

93 Ken Burton is working as a software developer at InfoSuper Corp. Ken needs to track system activity during runtime to determine if reduced available memory or file I/O performance slows down applications. He uses Counter Monitor Wizard of VTune to collec

1,View Top Insights. M2,View Hotspots Insights. M3,View Module Insights. M

Page 18: Question Mt2 Sem c

4,View Relevance Scale. m 4

94 Steve Irwin is working as a software developer at Blue Moon Computer Inc. ocated at Texas. Steve develops a chat application in Java for an educational institute. The chat application enables students at remote locations to communicate with each other. H

1, Software Prefetch m2, Data Alignment m3, Cache Compulsory Loads m4, Cache Conflict Loads m 1

95 "Tom Wilkins is working as a software developer at Technology Systems. He needs to use Sampling Wizard to collect performance data and analyze the performance of a code using Vtune. He wants to configure the wizard to automatically generate the tuning adv"

1, Check the automatically generate tuning advice option. m2, Check the automatically generate tuning advice option, use Tuning Assistant to compare multiple sampling activity results. m3, Uncheck the automatically generate tuning advice option. m4, Invoke Tuning Assistant by using the F8 key. M 2

96 "You are working as an application developer. You develop a C# application and written the following code:

For (k = 0; k < last; k++){// Value of t and p is constant a[k] = b[k] * t . P;}

When you run the application you find that the applicant"

1, Split the for loop into two separate for loops. M2, Use Sentinel Values. M3, Reduce work inside loops m4, Use Unrolling. M 3

97 "Consider the statements:Statement A: The time complexity is the amount of time taken to compute the steps involved in an algorithm.Statement B: The space complexity is the amount of memory that a program requires to accomplish a task.Which of the follow"

1, Statement A is true and statement B is false. M2, Statement A is false and statement B is true. M3, both, statements A and B, are true. M4, both, statements A and B, are false. M 398 John develops an application using C programming language. The application is used to draw various pie charts and bar diagrams. Which of the following categories of performance library should he use to optimize the performance of this application? m

1, Graphic Libraries m2, Image Processing Libraries m3, Math Libraries m4, Audio/Video Libraries m 1

99 "Identify the optimization technique that can be used to improve the performance of the following code:

For (j= 1; j < 700; j++) For (I = 1; I < 455; i++)a = a + b [i, j]; m"

1, using unrolling m2, Using sentinel values m3, Using faster functions m4, Changing the order of loops m 4

100 "Consider the statements:Statement A: Space complexity is the amount of memory that a program requires to accomplish a task.Statement B: Space complexity is the only criterion to measure the efficiency of a program.Which of the following is true, with r"1, Statement A is true and statement B is false. m2, Statement A is false and statement B is true. m3, both, statements A and B, are true. m

Page 19: Question Mt2 Sem c

4, both, statements A and B, are false. m 1

101 Identify the level of memory hierarchy that speeds up the execution of instructions by providing fast access to intermediate values computed during a calculation. m

1, Virtual Memory m2, Main Memory m3, Level1 Cache m4, Registers m 4

102 Identify the processor performance parameter that indicates the amount of time it takes to execute a particular process. m

1, Turnaround Time m2, Instruction Execution Time m3, Program Execution Time m4, Response Time m 1

103 Which of the following indicates the number of processes that complete their execution per unit time? m

1, Throughput m2, Turnaround time m3, Instruction execution time m4, Program execution time m 1

104 Which one of the following options enables a processor to load a specific location of memory before it is required for processing? m

1, Cache conflict loads m2, Cache capacity loads m3, Data alignment m, Software Prefect m 4

105 A high value of which of the following processor's utilization measures, indicates low resource utilization? m

1, Clocks Cycles Per Instructions Retired (CPI) m2, Percentage of floating-point instructions m3, CPU bursts m4, Waiting time m 1

106 Jim is a software developer, working with SSPT Corporation, develops a process-intensive application. Jim needs to perform micro architecture-level tuning to increase the performance of the application. Jim decides to use the Vtune Performance Analyzer to

1,Sampling m2,Call Graph m3,Counter Monitor m4,Tuning Assistant m 1

107 Jim Lewis, the software developer at Global Systems Inc, develops an application on .NET platform. Jim decides to use VTune Performance Analyzer to monitor the system-level performance information, such as resource consumption, during the execution of the

1,Call Graph m2,Counter Monitor m3,Sampling m4,Both Call Graph and Sampling m 2

108 "Consider the statements:Statement A: Summary view represents the summary data for each selected counter as a bar diagram.Statement B: Legend provides the minimum, maximum, and average values for the selected counter.Which of the following is true, with"

1,Statement A is true and statement B is false. m2,Statement A is false and statement B is true. m3,Both, statements A and B, are true. m4,Both, statements A and B, are false. m 3

Page 20: Question Mt2 Sem c

109 Larry Williams is a software developer at Red Sky IT System. Larry develops a networking application on Java platform for a New York based banking organization. Larry needs to tune the performance of the application using VTune performance Analyzer. Larry

1,Call Graph m2,Time-based Sampling m3,Event-based Sampling m4,Counter Monitor m 4

110 Jim is a software developer, working with InfoSuper Corp, develops a gamming application on Java platform. Jim finds that the application is performing slowly. He decides to tune the application by observing the functional flow of the application and imp

1,Counter Monitor m2,Time-based Sampling m3,Event-based Sampling m4,Call Graph m 4

111 Which of the following enables you to identify the threads that are running serially and the threads that are running in parallel? m

1,Counter Monitor view m2,Sampling Over Time view m3,Call Graph view m4,Hotspots view m 2

113 John Barrett is working as a Software developer. John develops a gaming application on the .NET platform. He finds that the application is performing slowly. He decides to use the Intel Vtune Performance Analyzer to monitor the performance of the applica

1,Sampling Wizard m,Quick Performance Analysis Wizard m3,Complete Setup Wizard m4,Advance Activity Configuration m 4

114 Sam has developed an application in C# whose perfornamce needs to be analyzed using the sampling feature of Vtune. Sam decides to use the Over Time view to gather various information relating to the application. Which of the following option Sam will not

1,Context Switching m2,Function calling Sequence m3,Thread interaction m4,Processor utilization m 2

116 Which of the one following options enables you to tune application performance and its usage of system resources? m

1, Sampling m2, Call Graph m3, Counter Monitor m4, Tuning Assistant m 4

117 Which feature of tuning assistant suggests steps to remove or avoid a problem? m

1, Insight m2, Relevance Scale m3, Advice m4, Workload m 3

118 Which feature of Tuning Assistant indicates the problem that could be hindering the performance of the application? m

1, Insight m2, Relevance Scale m3, Advice m4, Workload m 1

Page 21: Question Mt2 Sem c

119 Which feature of Tuning Assistant mentions about the applications that were running when VTune Performance Analyzer was profiling the system? m

1, Insight m2, Relevance Scale m3, Advice m4, Workload m 4

120 Which of the following is NOT true about remote data collection in Intel Vtune? m

1, To initiate remote data collection, you need to enable the remote agent on the target system. m2, To initiate remote data collection, you need to disable DCOM components on the target system. m3, To initiate remote data collection, you need to enable the controlling system from which the remote performance data needs to be collected. m4, To initiate remote data collection, you need to specify the target system on which the remote application is running. m 2

121 Which of the following is NOT true about threads? m

1, Threads increases the performance and the ability to use multi-core processors. m2, Threads do not facilitate data sharing. m3, Threads enables you to effectively utilize the hardware resources. m4, Improper use of threads leads to degraded performance. m 2

122 According to which condition for a deadlock to occur, a resource can be released by a thread holding it? m

1, Mutual exclusion m2, No preemption m3, Hold and wait m4, Circular wait m 2

123 What is hold and wait condition in a deadlock? m

1, A condition where a resource is either available or assigned to one thread m2, A condition where threads already holding resources may request for new resources m3, A condition where a thread holding a resource can only release it m4, A condition where two or more threads form a circular chain where each thread waits for a resource that the next thread in chain holds m 2

124 What is a race condition? m

1, A condition when two or more threads simultaneously access the same memory location while atleast one thread is updating that location. m2, A condition that occurs when a programmer assumes a particular order of execution and guarantees that order through synchronization. m3, A condition that occurs when a thread does not progress on assigned computations, but the thread is not blocked or waiting. m4, A condition that occurs when a thread does not progress on assigned computations because it is blocked or waiting. m 1

125 What is mutual exclusion? m

1, It refers to a program logic in which only one thread should be executing in a critical region at any time. m2, It is a portion of code that access shared variables. m3, It is a situation in which a thread waits for a resource which is currently held by some other thread. m4, It is a measure of how busy the threads are during parallel computations. m 1

126 Sam is a Web Developer at RedSky Inc. He is developing a Web Application in ASP.NET. He has already configured the application to enable ASP.NET profiles and defined the FavColor property to track the user's favorite color. Next, he adds a Label control w "1,void Page_Load(object sender, System.EventArgs e){ lblFavColor.Text = Profile.properties(""FavColor""); }

m" "2,void Page_Load(object sender, System.EventArgs e)

Page 22: Question Mt2 Sem c

{ lblFavColor.Text = Profile.FavColor; }

m" "3,void Page_Load(object sender, System.EventArgs e){ lblFavColor.Text = Profile.properties.FavColor; }

m" "4,void Page_Load(object sender, System.EventArgs e){ lblFavColor.Text = Properties.profile.FavColor; } m" 2127 Sam is developing an ASP.NET application which displays values of controls on the review.aspx page according to the language and culture settings preferred by the user. For this, he wants to use implicit localization on the review.aspx page. He creates a

1,Store the resource file in App_GlobalResources folder in place of App_LocalResources folder. M2,Enable automatic culture determination for the page by adding uiculture="auto" to the <% Page%> directive. 3,Enable automatic culture determination for the page by adding uiculture="true" to the <%Page%> directive. 4,Rename the file "review.aspx.fr.resx" as "review.aspx.en.fr.resx". m 2

128 Sam is developing an ASP.NET application which displays values of controls on the review.aspx page according to the language and culture preferred by the user. He creates a default resource file review.aspx.resx and a review.aspx.fr.resx resource file for

1,Store the resource files in the App_LocalResources folder in place of App_GlobalResources folder. m2,Enable automatic culture determination for the page by adding uiculture="true" to the <%Page%> directive. m3,Rename the file "review.aspx.fr.resx" as "review.aspx.en.fr.resx" m4,Enable automatic culture determination for the page by adding uiculture="enable" to the <%Page%> directive. m 1

129 Sam is developing an ASP.NET application which contains an enquiry.aspx page. This page accepts three parameters from the user as "name", "city" and "country". To improve the performance of the application he wants to cache multiple versions of the enquir "

1,Response.Cache.VaryByParams(""country"", true);Response.Cache.VaryByParams(""city"", true); m"

2,Response.Cache.VaryByParams[*] = true; m "

3,Response.Cache.VaryByParams[""country""] = true;Response.Cache.VaryByParams[""city""] = true; m"

4,Response.Cache.VaryByParams["country", "city"] = true; m 3

130 Sam is the administrator of the shopping site of RedSky Inc. In the SurveyReport.aspx page of this site he wants to add the code that will log data in the Microsoft Windows event log. This data will contain the time when the loading of SurveyReport.aspx p

"

1,The given code should be modified as:DateTime dtmStart = DateTime.Now;if (!System.Diagnostics.EventLog.SourceExists(""LoadTime_Survey"")){ System.Diagnostics.EventLog.CreateEventSource(""LoadTime_Survey"", "" RedSky_Shopping "");}System.Diagnostics.E" "

2,The given code should be modified as:DateTime dtmStart = DateTime.Now;if (!System.Diagnostics.EventLog.SourceExists(""LoadTime_Survey"")){ System.Diagnostics.EventLog.CreateEventSource(""LoadTime_Survey"", "" RedSky_Shopping "");}System.Diagnostics.E" "

3,The given code should be modified as:DateTime dtmStart = DateTime.Now;if (!System.Diagnostics.EventLog.SourceExists(""LoadTime_Survey""))

Page 23: Question Mt2 Sem c

{ System.Diagnostics.EventLog.CreateEventSource(""LoadTime_Survey"", "" RedSky_Shopping "");}System.Diagnostics.E" "

4,The given code should be modified as:DateTime dtmStart = DateTime.Now;if (!System.Diagnostics.EventLog.SourceExists(""LoadTime_Survey"")){ System.Diagnostics.EventLog.CreateEventSource("" RedSky_Shopping "", ""LoadTime_Survey"");}System.Diagnostics.E" 2

131 "Sam is a Web developer at RedSky Inc. He needs to create custom server controls for his application with the name WelcomeLabel. For that he creates a file called WelcomeLabel.cs and adds the following code to this file. using System;… …using System.W" "

1,Modify the code for the WelcomeLabel class as:public class WelcomeLabel:CustomControl{ protected override void RenderControl (HTMLTextWriter writer) { writer.Write(""Welcome""); }} m" "

2,Modify the code for the WelcomeLabel class as:public class WelcomeLabel:CompositeControl{ protected override void RenderContents (HTMLTextWriter writer) { writer.Write(""Welcome""); }} m" "

3,Modify the code for the WelcomeLabel class as:public class WelcomeLabel:WebControl{ protected override void RenderControl (HTMLTextWriter writer) { writer.Write(""Welcome""); }} m" "

4,Modify the code for the WelcomeLabel class as:public class WelcomeLabel:WebControl{ protected override void RenderContents (HTMLTextWriter writer) { writer.Write(""Welcome""); }} m" 4

132 How can a content page refer to a master page at run time? m

Page 24: Question Mt2 Sem c

1,By using Master.FindControl method. m2,By setting the Page.MasterPageFile property. m3,By setting the value of masterPageFile attribute in the <%@ Page%> directive as <%@Page masterPageFile ="xxx"%>. m4,By setting the value of virtualPath attribute in the<%@ MasterType %> directive as <%@ MasterType virtualPath ="xxx"%>. m

2

133 Which of the following statements is NOT true about user controls? m

1,A user control is saved as a file with .ascx extension. m2,A user control must contain at least one <form> tag. m3,A user control contains a <%@Control%> directive. m4,User control inherits methods and properties from the System.Web.UI.UserControl class. m 2

134 Which of the following statements correctly describes a custom Web server control? m

1,A custom Web server control is saved as a file with an extension of .acsx. m2,Custom Web server controls are written entirely by managed code and have no markup file. m3,Custom Web server controls have a user interface that is composed of several existing Web Server controls. m4,Custom Web server control is a special kind of Composite Control that gives the developer more power over the presentation of data on the page. m 2

135 What happens after adding the attribute trace="true" to the <%@Page%> directive in an ASP.NET page? m

1, ASP.NET tracing information will be sent to a System.Diagnostics listener. M2, ASP.NET tracing information will be sent to a Tracing Listener object which receives the tracing output and writes it to logs. m3, ASP.NET will generate and display diagnostic information at the bottom of the rendered page. m4, ASP.NET will generate the diagnostic information and write it to logs. m 3

136 To cache a page, the user includes the <%@OutputCache%> directive in the page markup as: <%OutputCache Duration ="60" VaryByParam="None"%>. In addtion, the user marks certain sections of the page by surrounding them with an ASP.NET Substitution control.

1,Application Cache m2,Page Output Cache for caching a complete, single page m3,Page Output Cache with Partial Page Caching m4,Page Output Cache with support for caching multiple page versions m 3

137 What would be the extension of the skin file created with name MyTheme? m

1,MyTheme.theme m,MyTheme.aspx.theme m3,MyTheme.skin m4,MyTheme.aspx.skin m 3

138 While configuring profile properties in the Web.config file for an application which of the following tags defines name, type, and allowAnonymous attributes? m

1,<profile> m2,<properties> m3,<add> m4,<configuration> m 3

139 Which of the following objects is NOT a part of an ASP.NET theme? m

1,StyleSheet m 2,Skin Files m 3,Supporting images m 4,XML file m 4140 To apply an existing theme to the entire application, which of the following tags needs to be added in the Web.config file under the <System.Web> section? m

1,<pages theme="XXX"> m2,<profile theme="XXX"> m3,<properties theme="XXX"> m4,<configuration theme="XXX"> m 1

141 To enable users to personalize a page, you must set the Page.Theme property. During or before which event handler should this be done? m

1,Page_PreRender ( ) m2,Page_Load ( ) m3,Page_PreInit ( ) m

Page 25: Question Mt2 Sem c

4,Page_Render ( ) m 3

142 "Sam is a developer at RedSky Inc. He is developing a Web application using ASP.NET. He has created two themes in the App_Themes folder with the names Green and Red. Initially Sam has set the Green theme for the application by adding <pages theme =""Green""" "

1,Modify the existing code in the Web.config file as:<pages defaulttheme =""Green"" src = ~/Profile.aspx theme =""Red""/> m" "

2,Modify the existing code in the Web.config file as:<pages defaultTheme =""Green""> <page src= ~/Profile.aspx theme = ""Red""/></pages> m" "

3,Remove the <page src= ~/Profile.aspx theme = ""Red""/> tag from the Web.config file and add<%@ Page theme = ""Red"" %> directive in the Profile.aspx page m" "

4,Remove the <page src= ~/Profile.aspx theme = ""Red""/> tag from the Web.config file and add<Page theme = ""Red"" > tag in the Profile.aspx page m" 3

143 "Sam is a developer at RedSky Inc. He is developing a Web application using ASP.NET. In the application, he creates an ASP.NET theme with the name GlobalRed and adds a sample.aspx page to the application. To apply the theme to the page he adds <%@ Page Th" "1,Modify the code in Web.config file as:<configuration> <system.web> <%@ Page DeafultTheme =""GlobalRed"" %> </system.web></configuration> m" "

2,Modify the code in Web.config file as:<configuration> <system.web> <pages DeafultTheme =""GlobalRed"" /> </system.web></configuration> m" "

3,Modify the code in Web.config file as:<configuration> <system.web> <pages theme =""GlobalRed""/ > </system.web></configuration> m" "

4,Modify the code in Web.config file as:<configuration> <system.web> <% Page DeafultTheme =""GlobalRed"" %> </system.web></configuration> m" 3

144 "Sam is a developer at RedISky Inc. He is developing a Web application using ASP.NET. In this application he has created an ASP.NET theme with the name GlobalRed. In this theme he has created a Red.skin file with the following code: <asp:Button runat=""ser" "

1,Modify the first line of Red.skin file as:<asp:Button runat=""server"" BackColor=""Black"" /> m" "

2,Modify the second line of Sample.aspx as:<asp:Button ID=""BkButton"" runat=""server"" Text=""Cancel"" BackColor=""Black"" /> m" "

3,Modify the second line of Sample.aspx as:<asp:Button ID=""btnCancel"" runat=""server"" Text=""Cancel"" BackColor=""BkButton"" /> m" "

Page 26: Question Mt2 Sem c

4,Modify the second line of Sample.aspx as:<asp:Button ID=""btnCancel"" runat=""server"" Text=""Cancel"" SkinID=""BkButton"" /> m" 4

145 Sam is a Web developer at RedSky Inc. He wants to configure his application to store a profile property "PrefLocation" in each user profile for all types of users whether they have logged in or are visiting the site as anonymous users. To configure the pr

"

1,The given code can be modified as follows to correct the error

<system.web> <profile> <properties> <add name = ""PrefLocation type =""System.String"" allowAnonymous= ""true""/> </properties> </profile> </system.web> m" "

2,The given code can be modified as follows to correct the error

<system.web> <anonymousIdentification enabled=""true""/> <profile> <properties> <add name = ""PrefLocation type =""System.String"" allowAnonymous= ""true""/> </pro" "

3,The given code can be modified as follows to correct the error

<system.web> <anonymousIdentification enabled=""true""/> <profile> <properties> <add name = ""PrefLocation type =""System.String""/> </properties> </profile" "

4,The given code can be modified as follows to correct the error

<system.web> <allowAnonymous enable = ""true""> <profile> <properties> <add name = ""PrefLocation type =""System.String"" allowAnonymous enable = ""true""/> </prop" 2

146 You are creating a site and you want that on a page requested by a client, if the server generates an error with status codes 500 or 404, a custom error page "PageNotFound.htm" should be displayed. In case an error is generated with a status code differen

"

1, <configuration><system.web><customErrors defaultRedirect=""GenericError.htm"" mode=""RemoteOnly""><error statusCode=""500"" redirect=""PageNotFound.htm""/><error statusCode=""404"" redirect=""PageNotFound.htm""/></customErrors></system.web></configuration>

Page 27: Question Mt2 Sem c

" "

2, <configuration><system.web><customErrors defaultRedirect=""GenericError.htm"" mode=""RemoteOnly""><error statusCode=""500"" Or ""404"" redirect=""PageNotFound.htm""/></customErrors></system.web></configuration> m" "

3, <configuration><system.web><customErrors><statusCode=""500"" redirect=""PageNotFound.htm""/><statusCode=""404"" redirect=""PageNotFound.htm""/></customErrors></system.web></configuration> m" "

4, <configuration><system.web><customErrors error= ""404"" Or ""500"" redirect=""PageNotFound.htm"" mode=""RemoteOnly""></customErrors></system.web></configuration> m" 1

147 You want to specify the default programming language for your entire ASP.NET Web application as C#. You also want to specify the number of recompiles to perform before the application gets unloaded and loaded again. Which of the following configuration se "

1, <configuration><system.web><defaultLanguage=""C#""/><compilation numRecompilesBeforeAppRestart=""10""> </compilation></system.web></configuration>2, <configuration><system.web><compilation> defaultLanguage=""C#"" numRecompilesBeforeAppRestart=""10""</compilation></system.web></configuration> m" "

3, <configuration><system.web><compilation defaultLanguage=""C#"">numRecompilesBeforeAppRestart=""10""</compilation></system.web></configuration> m" "

4, <configuration><system.web><compilation defaultLanguage=""C#"" numRecompilesBeforeAppRestart=""10""> </compilation></system.web></configuration> m" 4

148 You are required to provide an option to the customers of a restaurant for giving feedback about its services through its website.The customer can choose to give feedback about the "Home Delivery Service" or the "Food Quality" by clicking the correspondin "

Page 28: Question Mt2 Sem c

1, switch (Response.QueryString[""Feedback""]) { case ""HomeDelivery"": Page.Header.Title = ""Feedback about our Home Delivery Services""; break; case ""FoodQuality"": Page.Header.Tit" "

2, switch (QueryString[""Feedback""]) { case ""HomeDelivery"": Page.Header.Title = ""Feedback about our Home Delivery Services""; break; case ""FoodQuality"": Page.Header.Title = ""Fee" "

3, switch (Request.QueryString[""Feedback""]) { case ""HomeDelivery"": Page.Header.Title = ""Feedback about our Home Delivery Services""; break; case ""FoodQuality"": Page.Header.Titl" "

4, switch (Request.QueryString(""Feedback"")) { case ""HomeDelivery"": Page.Header.Title = ""Feedback about our Home Delivery Services""; break; case ""FoodQuality"": Page.Header.Titl" 3149 On the feedback form of your website, you have created a text box which is a Web server control. The user enters his name in this text box and clicks the Submit button. The name entered by the user should be retrieved and stored in a variable declared in

1, string sName = txtName.Value.ToString(); m2, TextBox txtName = (TextBox)Page.PreviousPage.FindControl(""txtName"");string sName = txtName.Text.ToString(); m" "3, TextBox txtName = (TextBox)Page.PreviousPage.FindControl(""txtName"");string sName = txtName.Value.ToString(); m"

4, string sName.Text = (TextBox)Page.PreviousPage.FindControl("txtName"); m 2

150 "You want some common options and graphics to be displayed in all the Web pages of your site. However, you do not want to copy the common code in all the pages. You decide to write this code in a master page and include that page in all other pages of you"

1, <%@ Page MasterPageFile="~/MasterPages/SampleMaster.master" %> m

2, <%@ Page MasterPage="~/MasterPages/SampleMaster.master" %> m

3, <%@ Page Master="~/MasterPages/SampleMaster.master" %> m

4, <%@ Page MasterPageFile:"~/MasterPages/SampleMaster.master" %> m 1

151 Which of the following is NOT a type of Web site that can be created using Visual Studio 2005? m

1, Local IIS Web sites m2, Remote IIS Web sites m3, FTP sites m4, Dynamic Web sites m 4

152 When you type code in the Source view, a drop down list is displayed that helps you complete the syntax of the code. Which feature of Visual Studio makes this possible? m

1, ComboBox m2, IntelSense m3, Intellisense m4, ListView m 3

Page 29: Question Mt2 Sem c

153 In your web application, you need to ensure that the format of the pages that you display is supported by the requesting browsers. Which of the following is a property that can be used to detect the type of the browser requesting the pages, so that they c

1, Request.Browser m2, Response.Browser m3, Request.Browser.Browser m4, Request.Browser.Type m 3

154 Using the CompareValidator control, you can compare the user input to which type of value? m1, Constant value m2, Variable value m3, Memory address m4, URL m 1

155 "Consider the following statements in context of the validation controls available in ASP.NET:

Statement A: The validation controls can perform simple validation in the user's Web browser by generating VBScript code, if the browser supports it.Statement "

1, Statement A is TRUE and statement B is FALSE. m2, Statement A is FALSE and statement B is TRUE. m3, Both statements, A and B, are TRUE. m4, Both statements, A and B, are FALSE. m 2

156 Which mechanism is provided by ASP.NET that preserves the contents and state of the controls on a Web page when a user enters data and submits the form and when the page is re-displayed? m

1, StateServer m2, ViewState m3, HttpSessionState m4, HttpApplicationState m 2

157 In the context of ASP.NET, when the server needs to free the memory, it can remove an item from the application's cache. What is this process known as? m

1, Absolute expiration m2, Sliding expiration m3, Flush m4, Scavenging m 4

158 Which of the following is a delegate that defines the signature to use for an event handlers that responds when an item is deleted from the cache? m

1, onRemoveCallback m2, CacheItemRemovedCallback m3, CacheItemRemovedReason m4, RemovedCallback m 2

159 "Which of the following can you configure to retrieve data from the following:-- XML files-- Web services that return XML data-- String variables that contain XML data m"

1, XmlDataDocument objects m2, XmlDataSource control m3, SqlDataSource control m4, FormView control m 2

160 Which of the following is NOT an authentication mechanism provided by ASP.NET? m

1, Windows authentication m2, Logon authentication m3, Forms authentication m4, Passport authentication m 2

Page 30: Question Mt2 Sem c

161 Which of the following is a File Status displayed by the Copy Web Site tool? m

1, Edited m2, Modified m3, Changed m4, Converted m 3

162 How does the Copy Web tool make sure that all files on the local and remote sites are up to date? m

1, By synchronizing the sites m2, By publishing the sites m3, By copying the new files in place of old files m4, By deploying the sites m 1

163 Which of the following tags should be inserted into the Web.Config file to handle the mobile devices that do not accept relative URLs? m1, <httpRuntime> tag m2, <DeviceSpecific> tag m3, <Filter> tag m4, <deviceFilters> tag m 1

164 What is the file extension of a Microsoft Windows Installer file that is used to distribute and install an application? m1, .exe m2, .msc m3, .msi m4, .jar m 3

165 A mobile web page must contain at least one __________ tag. m

1, <mobile:Form> tag m2, <mobile> tag m3, <MobileForm> tag m4, <IsMobileDevice> tag m 1

166 Joanne, a software developer with EverSoft Inc. had developed an inventory control application, StockNInventory 1.0, using COM components. Now, the requirements and the processes followed by the users have become complicated. Therefore, Joanne has upgrade

1,She should create assemblies in her application providing the same features as the previously created components. m2,She should create an assembly that will handle converting the .Net Framework types to the corresponding types of the COM components being used by the application. m3,She should place the COM components in the same directory as the Assembly for the upgraded application and reference the components in the assembly. m4,She should create a Shared assembly for her application to communicate with the COM components. m 2

167 Ben had developed an application which used a COM component to provide certain functionality. He has now upgraded the application using .Net Framework. In his upgraded application, he has created a .Net Framework component with which the previously availa

1,Ben implemented the default class interface for the .Net Framework component. m2,Ben did not create a public constructor with no parameters for the .Net Framework component. m3,Ben created the constant fields and static methods of the .Net Framework component as Public members. m4,Ben created a public constructor with no parameters for the .Net Framework component. m 2

168 Bryan has created an application that processes credit card information supplied to it by the users, encrypts it using the DES encryption class and stores it in a database. However, he has been receiving complaints from the users that their credit card i

1,Bryan should call the Clear method of the cryptographic class. m2,Bryan should wait for the garbage collector to finish its execution before storing the values. m3,Bryan should Flush the memory by calling the Flush method of the cryptographic class. m4,Bryan should Kill the object values by calling the Kill method of the cryptographic class. m 1

169 You have created a simple file processing application. The application performs simple tasks such as copying, renaming, and creating files and folders. Each task is performed using a separate thread that is created for that purpose. After execution of the

1,The Thread class should be used to implement threading. m

Page 31: Question Mt2 Sem c

2,The ThreadPool class should be used to implement threading. m3,The Monitor class should be used to monitor and increase the application performance. m4,The ParameterizedThreadStart class should be used to control the behavior of the threads. m 2

170 Jonathan has created a Web application which requires the users to register prior to browsing and availing the services offered by it. The application needs to store and update various tables in its database with user details. The user is also sent a welc

1,Jonathan should make individual calls to these methods from within the class that executes the registration process. m2,Jonathan should use singlecasting. m3,Jonathan should use Multithreading. m4,Jonathan should use multicasting. m 4

171 To use GDI+ objects, an object of the ________ class must be created. m 1,SystemColors m2,Pen m3,Graphics m4,Image m 3

172 The _______ class provides the primary access point for code to interact with the security system. m1,SecurityManagement m2,SecurityManager m3,PolicyLevel m4,CodeGroup m 2

173 Asymmetric encryption is also known as _____________. m

1,Private key encryption m2,Public key encryption m3,Public/Private key encryption m4,Protected key encryption m 2

174 The ________ allows the .NET Framework to communicate with the COM component by providing a middle layer between your .NET Framework code and the COM component. m

1,Interop assembly m2,Shared assembly m3,Multifile assembly m4,Private assembly m 1

175 The primary class used to manage threads directly is the ______ class. m

1,ThreadStart class m2,Thread Class m3,ParameterizedThreadStart class m4,ThreadPool class m 2