Sie sind auf Seite 1von 69

Question: 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 Ans: 2 ============================================= Question: 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 Ans: 1 ============================================= Question: 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 Ans: 3 ============================================= Question: 4 Which of the following controls features hierarchical databinding and may be bound to an XmlDataSource or a SiteMapDataSource? 1, DropDownList Control 2, Menu Control 3, DataList Control 4, GridView Control Ans: 2 ============================================= Question: 5 Which of the following classes provides methods for creating, deleting, and updating user accounts, authenticating users, and managing passwords? 1, Members Class 2, Membership Class 3, Member Class 4, FormsAuthentication Class Ans: 2

============================================= Question: 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 2, DataList Control 3, GridView Control 4, DetailsView Control Ans: 2 ============================================= Question: 7 Which of the following uses a separate resource file for each culture? 1, Globalization 2, Implicit Localization 3, Explicit Localization 4, Localization Ans: 2 ============================================= Question: 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? 1, <%@ Master %> 2, <%@ Page %> 3, <%@ MasterType %> 4, <%@ Control %> Ans: 1 ============================================= Question: 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. Ans: 1 ============================================= Question: 10 Repeater, DataList, and GridView Web server controls are examples of which type of controls?

1, User Controls 2, Custom Web server controls 3, Templated controls 4, Navigation controls Ans: 3 ============================================= Question: 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 farm? 1, <trace> 2, <machineKey> 3, <customErrors> 4, <script> Ans: 2 ============================================= Question: 12 Which of the following is a File Status displayed by the Copy Web Site tool? 1, Edited 2, Modified 3, Changed 4, Converted Ans: 3 ============================================= Question: 13 How does the Copy Web tool make sure that all files on the local and remote sites are up to date? 1, By synchronizing the sites 2, By publishing the sites 3, By copying the new files in place of old files 4, By deploying the sites Ans: 1 ============================================= Question: 14 Which of the following tags should be inserted into the Web.Config file to handle the mobile devices that do not accept relative URLs? 1, <httpRuntime> tag 2, <DeviceSpecific> tag 3, <Filter> tag 4, <deviceFilters> tag Ans: 1 ============================================= Question: 15 What is the file extension of a Microsoft Windows Installer file that is used to distribute and install an application?

1, .exe 2, .msc 3, .msi 4, .jar Ans: 3 ============================================= Question: 16 A mobile web page must contain at least one __________ tag. 1, <mobile:Form> tag 2, <mobile> tag 3, <MobileForm> tag 4, <IsMobileDevice> tag Ans: 1 ============================================= Question: 17 What would be the extension of the skin file created with name MyTheme? 1,MyTheme.theme 2,MyTheme.aspx.theme 3,MyTheme.skin 4,MyTheme.aspx.skin Ans: 3 ============================================= Question: 18 While configuring profile properties in the Web.config file for an application which of the following tags defines name, type, and allowAnonymous attributes? 1,<profile> 2,<properties> 3,<add> 4,<configuration> Ans: 3 ============================================= Question: 19 Which of the following objects is NOT a part of an ASP.NET theme? 1,StyleSheet 2,Skin Files 3,Supporting images 4,XML file Ans: 4 ============================================= Question: 20 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? 1,<pages theme="XXX">

2,<profile theme="XXX"> 3,<properties theme="XXX"> 4,<configuration theme="XXX"> Ans: 1 ============================================= Question: 21 To enable users to personalize a page, you must set the Page.Theme property. During or before which event handler should this be done? 1,Page_PreRender ( ) 2,Page_Load ( ) 3,Page_PreInit ( ) 4,Page_Render ( ) Ans: 3 ============================================= Question: 22 To use GDI+ objects, an object of the ________ class must be created. 1,SystemColors 2,Pen 3,Graphics 4,Image Ans: 3 ============================================= Question: 23 The _______ class provides the primary access point for code to interact with the security system. 1,SecurityManagement 2,SecurityManager 3,PolicyLevel 4,CodeGroup Ans: 2 ============================================= Question: 24 Asymmetric encryption is also known as _____________. 1,Private key encryption 2,Public key encryption 3,Public/Private key encryption 4,Protected key encryption Ans: 2 ============================================= Question: 25 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. 1,Interop assembly 2,Shared assembly

3,Multifile assembly 4,Private assembly Ans: 1 ============================================= Question: 26 The primary class used to manage threads directly is the ______ class. 1,ThreadStart class 2,Thread Class 3,ParameterizedThreadStart class 4,ThreadPool class Ans: 2 ============================================= Question: 27 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? 1, Flush 2, Dispose 3, Clear 4, Kill Ans: 2 ============================================= Question: 28 The AlternateView class can be used to embed an attachment to an E-mail message. Which of the following enables the AlternateView class to embed images in a message? 1, Attachment 2, BaseUri 3, ContentLink 4, LinkedResources Ans: 4 ============================================= Question: 29 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? 1, Imperative syntax 2, caspol.exe 3, Declarative syntax 4, TlbImp.exe Ans: 3 ============================================= Question: 30

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? 1, Site 2, Zone 3, Subscriber 4, Hash Ans: 3 ============================================= Question: 31 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: RC2 algorithm in the .Net Framework supports a fixed encryption key size of 128 bits, 192 bits, or 256 bits. Which of the preceding statements are TRUE? 1, Statement A is TRUE and statement B is FALSE. 2, Statement B is TRUE and statement A is FALSE. 3, Both statements, A and B, are TRUE. 4, Both statements, A and B, are FALSE. Ans: 4 ============================================= Question: 32 ASP.NET profiles can be best described by which of the following options? 1, An ASP.NET profile consists of a set of named properties that is stored for each user. 2, An ASP.NET profile is a collection of property settings that enable a developer to define the look of pages and controls and then apply the look consistently across pages. 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. 4, An ASP.NET profile enables a developer to store objects and data in the server's memory for reuse. Ans: 1 ============================================= Question: 33 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.

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 apply the look consistently across pages. 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. Ans: 2 ============================================= Question: 34 After storing the name of the preferred theme for each user in the PreferredTheme 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? 1, <@ Page Theme = Profile.PreferedTheme %> 2, <configuration> <system.web> <pages theme = Profile.PreferedTheme /> </system.web> </configuration> 3, void Page_PreInit (object sender, EventArgs e) { Page.Theme = Profile.PreferredTheme ; } 4, void Page_Load (object sender, EventArgs e) { Page.Theme = Profile.PreferredTheme ; } Ans: 3 ============================================= Question: 35 Which of the following can be used to set the "BlueSky" theme for the entire application in the Web.config file? 1, <@ Page Theme = "BlueSky" %> 2, <configuration> <system.web> <pages theme = " BlueSky" /> </system.web> </configuration> 3, void Page_PreInit(object sender, EventArgs e) { Page.Theme = " BlueSky" ; } 4, void Page_Laod (object sender, EventArgs e) { Page.Theme = " BlueSky" ;

} Ans: 2 ============================================= Question: 36 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 same as the name of the theme. 1, Statement A is TRUE, Statement B is FALSE. 2, Statement A is FALSE, Statement B is TRUE. 3, Both statements, A and B, are TRUE. 4, Both statements, A and B, are FALSE. Ans: 1 ============================================= Question: 37 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 a deployment mechanism, other users will also be able view and change the source code files. Which of the preceding statements are True? 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. Ans: 2 ============================================= Question: 38 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? 1, .Exe file 2, DLL assemblies 3, HTML code 4, Plain text Ans: 2 ============================================= Question: 39

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? 1, Changes to the code of the aspx files. 2, Changes to the layout of the aspx files. 3, Changes to the location of the aspx files. 4, Changes to the extension of the aspx files. Ans: 2 ============================================= Question: 40 Visual Studio 2005 includes Device Emulator 1.0. Which of the following is NOT emulated by this software? 1, Microsoft Windows CE 5.0 2, Microsoft Pocket PC 2003 3, Symbian OS S60 4, Microsoft Smartphone 2003 Ans: 3 ============================================= Question: 41 Which of the following Mobile controls is used to group child controls and can modify several child controls in a single operation? 1, ObjectList 2, Form 3, Panel 4, List Ans: 3 ============================================= Question: 42 Which of the following is NOT a type of Web site that can be created using Visual Studio 2005? 1, Local IIS Web sites 2, Remote IIS Web sites 3, FTP sites 4, Dynamic Web sites Ans: 4 ============================================= Question: 43 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? 1, ComboBox 2, IntelSense 3, Intellisense 4, ListView Ans: 3

