Question Mt2 Sem C

  • June 2020
  • PDF

This document was uploaded by user and they confirmed that they have the permission to share it. If you are author or own the copyright of this book, please report to us by using this DMCA report form. Report DMCA


Overview

Download & View Question Mt2 Sem C as PDF for free.

More details

  • Words: 12,831
  • Pages: 31
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

3

1

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

5

6

2

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 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 3, <%@ MasterType %> m 4, <%@ 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

2, Custom Web server controls m 3, Template controls m 4, 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, 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 m 2, Dispose m 3, Clear m 4, 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 m 2, Base Uri m 3, Content Link m 4, Linked Resources m

14

4

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 m 2, caspol.exe m 3, Declarative syntax m 4, 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? M 1, Site m 2, Zone m 3, Subscriber m 4, 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. M 2, Statement B is TRUE and statement A is FALSE. M 3, Both statements, A and B, are TRUE. M 4, 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. M 2, 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. M 3, 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. M 4, 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. M 2, 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 page 3, 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

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,

<system.web> <pages theme = Profile.PreferedTheme /> 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, <system.web> <pages theme = "" BlueSky"" /> 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. M 2, Statement A is FALSE, Statement B is TRUE. M 3, both statements, A and B, are TRUE. M 4, 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. M 2, Statement A is FALSE and statement B is TRUE. M 3, both statements, A and B, are TRUE. M 4, 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 m 2, DLL assemblies m 3, HTML code m 4, Plain text m 2

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. m 2, Changes to the layout of the ASPX files. m 3, Changes to the location of the ASPX files. m 4, Changes to the extension of the ASPX files. m

25

2

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 m 2, Microsoft Pocket PC 2003 m 3, Symbian OS S60 m 4, 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 m 2, Form m 3, Panel m 4, 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

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 m 2, AssemblyInfo file m 3, Reflection m 4, PropertyInfo class m

30

2

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. m 2, Use Platform Invoke. m 3, 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 m 2, BufferredGraphicsManager class m 3,SystemColors class m 4, 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> <profile> <properties> m" " 3, <system.web> <profile> <properties> m" " 4, system.web> <properties> <profile> 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

on the page should appear with the following settings: Fore color = red Font size= 14pt Font 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:
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:
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:
1,

"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" " 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" "

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 created a Textbox control

has

"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 rel="nofollow"> <properties> <profile > <properties> <profile >
allowAnonymous=""false"" / rel="nofollow">

3, <system.web> <profile > <properties>
, <system.web rel="nofollow"> <profile > <properties>
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 Manager 2. 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 "

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 m 2, ViewState m 3, Session object m 4, 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 = new System.Data.SqlClient.SqlConnection(dbStr); sqlConn.Open(); m" " 2, string dbStr = ConfigurationManager.ConnectionStrings [""NewConString""].ConnectionString;

System.Data.SqlClient.SqlConnection sqlConn = new System.Data.SqlClient.SqlConnection(dbStr); sqlConn.Open(); m" " 3, string dbStr = ConfigurationSettings.ConnectionStrings [""NewConString""].ConnectionString; System.Data.SqlClient.SqlConnection sqlConn = new System.Data.SqlClient.SqlConnection(dbStr); sqlConn.Open(); m" " 4, string dbStr = ConfigurationSection.ConnectionStrings [""NewConString""].ConnectionString; System.Data.SqlClient.SqlConnection sqlConn = new System.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: <deny users=""*""/> m" " 2, Samantha should write the following code in Web.config instead of the one already written: <deny users=""*""/> m" " 3, Samantha should write the following code in App.config instead of the one already written in Web.config: <deny users=""*""/> m" " 4, Samantha should write the following code in Web.config instead of the one already written: <deny users=""*""/> 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

2, John should instantiate NewLogin as an object of MembershipUser class. m 3, John should use AddUser method of the MembershipUser class. m 4, 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, m 2, <EmptyDataTemplate> m 3, m 4, m 47

2

Which of the following is NOT used to load an assembly dynamically? m 1, The Load method of the AppDomain class m 2, The Load method of the Assembly class m 3, The LoadFrom method of the Assembly class m 4, The LoadTo method of the Assembly class m

4

48

ApplicationBase, ApplicationName, and ConfigurationFile are the properties of which class? m 1, AppDomainSetup class m 2, ApplicationDomain class m 3, AppDomain class m 4, 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 m 2, ServiceController class m 3, ServiceBase class m 4, ServiceProcessInstaller class m

3

50

Which of the following classes can be used to access the metadata of assemblies during reflection? M 1, Assembly class m 2, FieldInfo class m 3, PropertyInfo class m 4, MethodInfo class m 1

51

Which of the following classes does NOT implement symmetric encryption? M 1, DES m 2, RC2 m 3, DSA m 4, 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? M 1, They may be stored in a shared network folder. M 2, They may be stored in a shared local folder. M 3, They may be stored in a shared folder on the remote web server. M 4,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 2, web.config m 3, app.config m 4, config.sys m 2

54

Which of the following does ASP.NET use to determine which procedures to call when objects raise events? M 1, Centralized Event Handlers m 2, Event Wire-Ups m 3, Non-Default Event Handlers m 4, 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? M 1, HTML Control m 2, Web Farm m 3, WebPart m 4, Web Server Control m 4

1, machine.config m

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 t 1,Graphic Library m 2,Math Library m 3,Image Processing Library m 4,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 m 2,Image Processing Library m 3,Graphic Library m 4,Enguneering and Science Library m

58

2

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 m 2,Remove unwanted parts of Loops m 3,Reduce work inside loops m 4,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 m 2,Interchange loops m 3,Use pointers m 4,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 m 2,Statement A is false and Statement B is true. M 3,Both, statements A and B, are true. M 4,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. M 2,Statement A is false and Statement B is true. M 3,Both, statements A and B, are true. M 4,Both, statements A and B, are false. m 3

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. M 2,Statement A is false and Statement B is true. M 3,Both, statements A and B, are true. M 4,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 m 2,Increase the number of MFLOPS of the processor m 3,Optimize floating-point operations m 4,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. M 2,Statement A is false and Statement B is true. M 3,Both, statements A and B, are true. M 4,Both, statements A and B, are false. m 3

65

What are the levels at which Application Optimization is done? M 1,System, Application, micro Architecture m 2,Only System and Application m 3,System, Software, Peripherals m 4,Only System Configuration and Hardware m 1

66

Which is the key factor that a developer can optimize to suit different on a given hardware? M 1,System resources m 2,Source code m 3,Hardware resources m 4,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

68

specifications and obtain best performance

1,Library m 2,Performance library m 3,Module m 4,Thread m 4 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. M 2,As an alternative to upgrading hardware resources. M 3,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 m 2,Computer Architecture Level m 3,System Level m 4,Application Level and Computer Architecture Level m

3

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

71

3

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. M 2,He needs to identify alternatives and optimize issues that necessitate application enhancement. M 3,He needs to optimize memory operations, floating point operations, and system calls. M 4,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 m 2,Use sentinel value m 3,Reduce work inside loops m 4,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 vie 1,Workload insights m 2,System Info m 3,Hotspot insights m 4,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

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, 2, 3, 4,

76

1

He needs to copy the application to his computer and then optimize the source code. M He needs to analyze the system level performance of the server. M He needs to analyze the performance of the remote application on the remote system using VTune Performance Analyzer. M He needs to launch the application in interactive mode on his local computer . m 3

"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 system B. Enable" 1,Jack did not install the remote application on the controlling system before starting with remote data collection. M

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. Which 1,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. m 1

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 processor. m 1

80

81

application interaction with the

"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 "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"

1,He needs to install the remote agent on the controlling system from where he would be accessing the remote application. M 2,He needs to install the remote agent on the controlling computer on which the remote application was created. M 3,He needs to install the remote agent on the mobile phone on which the remote application is located. M 4,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 perform 1,Invoke Tuning Assistant for Counter-monitor based advice m 2,Invoke Tuning Assistant for call graph results m 3,Invoke Tuning Assistant for time-based sampling results m 4,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 m 2,Only B m 3,Both A and B m 4,Both B and C m

85

1

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 m 2, A few sampling runs with some advice m 3,Many sampling runs with more advice m 4,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 ne 1,Only A m 2,Only B m 3,Both A and B m 4,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"

1,Module insights and the More Information window m 2,Hotspots insights and System Info m 3,Top Insights and Relevance scale m 4,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 m 2,Workload Insights m 3,Module Insights m 4,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 m 2,Cache Efficiency m 3, Software Prefetch m 4,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 m 2,Static Analysis m 3,Top Analysis m 4,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. m 4

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, m"

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 1

which Tuning Advice is required.

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. M 2,View Hotspots Insights. M 3,View Module Insights. M

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 m 2, Data Alignment m 3, Cache Compulsory Loads m 4, 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. m 2, Check the automatically generate tuning advice option, use Tuning Assistant to compare multiple sampling activity results. m 3, Uncheck the automatically generate tuning advice option. m 4, 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. M 2, Use Sentinel Values. M 3, Reduce work inside loops m 4, 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. M 2, Statement A is false and statement B is true. M 3, both, statements A and B, are true. M 4, both, statements A and B, are false. M 3 98 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 m 2, Image Processing Libraries m 3, Math Libraries m 4, 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 m 2, Using sentinel values m 3, Using faster functions m 4, 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. m 2, Statement A is false and statement B is true. m 3, both, statements A and B, are true. m

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 m 2, Main Memory m 3, Level1 Cache m 4, Registers m 4 102

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