============================================= Question: 44 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 can be displayed accordingly? 1, Request.Browser 2, Response.Browser 3, Request.Browser.Browser 4, Request.Browser.Type Ans: 3 ============================================= Question: 45 Using the CompareValidator control, you can compare the user input to which type of value? 1, Constant value 2, Variable value 3, Memory address 4, URL Ans: 1 ============================================= Question: 46 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 B: The CompareValidator control validates a user's entry against a constant value, or a property value of another control. Which of the preceding statements are TRUE? 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. Ans: 2 ============================================= Question: 47 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 redisplayed? 1, StateServer 2, ViewState

3, HttpSessionState 4, HttpApplicationState Ans: 2 ============================================= Question: 48 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? 1, Absolute expiration 2, Sliding expiration 3, Flush 4, Scavenging Ans: 4 ============================================= Question: 49 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? 1, onRemoveCallback 2, CacheItemRemovedCallback 3, CacheItemRemovedReason 4, RemovedCallback Ans: 2 ============================================= Question: 50 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 1, XmlDataDocument objects 2, XmlDataSource control 3, SqlDataSource control 4, FormView control Ans: 2 ============================================= Question: 51 Which of the following is NOT an authentication mechanism provided by ASP.NET? 1, Windows authentication 2, Logon authentication 3, Forms authentication 4, Passport authentication Ans: 2 ============================================= Question: 52 How can a content page refer to a master page at run time?

1,By using Master.FindControl method. 2,By setting the Page.MasterPageFile property. 3,By setting the value of masterPageFile attribute in the <%@ Page%> directive as <%@Page masterPageFile ="xxx"%>. 4,By setting the value of virtualPath attribute in the<%@ MasterType %> directive as <%@ MasterType virtualPath ="xxx"%>. Ans: 2 ============================================= Question: 53 Which of the following statements is NOT true about user controls? 1,A user control is saved as a file with .ascx extension. 2,A user control must contain at least one <form> tag. 3,A user control contains a <%@Control%> directive. 4,User control inherits methods and properties from the System.Web.UI.UserControl class. Ans: 2 ============================================= Question: 54 Which of the following statements correctly describes a custom Web server control? 1,A custom Web server control is saved as a file with an extension of .acsx. 2,Custom Web server controls are written entirely by managed code and have no markup file. 3,Custom Web server controls have a user interface that is composed of several existing Web Server controls. 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. Ans: 2 ============================================= Question: 55 What happens after adding the attribute trace="true" to the <%@Page%> directive in an ASP.NET page? 1,ASP.NET tracing information will be sent to a System.Diagnostics listener. 2,ASP.NET tracing information will be sent to a Tracing Listener object which receives the tracing output and writes it to logs. 3,ASP.NET will generate and display diagnostic information at the bottom of the rendered page. 4,ASP.NET will generate the diagnostic information and write it to logs. Ans: 3 ============================================= Question: 56

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. Which type of caching technique is used by the user? 1,Application Cache 2,Page Output Cache for caching a complete, single page 3,Page Output Cache with Partial Page Caching 4,Page Output Cache with support for caching multiple page versions Ans: 3 ============================================= Question: 57 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 lines will enable you to get the icon in your application? 1, Icon PaintIcon = Icon.ExtractAssociatedIcon("C:\WINDOWS\system32\mspaint.exe"); 2, SystemIcons PaintIcon = SystemIcons.ExtractAssociatedIcon("C:\WINDOWS\system32\mspaint.e xe"); 3, Icon PaintIcon = IconConverter.ExtractAssociatedIcon("C:\WINDOWS\system32\mspaint .exe"); 4, SystemIcons PaintIcon = SystemIcons.FromHandle("C:\WINDOWS\system32\mspaint.exe"); Ans: 1 ============================================= Question: 58 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 the existing levels of policies in the security policy heirarchy. Which of the following code snippets will provide you with the information? 1, Ienumerator policyEnum = SecurityManager.PolicyHierarchy(); while(policyEnum.MoveNext()) { PolicyLevel currentLevel = (PolicyLevel)policyEnum.Current; Console.WriteLine("Policy Level {0}:", currentLevel.Label); } 2, Ienumerator policyEnum = SecurityManager.PolicyHierarchy();

while(policyEnum.MoveNext()) { PolicyStatement currentStatement = (PolicyStatement)policyEnum.Current; Console.WriteLine("Policy Level {0}:", currentStatement.Label); } 3, Ienumerator policyEnum = Assembly.PolicyHierarchy(); while(policyEnum.MoveNext()) { PolicyStatement currentStatement = (PolicyStatement)policyEnum.Current; Console.WriteLine("Policy Level {0}:", currentStatement.Label); } 4, Ienumerator policyEnum = SecurityManager.PolicyHierarchy(); while(policyEnum.MoveNext()) { Policy currentLevel = (Policy)policyEnum.Current; Console.WriteLine("Policy Level {0}:", currentLevel.Label); } Ans: 1 ============================================= Question: 59 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 use to enter these details? 1, Assembly class 2, AssemblyInfo file 3, Reflection 4, PropertyInfo class Ans: 2 ============================================= Question: 60 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? 1, Use Delegates. 2, Use Platform Invoke. 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. Ans: 2

============================================= Question: 61 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 BufferedGraphicsContext class. Using which of the following classes will you get a reference of the BufferedGraphicsContext class so that it can further allocate memory to the specific object? 1, Graphics class 2, BufferredGraphicsManager class 3,SystemColors class 4, BufferredGraphics class Ans: 2 ============================================= Question: 62 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 Web.config file exists for the Web site. Which of the following configuration settings can be added in the Web.config file to perform this activity? 1, <system.web> <properties> <profile> <anonymousIdentification enabled= "true" /> <add name = "FavColor" type= "System.String" allowAnonymous= "true"/> </profile> </properties> </system.web> 2, <system.web> <profile> <properties> <anonymousIdentification enabled= "true" /> <add name = "FavColor" type= "System.String" allowAnonymous= "true"/> </properties> </profile> </system.web> 3, <system.web> <anonymousIdentification enabled= "true" /> <profile>