1, Turnaround Time m 2, Instruction Execution Time m 3, Program Execution Time m 4, Response Time m 1 103

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

1, Throughput m 2, Turnaround time m 3, Instruction execution time m 4, 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 m 2, Cache capacity loads m 3, 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) m 2, Percentage of floating-point instructions m 3, CPU bursts m 4, 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 m 2,Call Graph m 3,Counter Monitor m 4,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 m 2,Counter Monitor m 3,Sampling m 4,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. m 2,Statement A is false and statement B is true. m 3,Both, statements A and B, are true. m 4,Both, statements A and B, are false. m 3

m

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 m 2,Time-based Sampling m 3,Event-based Sampling m 4,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 m 2,Time-based Sampling m 3,Event-based Sampling m 4,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 m 2,Sampling Over Time view m 3,Call Graph view m 4,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 m 3,Complete Setup Wizard m 4,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 m 2,Function calling Sequence m 3,Thread interaction m 4,Processor utilization m 116

2

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

1, Sampling m 2, Call Graph m 3, Counter Monitor m 4, Tuning Assistant m 4

117

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

1, Insight m 2, Relevance Scale m 3, Advice m 4, Workload m 3 118

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

1, Insight m 2, Relevance Scale m 3, Advice m 4, Workload m 1

119 Which feature of Tuning Assistant mentions about the applications that were running when VTune Performance Analyzer was profiling the system? m 1, Insight m 2, Relevance Scale m 3, Advice m 4, 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. m 2, To initiate remote data collection, you need to disable DCOM components on the target system. m 3, To initiate remote data collection, you need to enable the controlling system from which the remote performance data needs to be collected. m 4, 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. m 2, Threads do not facilitate data sharing. m 3, Threads enables you to effectively utilize the hardware resources. m 4, 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 m 2, No preemption m 3, Hold and wait m 4, 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 m 2, A condition where threads already holding resources may request for new resources m 3, A condition where a thread holding a resource can only release it m 4, 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. m 2, A condition that occurs when a programmer assumes a particular order of execution and guarantees that order through synchronization. m 3, A condition that occurs when a thread does not progress on assigned computations, but the thread is not blocked or waiting. m 4, 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. m 2, It is a portion of code that access shared variables. m 3, It is a situation in which a thread waits for a resource which is currently held by some other thread. m 4, 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)