<properties> <add name = "FavColor" type= "System.String" allowAnonymous= "true"/> </properties> </profile> </system.web> 4, system.web> <anonymousIdentification enabled= "true" /> <properties> <profile> <add name = "FavColor" type= "System.String" allowAnonymous= "true"/> </profile> </properties> </system.web> Ans: 3 ============================================= Question: 63 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= Verdana Which of the following sequence of steps should Sam perform to complete this task? 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= "server" ForeColor="red" Font-Size= "14pt" Font-Names="Verdana"/> d) Save the skin file, and then close it. 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= "server" ForeColor="red" FontSize="14pt" Font-Names="Verdana"/> d) Save the skin file, and then close it. 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 runat= "server" ForeColor="red" Font-Size ="14pt" Font-Names="Verdana"/> d) Save the skin file, and then close it. 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" ForeColor "red" Font-Size "14pt" Font-Names="Verdana"/> d) Save the skin file, and then close it. Ans: 2 ============================================= Question: 64 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 value of the theme variable is Thm2, Theme2 should be applied. Which of the following code snippets will correctly perform this task? 1, void Page_Load (object sender, EventArgs e) { switch (Request.QueryString["theme"]) { case "Thm1": Page.Theme = "Theme1"; break; case "Thm2": Page.Theme = "Theme2"; break; } } 2, void Page_PreInit(object sender, EventArgs e) { switch (Request.QueryString["theme"]) { case "Thm1": Page.Theme("Theme1"); break; case "Thm2":

Page.Theme ("Theme2") break; } } 3, void Page_Load (object sender, EventArgs e) { switch (Request.QueryString["theme"]) { case "Thm1": Page.Theme("Theme1"); break; case "Thm2": Page.Theme("Theme2"); break; } } 4, void Page_PreInit(object sender, EventArgs e) { switch (Request.QueryString["theme"]) { case "Thm1": Page.Theme = "Theme1"; break; case "Thm2": Page.Theme = "Theme2"; break; } } Ans: 4 ============================================= Question: 65 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 with ID = "textFavColor" and a Button control with ID = "SetFavColor". Now he wants that whenever any user types the value of his/her favorite color in the Textbox and clicks the Button, the value of FavColor profile should be set to the value entered by the user in the Textbox control. Which of the following code snippets will set the FavColor property when the user clicks the Button 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); } 3, void SetFavColor_OnClick(object sender, System.EventArgs e) { FavColor.Profile =Server.HTMLEncode(textFavColor.Text); } 4, void SetFavColor_Click(object sender, System.EventArgs e) { FavColor.Profile=Server.HTMLEncode(textFavColor.Text); } Ans: 1 ============================================= Question: 66 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 users. He has already checked that Web.config file exists for the Web site. Which of the following configuration settings should Sam make in the Web.config file to perform the preceding activity? 1, <system.web> <properties> <anonymousIdentification enabled="false"/> <profile > <add groupName= "Person" name="FirstName" type="System.String" allowAnonymous="false" /> <add groupName = "Person" name="LastName" type="System.String" allowAnonymous="false" /> </profile> </properties> </system.web> 2, <system.web> <properties> <anonymousIdentification enabled="false"/> <profile > <group name="Person"> <add name="FirstName" type="System.String" allowAnonymous="false" /> <add name="LastName" type="System.String" allowAnonymous="false" /> </group> </profile> </properties> </system.web>

3, <system.web> <anonymousIdentification enabled="false"/> <profile > <properties> <group name="Person"> <add name="FirstName" type="System.String" allowAnonymous="false" /> <add name="LastName" type="System.String" allowAnonymous="false" /> </group> </properties> </profile> </system.web> 4, <system.web> <anonymousIdentification enabled="false"/> <profile > <properties> <add groupName = "Person" name="FirstName" type="System.String" allowAnonymous="false" /> <add groupName= "Person" name="LastName" type="System.String" allowAnonymous="false" /> </properties> </profile> </system.web> Ans: 3 ============================================= Question: 67 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 will you perform to connect to the Device Emulator, if ActiveSync is already running? 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 then click Connect. 4. The ActiveSync Connection Wizard starts and guides you through making a connection to the host computer. 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 ActiveSync Connection Wizard starts and guides you through making a connection to the host computer. 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 ActiveSync Connection Wizard starts and guides you through making a connection to the host computer. 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 connection to the host computer. Ans: 3 ============================================= Question: 68 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 steps should he perform to create the Web Setup project? 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, click Web Setup Project. 4. Expand the Other Project Types node in the Project types tree view and then click Setup and Deployment 5. Provide a name and choose a location for the new project, and then click OK. 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 tree view and then click Setup and Deployment. 4. In the Templates section of the Add New Project dialog box, click Web Setup Project. 5. Provide a name and choose a location for the new project, and then click OK.

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 tree view and then click Setup and Deployment. 4. In the Templates section of the Add New Project dialog box, click Web Setup Project. 5. Provide a name and choose a location for the new project, and then click OK. 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, click Web Setup Project. 4. Provide a name and choose a location for the new project, and then click OK. Ans: 2 ============================================= Question: 69 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 of the following sequence of steps should Bryan perform to achieve this task? 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 is selected in the Project drop-down list, and that (Active) is selected in the Configuration drop-down list. 4. Click Content Files. 5. Click OK. 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 that the Web site project is selected in the Project drop-down list, and that (Active) is selected in the Configuration drop-down list. 5. Click OK. 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 selected. 4. Ensure that the Web site project is selected in the Project drop-down list, and that (Active) is selected in the Configuration drop-down list. 5. Click OK. 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 selected. 4. Ensure that the Web site project is selected in the Project drop-down list, and that (Debug.Net) is selected in the Configuration drop-down list. 5. Click OK. Ans: 2 ============================================= Question: 70 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 located server in each branch. For this he is creating a Web Setup project in the Microsoft Visual Studio 2005 IDE. He wants to customize the user interface for the Windows Installer package and wants to display a License Agreement to the user before the installation begins. Which of the following steps should be perform to achieve this task? 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 Add Dialog dialog box appears. 3. Click License Agreement and then click OK. 4. Drag the License Agreement node into the tree-view so that it appears directly below the Welcome item.

5. Use the Properties window to set the LicenseFile property to a MS Word format file that contains the license agreement for your Web application. 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 shortcut menu. The Add Dialog dialog box appears. 3. Click License Agreement and then click OK. 4. Drag the License Agreement node into the tree-view so that it appears directly below the Welcome item. 5. Use the Properties window to set the LicenseFile property to a rich-text format file that contains the license agreement for your Web application. 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 Dialog dialog box appears. 3. Click License Agreement and then click OK. 4. Drag the License Agreement node into the tree-view so that it appears directly below the Welcome item. 5. Use the Properties window to set the LicenseFile property to a rich-text format file that contains the license agreement for your Web application. 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 shortcut menu. The Add Dialog dialog box appears. 3. Click License Agreement and then click OK. 4. Drag the License Agreement node into the tree-view so that it appears directly below the Welcome item. 5. Use the Properties window to set the LicenseFile property to a rich-text format file that contains the license agreement for your Web application. Ans: 3 ============================================= Question: 71 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 of the

following sequence of steps should John perform to achieve this task once he opens the Device Emulator Manager? 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 synchronization is complete, in the emulator, click Start, and then click Internet Explorer. 5. In the Address box, type the address http://172.23.4.227/page.aspx 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 synchronization is complete, in the emulator, click Start, and then click Internet Explorer. 5. In the Address box, type the address http://172.23.4.227/page.aspx 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 the synchronization is complete click Internet Explorer. 5. In the Address box, type the address http://172.23.4.227/page.aspx Ans: 1 ============================================= Question: 72 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 different from the codes specified, the user should be taken to

another page, GenericError.htm. Incorporating which of the following code snippets in web.config will correctly take the user to the specified error pages? 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> 2, <configuration> <system.web> <customErrors defaultRedirect="GenericError.htm" mode="RemoteOnly"> <error statusCode="500" Or "404" redirect="PageNotFound.htm"/> </customErrors> </system.web> </configuration> 3, <configuration> <system.web> <customErrors> <statusCode="500" redirect="PageNotFound.htm"/> <statusCode="404" redirect="PageNotFound.htm"/> </customErrors> </system.web> </configuration> 4, <configuration> <system.web> <customErrors error= "404" Or "500" redirect="PageNotFound.htm" mode="RemoteOnly"> </customErrors> </system.web> </configuration> Ans: 1 ============================================= Question: 73 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

settings will you incorporate in the web.config file to fulfill these requirements? 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> 3, <configuration> <system.web> <compilation defaultLanguage="C#"> numRecompilesBeforeAppRestart="10" </compilation> </system.web> </configuration> 4, <configuration> <system.web> <compilation defaultLanguage="C#" numRecompilesBeforeAppRestart="10"> </compilation> </system.web> </configuration> Ans: 4 ============================================= Question: 74 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 corresponding buttons on the home page of the site. You have written the following code snippet on the Homepage that transfers the customer's selection to the feedback form: void CommandBtn_Command(Object sender, CommandEventArgs e) { switch (e.CommandName) {

case "HomeDelivery": Server.Transfer("YourFeedback.aspx?Feedback=HomeDelivery"); break; case "Search": Server.Transfer("YourFeedback.aspx?Feedback=Search"); break; } } How will you change the title of the page that accepts the feedback depending on the selection made by the customer? 1, switch (Response.QueryString["Feedback"]) { case "HomeDelivery": Page.Header.Title = "Feedback about our Home Delivery Services"; break; case "FoodQuality": Page.Header.Title = "Feedback about the food quality of our Restaurant"; break; } 2, switch (QueryString["Feedback"]) { case "HomeDelivery": Page.Header.Title = "Feedback about our Home Delivery Services"; break; case "FoodQuality": Page.Header.Title = "Feedback about the food quality of our Restaurant"; break; } 3, switch (Request.QueryString["Feedback"]) { case "HomeDelivery": Page.Header.Title = "Feedback about our Home Delivery Services"; break; case "FoodQuality": Page.Header.Title = "Feedback about the food quality of our Restaurant"; break; } 4, switch (Request.QueryString("Feedback")) { case "HomeDelivery":

Page.Header.Title = "Feedback about our Home Delivery Services"; break; case "FoodQuality": Page.Header.Title = "Feedback about the food quality of our Restaurant"; break; } Ans: 3 ============================================= Question: 75 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 the page that opens on clicking the Submit button. Which of the following code snippets will you write in the target page to achieve this task? 1, string sName = txtName.Value.ToString(); 2, TextBox txtName = (TextBox)Page.PreviousPage.FindControl("txtName"); string sName = txtName.Text.ToString(); 3, TextBox txtName = (TextBox)Page.PreviousPage.FindControl("txtName"); string sName = txtName.Value.ToString(); 4, string sName.Text = (TextBox)Page.PreviousPage.FindControl("txtName"); Ans: 2 ============================================= Question: 76 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 your site. Which one of the following lines of code will you write in your content pages to include the master page? 1, <%@ Page MasterPageFile="~/MasterPages/SampleMaster.master" %> 2, <%@ Page MasterPage="~/MasterPages/SampleMaster.master" %> 3, <%@ Page Master="~/MasterPages/SampleMaster.master" %> 4, <%@ Page MasterPageFile:"~/MasterPages/SampleMaster.master" %> Ans: 1 ============================================= Question: 77

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 and when the user finishes the selection, the prices of all the products are to be summed up and displayed to the user. Which of the following will you use to keep a track of all the product selections made by different users? 1, ControlState 2, ViewState 3, Session object 4, Application object Ans: 3 ============================================= Question: 78 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 the required information in Web.config file. However, when he tries to access this connection string in the pages where he needs to connect to the database he is not able to do so. Which of the following code snippets will allow him to successfully achieve this task? The name of the connection string in Web.config file is "NewConString". 1, string dbStr = Configuration.ConnectionStrings ["NewConString"].ConnectionString; System.Data.SqlClient.SqlConnection sqlConn = new System.Data.SqlClient.SqlConnection(dbStr); sqlConn.Open(); 2, string dbStr = ConfigurationManager.ConnectionStrings ["NewConString"].ConnectionString; System.Data.SqlClient.SqlConnection sqlConn = new System.Data.SqlClient.SqlConnection(dbStr); sqlConn.Open(); 3, string dbStr = ConfigurationSettings.ConnectionStrings ["NewConString"].ConnectionString; System.Data.SqlClient.SqlConnection sqlConn = new System.Data.SqlClient.SqlConnection(dbStr); sqlConn.Open(); 4, string dbStr =

ConfigurationSection.ConnectionStrings ["NewConString"].ConnectionString; System.Data.SqlClient.SqlConnection sqlConn = new System.Data.SqlClient.SqlConnection(dbStr); sqlConn.Open(); Ans: 2 ============================================= Question: 79 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 rest should be denied access. To implement this, she has created a Web.config file in each of these directories and provided the following code to fulfill her requirement: <credentials> <allow users="Samantha"/> <allow users="Bryan"/> <allow users="John"/> <deny users="*"/> </credentials> However, all the users are still able to access these directories. What should she do to prevent that? 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> 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>

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> 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> Ans: 4 ============================================= Question: 80 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","jim@newtechbooks.com"); if (NewLogin != null) { lblMsg.Text = "User Added"; } else { lblMsg.Text = "User not Added"; } However, every time he executes this code, the "User not Added" message is displayed and the user creation fails. What is wrong with the code he has written? 1, John should use the AddUser method of the Membership class instead of the CreateUser method. 2, John should instantiate NewLogin as an object of MembershipUser class. 3, John should use AddUser method of the MembershipUser class. 4, John should use the CreateUser method with the MembershipUser class instead of the Membership class. Ans: 2 =============================================

Question: 81 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 business object to store and retrieve the reviews from the database. If for a particular product, no reviews exist in the database, a message should get displayed stating 'No reviews exist for this product'. Which tag of the FormView control should John use to display this message? 1, <ItemTemplate> 2, <EmptyDataTemplate> 3, <InsertItemTemplate> 4, <InsertParameters> Ans: 2 ============================================= Question: 82 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 default resource file review.aspx.resx and a resource file review.aspx.fr.resx for culture-neutral French language, in the App_LocalResources folder. On testing this application on the browser after setting the preferred language as French, Sam finds that the values of the controls are not displayed according to the review.aspx.fr.resx file. How can this problem be solved? 1,Store the resource file in App_GlobalResources folder in place of App_LocalResources folder. 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". Ans: 2 ============================================= Question: 83 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 the culture-neutral French language in the App_GlobalResources folder. After that he enables automatic culture determination for the review.aspx page by adding uiculture= "auto" to the <% Page%> directive.

On testing the application on the browser after setting the preferred language as French, he finds that values of the controls are not displayed according to the review.aspx.fr.resx file. How can this problem be solved? 1,Store the resource files in the App_LocalResources folder in place of App_GlobalResources folder. 2,Enable automatic culture determination for the page by adding uiculture="true" to the <%Page%> directive. 3,Rename the file "review.aspx.fr.resx" as "review.aspx.en.fr.resx" 4,Enable automatic culture determination for the page by adding uiculture="enable" to the <%Page%> directive. Ans: 1 ============================================= Question: 84 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 enquiry.aspx based on the two parameters "city" and "country". To cache the multiple versions of enquiry.aspx page output programmatically, he writes the following code in the page's code-behind class: Response.Cache.VaryByParams("country", "city") = true; However, during the build process, the code gives a compile time error. Identify the correct code to implement the specified requriement. 1,Response.Cache.VaryByParams("country", true); Response.Cache.VaryByParams("city", true); 2,Response.Cache.VaryByParams[*] = true; 3,Response.Cache.VaryByParams["country"] = true; Response.Cache.VaryByParams["city"] = true; 4,Response.Cache.VaryByParams["country", "city"] = true; Ans: 3 ============================================= Question: 85 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 page starts. The data should be stored in RedSky_Shopping log in the source called LoadTime_Survey. To perform this activity Sam writes the following code in the beginning of the Page_Load method of this page: DateTime dtmStart = DateTime.Now; if (!System.Diagnostics.EventLog.SourceExists("LoadTime_Survey"))