{ 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" 2 127 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. M 2,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. m 2,Enable automatic culture determination for the page by adding uiculture="true" to the <%Page%> directive. m 3,Rename the file "review.aspx.fr.resx" as "review.aspx.en.fr.resx" m 4,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""))

{ 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

1,By using Master.FindControl method. m 2,By setting the Page.MasterPageFile property. m 3,By setting the value of masterPageFile attribute in the <%@ Page%> directive as <%@Page masterPageFile ="xxx"%>. m 4,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. m 2,A user control must contain at least one
tag. m 3,A user control contains a <%@Control%> directive. m 4,User control inherits methods and properties from the System.Web.UI.UserControl class. m 134

2

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. m 2,Custom Web server controls are written entirely by managed code and have no markup file. m 3,Custom Web server controls have a user interface that is composed of several existing Web Server controls. m 4,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. M 2, ASP.NET tracing information will be sent to a Tracing Listener object which receives the tracing output and writes it to logs. m 3, ASP.NET will generate and display diagnostic information at the bottom of the rendered page. m 4, 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 m 2,Page Output Cache for caching a complete, single page m 3,Page Output Cache with Partial Page Caching m 4,Page Output Cache with support for caching multiple page versions m 137

3

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

1,MyTheme.theme m ,MyTheme.aspx.theme m 3,MyTheme.skin m 4,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> m 2,<properties> m 3, m 4, 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 4 140 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"> m 2,<profile theme="XXX"> m 3,<properties theme="XXX"> m 4, 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 ( ) m 2,Page_Load ( ) m 3,Page_PreInit ( ) m

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""/> 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: <system.web> <%@ Page DeafultTheme =""GlobalRed"" %> m" " 2,Modify the code in Web.config file as: <system.web> <pages DeafultTheme =""GlobalRed"" /> m" " 3,Modify the code in Web.config file as: <system.web> <pages theme =""GlobalRed""/ > m" "

4,Modify the code in Web.config file as: <system.web> <% Page DeafultTheme =""GlobalRed"" %> 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: m"

"

2,Modify the second line of Sample.aspx as: m"

"

3,Modify the second line of Sample.aspx as: m" "

4,Modify the second line of Sample.aspx as: 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> m" " 2,The given code can be modified as follows to correct the error <system.web> <profile> <properties> <profile> <properties>
4,The given code can be modified as follows to correct the error <system.web> <profile> <properties>
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, <system.web> <customErrors defaultRedirect=""GenericError.htm"" mode=""RemoteOnly""> <error statusCode=""500"" redirect=""PageNotFound.htm""/> <error statusCode=""404"" redirect=""PageNotFound.htm""/>

"

"

2, <system.web> <customErrors defaultRedirect=""GenericError.htm"" mode=""RemoteOnly""> <error statusCode=""500"" Or ""404"" redirect=""PageNotFound.htm""/> m" " 3, <system.web> <customErrors> <statusCode=""500"" redirect=""PageNotFound.htm""/> <statusCode=""404"" redirect=""PageNotFound.htm""/> m" " 4, <system.web> <customErrors error= ""404"" Or ""500"" redirect=""PageNotFound.htm"" mode=""RemoteOnly""> 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, <system.web> <defaultLanguage=""C#""/> 2, <system.web> defaultLanguage=""C#"" numRecompilesBeforeAppRestart=""10"" m" " 3, <system.web> numRecompilesBeforeAppRestart=""10"" m" " 4, <system.web> 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 "

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" 3 149 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(); m 2, 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 m 2, Remote IIS Web sites m 3, FTP sites m 4, 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 m 2, IntelSense m 3, Intellisense m 4, ListView m

3

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 m 2, Response.Browser m 3, Request.Browser.Browser m 4, Request.Browser.Type m 3 154 Using the CompareValidator control, you can compare the user input to which type of value? m 1, Constant value m 2, Variable value m 3, Memory address m 4, 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. m 2, Statement A is FALSE and statement B is TRUE. m 3, Both statements, A and B, are TRUE. m 4, 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 m 2, ViewState m 3, HttpSessionState m 4, 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 m 2, Sliding expiration m 3, Flush m 4, 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 m 2, CacheItemRemovedCallback m 3, CacheItemRemovedReason m 4, 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 m 2, XmlDataSource control m 3, SqlDataSource control m 4, FormView control m 2 160

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

1, Windows authentication m 2, Logon authentication m 3, Forms authentication m 4, Passport authentication m

2

161

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

1, Edited m 2, Modified m 3, Changed m 4, Converted m

162

3

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 m 2, By publishing the sites m 3, By copying the new files in place of old files m 4, 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? m 1, tag m 2, tag m 3, tag m 4, <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? m 1, .exe m 2, .msc m 3, .msi m 4, .jar m 3 165

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

1, <mobile:Form> tag m 2, <mobile> tag m 3, <MobileForm> tag m 4, 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. m 2,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. m 3,She should place the COM components in the same directory as the Assembly for the upgraded application and reference the components in the assembly. m 4,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. m 2,Ben did not create a public constructor with no parameters for the .Net Framework component. m 3,Ben created the constant fields and static methods of the .Net Framework component as Public members. m 4,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. m 2,Bryan should wait for the garbage collector to finish its execution before storing the values. m 3,Bryan should Flush the memory by calling the Flush method of the cryptographic class. m 4,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

2,The ThreadPool class should be used to implement threading. m 3,The Monitor class should be used to monitor and increase the application performance. m 4,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. m 2,Jonathan should use singlecasting. m 3,Jonathan should use Multithreading. m 4,Jonathan should use multicasting. m 4 171

To use GDI+ objects, an object of the ________ class must be created. m 2,Pen m 3,Graphics m 4,Image m 3

1,SystemColors m

172 The _______ class provides the primary access point for code to interact with the security system. m 1,SecurityManagement m 2,SecurityManager m 3,PolicyLevel m 4,CodeGroup m 2 173

Asymmetric encryption is also known as _____________. m

1,Private key encryption m 2,Public key encryption m 3,Public/Private key encryption m 4,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 m 2,Shared assembly m 3,Multifile assembly m 4,Private assembly m 1 175

The primary class used to manage threads directly is the ______ class. m 1,ThreadStart class m 2,Thread Class m 3,ParameterizedThreadStart class m 4,ThreadPool class m 2

Related Documents

Question Mt2 Sem C
June 2020 10
Mt2
June 2020 6
C++ Question
November 2019 6
C# Question
November 2019 6
Mt2.docx
June 2020 5
Gdmm-2nd Sem Question
July 2020 20