{ System.Diagnostics.EventLog.CreateEventSource("LoadTime_Survey", " RedSky_Shopping "); } System.Diagnostics.EventLog.WriteEntry("RedSky_Shopping", dtmStart. ToString()); But when he tests this application, the code written gives an error. How can this error be removed? 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.EventLog.WriteEntry(dtmStart. ToString(),"RedSky_Shopping"); 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.EventLog.WriteEntry("LoadTime_Survey", dtmStart.ToString()); 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.EventLog.WriteEntry(dtmStart.ToString(),"Load Time_Survey"); 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.EventLog.WriteEntry("LoadTime_Survey", dtmStart.ToString()); Ans: 2 ============================================= Question: 86 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.Web.UI.WebControls; public class WelcomeLabel:CustomControl { protected override void RenderContents (HTMLTextWriter writer) { writer.Write("Welcome"); } } During the build process the code is giving an error. How can this error be removed? 1,Modify the code for the WelcomeLabel class as: public class WelcomeLabel:CustomControl { protected override void RenderControl (HTMLTextWriter writer) { writer.Write("Welcome"); } } 2,Modify the code for the WelcomeLabel class as: public class WelcomeLabel:CompositeControl { protected override void RenderContents (HTMLTextWriter writer) { writer.Write("Welcome"); } } 3,Modify the code for the WelcomeLabel class as:

public class WelcomeLabel:WebControl { protected override void RenderControl (HTMLTextWriter writer) { writer.Write("Welcome"); } } 4,Modify the code for the WelcomeLabel class as: public class WelcomeLabel:WebControl { protected override void RenderContents (HTMLTextWriter writer) { writer.Write("Welcome"); } } Ans: 4 ============================================= Question: 87 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 with ID property = lblFavColor and Text property = (empty) in the profiles.aspx page. Sam wants that when the profiles.aspx page loads, the Text property of the Label control should display the value of FavColor property for the current user. For this he has created the following event handler: void Page_Load(object sender, System.EventArgs e) { lblFavColor.Text = Profile("FavColor"); } However, when Sam tried to build this application, there was a compile time error. Identify the correct code to implement the specified requirement. 1,void Page_Load(object sender, System.EventArgs e) { lblFavColor.Text = Profile.properties("FavColor"); } 2,void Page_Load(object sender, System.EventArgs e) {

lblFavColor.Text = Profile.FavColor; } 3,void Page_Load(object sender, System.EventArgs e) { lblFavColor.Text = Profile.properties.FavColor; } 4,void Page_Load(object sender, System.EventArgs e) { lblFavColor.Text = Properties.profile.FavColor; } Ans: 2 ============================================= Question: 88 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"/> tag in Web.config file. Now he is required to set the Red theme to the Profile.aspx page in such a way that the theme for the other pages remains the same. To perform this action he has modified the previously added <pages> tag in Web.config file as: <pages theme ="Green"> <page src= "~/Profile.aspx" theme = "Red"/> </pages> However, this is not giving the desired results. How can this error be corrected so that the application works as per requirement? 1,Modify the existing code in the Web.config file as: <pages defaulttheme ="Green" src = ~/Profile.aspx theme ="Red"/> 2,Modify the existing code in the Web.config file as: <pages defaultTheme ="Green"> <page src= ~/Profile.aspx theme = "Red"/> </pages> 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 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

Ans: 3 ============================================= Question: 89 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 Theme ="GlobalRed" %> directive in the sample.aspx page. On viewing the sample.aspx page he finds that the application is working fine and the GlobalRed theme is applied to the page. Now he wants to apply the same theme to the to entire application. To do this he removed the Theme ="GlobalRed" attribute from the <%@ Page%> directive in the sample.aspx and added the following code in the Web.config file as: <configuration> <system.web> <%@ Page Theme ="GlobalRed" %> </system.web> </configuration> However, the application stopped working properly. Identify the correct code to rectify the error? 1,Modify the code in Web.config file as: <configuration> <system.web> <%@ Page DeafultTheme ="GlobalRed" %> </system.web> </configuration> 2,Modify the code in Web.config file as: <configuration> <system.web> <pages DeafultTheme ="GlobalRed" /> </system.web> </configuration> 3,Modify the code in Web.config file as: <configuration> <system.web> <pages theme ="GlobalRed"/ > </system.web> </configuration> 4,Modify the code in Web.config file as:

<configuration> <system.web> <% Page DeafultTheme ="GlobalRed" %> </system.web> </configuration> Ans: 3 ============================================= Question: 90 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="server" BackColor="DarkRed" /> <asp:Button runat="server" SkinID="BkButton" BackColor="Black"/> Next, he applied the theme to the Sample.aspx page of the application. Further in the sample.aspx page he added a Save button and a Cancel button using the following code: <asp:Button ID="btnSave" runat="server" Text="Save"/> <asp:Button ID="btnCancel" runat="server" Text="Cancel" BackColor="Black" /> He wants that the back color of the Save button should appear as DarkRed and that of the Cancel button should appear as Black. But on viewing this page in the browser he finds that the back color of both the Save and the Cancel buttons appears as DarkRed. How can this problem be solved so that the back color of the Save and Cancel buttons appears as desired? 1,Modify the first line of Red.skin file as: <asp:Button runat="server" BackColor="Black" /> 2,Modify the second line of Sample.aspx as: <asp:Button ID="BkButton" runat="server" Text="Cancel" BackColor="Black" /> 3,Modify the second line of Sample.aspx as: <asp:Button ID="btnCancel" runat="server" Text="Cancel" BackColor="BkButton" /> 4,Modify the second line of Sample.aspx as: <asp:Button ID="btnCancel" runat="server" Text="Cancel" SkinID="BkButton" /> Ans: 4 ============================================= Question: 91 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 profile properties for this Web application, he has added the following code in the Web.config file: <system.web> <allowAnonymous enable = "true"> <profile> <properties> <add name = "PrefLocation type ="System.String" /> </properties> </profile> </system.web> However, on running the application the PrefLocation property is not stored for anonymous users. How can the preceding code be modified to correctly store the desired profile properties for anonymous users? 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> 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"/> </properties> </profile> </system.web> 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> </system.web>

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"/> </properties> </profile> </system.web> Ans: 2 ============================================= Question: 92 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 upgraded the application and it now incorporates new as well as the old features. The upgradation of the product has been done using the .Net Framework 2.0. However, the upgraded application when executed, does not allow the users to access the previously available functionality. What should Joanne do to run the application effectively? 1,She should create assemblies in her application providing the same features as the previously created components. 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. 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. 4,She should create a Shared assembly for her application to communicate with the COM components. Ans: 2 ============================================= Question: 93 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 available COM component can communicate and make available its functionality. However, the COM component is not able to instantiate the .Net Framework component. What could be the cause for this? 1,Ben implemented the default class interface for the .Net Framework component.

2,Ben did not create a public constructor with no parameters for the .Net Framework component. 3,Ben created the constant fields and static methods of the .Net Framework component as Public members. 4,Ben created a public constructor with no parameters for the .Net Framework component. Ans: 2 ============================================= Question: 94 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 information has been used to make transactions without their knowledge. On investigating, Bryan has identified that the information has not been stolen at the database level rather it has been stolen by some malicious code that has accessed the values of the objects from the memory after application execution. What should Bryan do to prevent this from happening again? 1,Bryan should call the Clear method of the cryptographic class. 2,Bryan should wait for the garbage collector to finish its execution before storing the values. 3,Bryan should Flush the memory by calling the Flush method of the cryptographic class. 4,Bryan should Kill the object values by calling the Kill method of the cryptographic class. Ans: 1 ============================================= Question: 95 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 task, the thread is terminated and the memory allocated to it is freed. Over the time, this process slows down the performance of the application. What should you do to increase the application performance in the context of this problem? 1,The Thread class should be used to implement threading. 2,The ThreadPool class should be used to implement threading. 3,The Monitor class should be used to monitor and increase the application performance. 4,The ParameterizedThreadStart class should be used to control the behavior of the threads. Ans: 2 =============================================

Question: 96 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 welcome mail to the email address provided by him during registration. A random number is also generated, for the user to enter and confirm his membership. Jonathan has created separate methods for executing these tasks. However, he wants that the moment a user registers, a single call should invoke all the methods. How should he achieve this? 1,Jonathan should make individual calls to these methods from within the class that executes the registration process. 2,Jonathan should use singlecasting. 3,Jonathan should use Multithreading. 4,Jonathan should use multicasting. Ans: 4 ============================================= Question: 97 Which of the following is NOT used to load an assembly dynamically? 1, The Load method of the AppDomain class 2, The Load method of the Assembly class 3, The LoadFrom method of the Assembly class 4, The LoadTo method of the Assembly class Ans: 4 ============================================= Question: 98 ApplicationBase, ApplicationName, and ConfigurationFile are the properties of which class? 1, AppDomainSetup class 2, ApplicationDomain class 3, AppDomain class 4, Assembly class Ans: 1 ============================================= Question: 99 To create a Windows service application, you must create a Windows application containing a class that extends the _________ class. 1, ServiceInstaller class 2, ServiceController class 3, ServiceBase class 4, ServiceProcessInstaller class Ans: 3 ============================================= Question: 100

Which of the following classes can be used to access the metadata of assemblies during reflection? 1, Assembly class 2, FieldInfo class 3, PropertyInfo class 4, MethodInfo class Ans: 1 ============================================= Question: 101 Which of the following classes does NOT implement symmetric encryption? 1, DES 2, RC2 3, DSA 4, Rijndael Ans: 3 ============================================= Question: 102 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 to accomplish his taks? 1,Graphic Library 2,Math Library 3,Image Processing Library 4,Engineering and Scienc Library Ans: 1 ============================================= Question: 103 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 performance library should John use? 1,Math Library 2,Image Processing Library 3,Graphic Library 4,Enguneering and Science Library Ans: 2 ============================================= Question: 104 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. 1, Combining Loops

2,Remove unwanted parts of Loops 3,Reduce work inside loops 4,Use setinel value Ans: 1 ============================================= Question: 105 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]; } 1,Use sentinel values 2,Interchange loops 3,Use pointers 4,Combine loops Ans: 2 ============================================= Question: 106 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? 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. Ans: 3 ============================================= Question: 107 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 some other capabilities of the processor are reduced. Which of the below given statements is true? 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. Ans: 3 ============================================= Question: 108 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 collecting performance-related data, you should identify hotspots. Which of the below given statements is true? 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. Ans: 3 ============================================= Question: 109 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 resolve the performance issue? 1,Optimize memory operations 2,Increase the number of MFLOPS of the processor 3,Optimize floating-point operations 4,Optimize system calls Ans: 1 ============================================= Question: 110 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 might retard performance. Which of the following statements is true with respect to optimizing memory operations? 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. Ans: 3 =============================================

Question: 111 What are the levels at which Application Optimization is done? 1,System, Application, micro Architecture 2,Only System and Application 3,System, Software, Peripherals 4,Only System Configuration and Hardware Ans: 1 ============================================= Question: 112 Which is the key factor that a developer can optimize to suit different specifications and obtain best performance on a given hardware? 1,System resources 2,Source code 3,Hardware resources 4,Processor performance Ans: 2 ============================================= Question: 113 A small code executed independently by the processor that enables a computer to perform several tasks simultaneously is known as: 1,Library 2,Performance library 3,Module 4,Thread Ans: 4 ============================================= Question: 114 Why is Application optimization used? Select the best answer. 1,To make the best use of available resources and as an alternative to upgrading hardware resources. 2,As an alternative to upgrading hardware resources. 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. Ans: 1 ============================================= Question: 115 Which of the following levels of optimization will be used to tune application performance with respect to system level DLLs and APIs? 1,Application Level 2,Computer Architecture Level 3,System Level 4,Application Level and Computer Architecture Level

Ans: 3 ============================================= Question: 116 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 complete the optimization process. 1,He needs to analyze alternatives before identifying issues that necessitate application enhancement. 2,He needs to implement enhancements and identify the data that necessitate enhancement before generating alternatives. 3,He needs to analyze the gathered data and identify the performance issues before generating alternatives. 4,He needs to generate the possible enhancements. Ans: 3 ============================================= Question: 117 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 of optimization. Which of the following does Jack needs to do to successfully optimize the application performance? 1,He needs to analyze the application for system calls and implement enhancements. 2,He needs to identify alternatives and optimize issues that necessitate application enhancement. 3,He needs to optimize memory operations, floating point operations, and system calls. 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. Ans: 4 ============================================= Question: 118 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 2,Use sentinel value 3,Reduce work inside loops 4,Combine loops Ans: 2

============================================= Question: 119 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 view the information such as CPU architecture, the OS, CPU L2 Cache size and the bus speed. Which of the following options should Sam use to view the preceeding information? 1,Workload insights 2,System Info 3,Hotspot insights 4,Module insights Ans: 2 ============================================= Question: 120 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 specifying the address of the remote agent system on the controlling system. Before starting the remote data collection, he has to fulfill another necessary prerequisite. Identify the prerequisite from the options given below. 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. 2,He needs to install the Java application on the controlling system and restart the target system. 3,He needs to install a remote agent on the controlling system as on the target system. 4,He needs to install a fourth DCOM component on the target system. Ans: 1 ============================================= Question: 121 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 feasible action for Jim to optimize the application running on the server. 1,He needs to copy the application to his computer and then optimize the source code. 2,He needs to analyze the system level performance of the server.

3,He needs to analyze the performance of the remote application on the remote system using VTune Performance Analyzer. 4,He needs to launch the application in interactive mode on his local computer . Ans: 3 ============================================= Question: 122 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. Enabled the DCOM components, StandardExeCtrl and tebscollector on the target system C. Installed Vtune on the Controlling system and enabled the controlling system, and D. Specified the remote agent system However, he could not collect remote performance data. What could have been the possible cause for the problem? 1,Jack did not install the remote application on the controlling system before starting with remote data collection. 2,Jack did not specify the address of the controlling system on the target system. 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. 4,Jack did not install the DCOM component DbgExeCtrl on the target system before starting with remote data collection. Ans: 4 ============================================= Question: 123 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? 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. 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. 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.

4, 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 target systems. Ans: 2 ============================================= Question: 124 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 of the below given options states the best solution to optimize the application? 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. 3,He needs to use large data structures. 4,He needs to identify the floating-point operations and build custom routines so that the process need not wait for data. Ans: 1 ============================================= Question: 125 Henry needs to optimize an e-commerce application at the systemlevel and application-level. Which of the below given options states the optimization goals at these levels? 1,At system level, improve application interaction with the system with respect to DLLs and APIs and at application level, improve algorithms. 2,At system level, improve algorithms and at application level, improve application interaction with the system. 3,At system level, tune the processor according to the application and at application level, improve algorithms. 4,At system level, improve algorithms and at application level, improve application interaction with the processor. Ans: 1 ============================================= Question: 126 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? 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. Ans: 2 ============================================= Question: 127 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 order to be able to analyze the application performance. 1,He needs to install the remote agent on the controlling system from where he would be accessing the remote application. 2,He needs to install the remote agent on the controlling computer on which the remote application was created. 3,He needs to install the remote agent on the mobile phone on which the remote application is located. 4,He needs to install the remote application on the controlling system from where he would be analyzing remote performance. Ans: 3 ============================================= Question: 128 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 systemrelated performance issues. He then needs to optimize the application based on the information in the Tuning Advice report. What should Mike do to perform the required task? 1,Invoke Tuning Assistant for Counter-monitor based advice 2,Invoke Tuning Assistant for call graph results 3,Invoke Tuning Assistant for time-based sampling results 4,Invoke Tuning Assistant for event-based sampling results Ans: 1 ============================================= Question: 129 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 standard metric to indicate the total number of instructions that are discarded during program execution. Which of the following calculations should Tom use to perform the required tasks? 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.

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. 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. Ans: 3 ============================================= Question: 130 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 also limited and the data needs to be reloaded when requested again by the CPU. Which of the following could be the possible reason: A. The performance is affected due to Cache Compulsory loads and Cache Capacity loads B. The performance is affected due to Software Prefetch C. The performance is affected due to Cache Conflict loads 1,Only A 2,Only B 3,Both A and B 4,Both B and C Ans: 1 ============================================= Question: 131 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 application on Java platform and analyzes the performance using Vtune Performance Analyzer. Pat invokes the Sampling Wizard and wants to set the levels of analysis of sampling data to achieve in-depth tuning advice. What level of analysis should Pat set? 1,One sampling run with minimal advice 2, A few sampling runs with some advice 3,Many sampling runs with more advice

4,One sampling run with minimal advice or A few sampling runs with some advice Ans: 3 ============================================= Question: 132 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 needs to be reloaded when it is requested by the CPU again. Which of the following measures should Ken take to improve the memory performance? A. Load smaller chunks of data that fit into the cache and use the software prefetch capability. B. Calculate the amount of memory that the application uses. C. Change number of floating point instructions. 1,Only A 2,Only B 3,Both A and B 4,Both B and C Ans: 1 ============================================= Question: 133 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 insights that are estimated to have significant impacts on performance. In addition, he needs to view the relevance of the issue. Which categories of insight enable Pat to view the required information? 1,Module insights and the More Information window 2,Hotspots insights and System Info 3,Top Insights and Relevance scale 4,Top insights and the More Information window Ans: 3 ============================================= Question: 134 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 True Travel Services and is assigned the task to review the code of the application in VTune.

She needs to view information about insights that are estimated to have significant impact on performance. Which category of insights will enable her to perform the required tasks? 1,Top Insights 2,Workload Insights 3,Module Insights 4,System Info Ans: 1 ============================================= Question: 135 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 that the waiting time during the memory reads and writes is minimized. Which of the following concepts Jim needs to know to accomlish his taks? 1,Temporal locality and paging 2,Cache Efficiency 3, Software Prefetch 4,Data Alignment Ans: 3 ============================================= Question: 136 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? 1,Workload Insights 2,Static Analysis 3,Top Analysis 4,System Info Ans: 3 ============================================= Question: 137 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 Wizard to perform data collection. Pat wants to perform more than five sampling runs and monitor only the events used for the in-depth application level. He wants to view insights on performance issues for modules. What should Pat do to perform the required task? 1,Check the "One sampling run with minimal advice" option and view the Module insights for a selected process. 2,Check the "One sampling run with minimal advice" option.

3,Check the "Few sampling run with some advice" option and view the Hotspots insights for a selected process. 4,Check the "Many sampling run with more advice" option and view the Modules insights for a selected process. Ans: 4 ============================================= Question: 138 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 performance at the system level, Ken decides to analyze performance counter data, and then use the Tuning Assistant to identify performance issues. Ken collects the specific performance counter data by configuring the data collector using the Counter Monitor Configuration Wizard. He needs to launch the Tuning Assistant to identify the performance issues and propose possible solutions for the issues. What is the correct sequence of steps that Ken should follow to perform the above task? 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 to launch the Tuning Assistant. 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. 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 to launch the Tuning Assistant. 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. Ans: 1 ============================================= Question: 139 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 collect data. The counter analysis indicate high 64K Aliasing in the Tuning Advice report. Now Ken needs to view the significance of the insight. What should Ken do to perform the required task?

1,View Top Insights. 2,View Hotspots Insights. 3,View Module Insights. 4,View Relevance Scale. Ans: 4 ============================================= Question: 140 Steve Irwin is working as a software developer at Blue Moon Computer Inc. located 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. However, the students complain about the slow performance of the chat application. Steve needs to reduce the time spent waiting for memory and minimize the waiting time during memory reads and writes. Identify the memory performance issue that Steve needs to monitor. 1,Software Prefetch 2,Data Alignment 3,Cache Compulsory Loads 4,Cache Conflict Loads Ans: 1 ============================================= Question: 141 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 advice report for the collected data. In addition, he needs to compare the difference between two runs. What should Tom do to perform the required tasks? 1,Check the Automatically generate tuning advice option. 2, Check the Automatically generate tuning advice option, use Tuning Assistant to compare multiple sampling activity results. 3,Uncheck the Automatically generate tuning advice option. 4,Invoke Tuning Assistant by using the F8 key. Ans: 2 ============================================= Question: 142 You are working as an application developer. You develop a C# application and writen 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 application is performing slowly. You decide to optimize the above code. Which technique should you use to optimize the code? 1,Split the for loop into two separate for loops. 2,Use Sentinel Values. 3,Reduce work inside loops 4,Use Unrolling. Ans: 3 ============================================= Question: 143 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 following is true, with respect to the above statements? 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. Ans: 3 ============================================= Question: 144 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? 1,Graphic Libraries 2,Image Processing Libraries 3,Math Libraries 4,Audio/Video Libraries Ans: 1 ============================================= Question: 145 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]; 1,Using unrolling 2,Using sentinel values 3,Using faster functions 4,Changing the order of loops Ans: 4

============================================= Question: 146 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 respect to the above statements? 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. Ans: 1 ============================================= Question: 147 Identify the level of memory hierarchy that speeds up the execution of instructions by providing fast access to intermediate values computed during a calculation. 1,Virtual Memory 2,Main Memory 3,Level1 Cache 4,Registers Ans: 4 ============================================= Question: 148 Identify the processor performance parameter that indicates the amount of time it takes to execute a particular process. 1,Turnaround Time 2,Instruction Execution Time 3,Program Execution Time 4,Response Time Ans: 1 ============================================= Question: 149 Which of the following indicates the number of processes that complete their execution per unit time? 1,Throughput 2,Turnaround time 3,Instruction execution time 4,Program execution time Ans: 1 ============================================= Question: 150 Which one of the following options enables a processor to load a specific location of memory before it is required for processing?

1,Cache conflict loads 2,Cache capacity loads 3,Data alignment 4,Software Prefetch Ans: 4 ============================================= Question: 151 A high value of which of the following processor's utilization measures, indicates low resource utilization? 1,Clocks Cycles Per Instructions Retired (CPI) 2,Percentage of floating-point instructions 3,CPU bursts 4,Waiting time Ans: 1 ============================================= Question: 152 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 analyze the performance of the application. Which feature of Vtune performance Analyzer will be best option for Jim to use? 1,Sampling 2,Call Graph 3,Counter Monitor 4,Tuning Assistant Ans: 1 ============================================= Question: 153 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 application. Which feature of VTune performance analyzer should Jim Lewis use to perform the task? 1,Call Graph 2,Counter Monitor 3,Sampling 4,Both Call Graph and Sampling Ans: 2 ============================================= Question: 154 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 respect to the above statements? 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. Ans: 3 ============================================= Question: 155 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 decides to perform the system-level tuning to optimize the utilization of system resources. Which feature of VTune performance Analyzer should Larry use to perform the task? 1,Call Graph 2,Time-based Sampling 3,Event-based Sampling 4,Counter Monitor Ans: 4 ============================================= Question: 156 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 improving the algorithms. Which feature of VTune Performance Analyzer should Jim use to identify the code snippets where he needs to improve the algorithm? 1,Counter Monitor 2,Time-based Sampling 3,Event-based Sampling 4,Call Graph Ans: 4 ============================================= Question: 157 Which of the following enables you to identify the threads that are running serially and the threads that are running in parallel? 1,Counter Monitor view 2,Sampling Over Time view 3,Call Graph view 4,Hotspots view Ans: 2

============================================= Question: 158 Donna Bard is working as software developer with Global Systems, Inc. Donna develops a scientific application on Java platform for weather forecasting. However, Donna finds that the application is performing very slowly. Donna uses Vtune Performance Analyzer to perform system and application-level tuning. Donna wants to identify the code snippet that is taking the longest CPU time to execute. What should Donna do to perform the task? 1,1. Perform the sampling profiling of VTune Performance Analyzer. 2. Select the executable file of the application and click the Module button. 3. Double-click on the function to get the source code of the application. 4. Double-click the jit file. 2,1. Perform the call graph profiling of VTune Performance Analyzer. 2. Select the function name in the function summary view that is consuming least amount of time and right-click on it. 3. Select the View Source option from the pop-up menu to get the source code of the function. 3,1. Perform the call graph profiling of VTune Performance Analyzer. 2. Select the function name in the function summary view that is consuming much amount of time. 3. Double-click on the function to get the source code. 4,1. Perform the sampling profiling of VTune Performance Analyzer. 2. Select on the function to get the source code of the application. 3. Double-click the jit file. 4. Double-click the executable file of the application and click the Module button. Ans: 1 ============================================= Question: 159 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 application, to calculate the actual performance of the application in response to various processor events, John wants to control all the steps of activity creation and configuration. He also wants to add multiple data collectors and configure them. In addition, he wants to add application/module

profiles to an activity and associate them with any of the data collectors. Which of the following Wizard should John configure to accomplish this task? 1,Sampling Wizard 2,Quick Performance Analysis Wizard 3,Complete Setup Wizard 4,Advance Activity Configuration Ans: 4 ============================================= Question: 160 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 be able to view? 1,Context Switching 2,Function calling Sequence 3,Thread interaction 4,Processor utilization Ans: 2 ============================================= Question: 161 Pat Greene is working as Java programmer with Blue Moon Computers. Pat develops an online shopping application that uses a large number of functions. The application is producing the desired output. However, the application is slow. What are the steps that Pat needs to perform to collect and analyze function call information? 1,Pat needs to configure the Call Graph collector using different types of Wizards. Pat then needs to create an Activity that contains the Call Graph collector data about the application. 2,Pat needs to configure the Counter Monitor collector using different types of Wizards. Pat needs to identify the critical path of the application. 3,Pat needs to create an Activity that contains the Call Graph collector data about the application. Pat then needs to configure the Call Graph collector using different types of Wizards. 4,Pat needs to use the Sampling to create an Activity that contains the Call Graph collector data about the application. Ans: 1 ============================================= Question: 162

Which of the one following options enables you to tune application performance and its usage of system resources? 1, Sampling 2, Call Graph 3, Counter Monitor 4, Tuning Assistant Ans: 4 ============================================= Question: 163 Which feature of tuning assistant suggests steps to remove or avoid a problem? 1, Insight 2, Relevance Scale 3, Advice 4, Workload Ans: 3 ============================================= Question: 164 Which feature of Tuning Assistant indicates the problem that could be hindering the performance of the application? 1, Insight 2, Relevance Scale 3, Advice 4, Workload Ans: 1 ============================================= Question: 165 Which feature of Tuning Assistant mentions about the applications that were running when VTune Performance Analyzer was profiling the system? 1, Insight 2, Relevance Scale 3, Advice 4, Workload Ans: 4 ============================================= Question: 166 Which of the following is NOT true about remote data collection in Intel Vtune? 1, To initiate remote data collection, you need to enable the remote agent on the target system. 2, To initiate remote data collection, you need to disable DCOM components on the target system. 3, To initiate remote data collection, you need to enable the controlling system from which the remote performance data needs to be collected.

4, To initiate remote data collection, you need to specify the target system on which the remote application is running. Ans: 2 ============================================= Question: 167 Which of the following is NOT true about threads? 1, Threads increases the performance and the ability to use multi-core processors. 2, Threads do not facilitate data sharing. 3, Threads enables you to effectively utilize the hardware resources. 4, Improper use of threads leads to degraded performance. Ans: 2 ============================================= Question: 168 According to which condition for a deadlock to occur, a resource can be released by a thread holding it? 1, Mutual exclusion 2, No preemption 3, Hold and wait 4, Circular wait Ans: 2 ============================================= Question: 169 What is hold and wait condition in a deadlock? 1, A condition where a resource is either available or assigned to one thread 2, A condition where threads already holding resources may request for new resources 3, A condition where a thread holding a resource can only release it 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 Ans: 2 ============================================= Question: 170 What is a race condition? 1, A condition when two or more threads simultaneously access the same memory location while atleast one thread is updating that location. 2, A condition that occurs when a programmer assumes a particular order of execution and guarantees that order through synchronization. 3, A condition that occurs when a thread does not progress on assigned computations, but the thread is not blocked or waiting.

4, A condition that occurs when a thread does not progress on assigned computations because it is blocked or waiting. Ans: 1 ============================================= Question: 171 What is mutual exclusion? 1, It refers to a program logic in which only one thread should be executing in a critical region at any time. 2, It is a portion of code that access shared variables. 3, It is a situation in which a thread waits for a resource which is currently held by some other thread. 4, It is a measure of how busy the threads are during parallel computations. Ans: 1 ============================================= Question: 172 While creating a file-system Web site, where can the files be stored other than a folder in the local computer's file system? 1, They may be stored in a shared network folder. 2, They may be stored in a shared local folder. 3, They may be stored in a shared folder on the remote web server. 4, They may be stored in a local folder that is not shared. Ans: 1 ============================================= Question: 173 Which of the following files contains the ASP.NET application root settings? 1, machine.config 2, web.config 3, app.config 4, config.sys Ans: 2 ============================================= Question: 174 Which of the following does ASP.NET use to determine which procedures to call when objects raise events? 1, Centralized Event Handlers 2, Event Wire-Ups 3, Non-Default Event Handlers 4, Default Event-Handlers Ans: 2 ============================================= Question: 175 Which of the following is a .NET Framework object that is converted by ASP.NET to an HTML element at run time? 1, HTML Control

2, Web Farm 3, WebPart 4, Web Server Control Ans: 4 =============================================

Das könnte Ihnen auch gefallen