You are on page 1of 57

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

page. m 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? 2m Which of the following data-bound controls displays one or more records from a data source, 3 one record at a time? m Which of the following controls features hierarchical data-binding and may be bound to an XmlDataSource or a SiteMapDataSource? m Which of the following classes provides methods for creating, deleting, and updating user accounts, authenticating users, and managing passwords? m Which of the following data-bound controls displays multiple records, typically in a table and does not provide a predetermined layout for the data. m Which of the following uses a separate resource file for each culture? m The public methods and properties of a master page can be accessed in a content page by assigning a class name to the master page. Which directive can be used to assign a class name to the master page? m

Option 1

1, Web Farm m

1, ControlState data m

1, GridView Control m

1, DropDownList Control m

1, Members Class m

6 7

1, Menu Control m 1, Globalization m

Which of the following is NOT a feature of 9 composite Web server controls? m Repeater, DataList, and GridView Web server controls are examples of which type of controls? 10 m 1, User Controls m Which of the following can be used to configure the way encryption is used to protect forms authentication cookies and view state information 11 in a Web farm? m 1, <trace> m 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 12 currently loaded graphic? m 1, Flush m The AlternateView class can be used to embed an attachment to an E-mail message. Which of the following enables the AlternateView class to 13 embed images in a message? m There are different ways of specifying security permissions in your code. Which of the following uses code attributes to specify the permissions 14 that are required to execute an assembly? m

1, <%@ Master %> m 1, They have a user interface that is composed of several custom Web server controls. m

1, Attachment m

1, Imperative syntax m

Host evidence is the evidence from the application domain or the host in which an assembly executes. Which of the following is 15 NOT a type of host evidence? m 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. 16 Statement B: RC

1, Site m

1, Statement A is TRUE and statement B is FALSE. m

1, An ASP.NET profile consists of a set of ASP.NET profiles can be best described by which named properties that is stored for each 17 of the following options? m user. m

1, An ASP.NET theme consists of a set of ASP.NET themes can be best described by which named properties that is stored for each 18 of the following options? m user. m 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 1, <@ Page Theme = 19 programmatically as each page loads? m Profile.PreferedTheme %> m

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

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

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 1, Statement A is TRUE, Statement B is 21 of the skin file created must be the FALSE. m 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 1, Statement A is TRUE and Statement B is 22 as FALSE. m 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 23 instead of the ASPX markup? m 1, .Exe file m

24

25

26

27

You can select "Allow this precompiled site to be updateable" option, to be able to bring about changes in the aspx files after publishing the site. What type of changes can you make to the aspx files on selecting this option? m Visual Studio 2005 includes Device Emulator 1.0. Which of the following is NOT emulated by this software? m Which of the following Mobile controls is used to group child controls and can modify several child controls in a single operation? m 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 co

1, Changes to the code of the aspx files. m

1, Microsoft Windows CE 5.0 m

1, ObjectList m

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

1, Ienumerator policyEnum = SecurityManager.PolicyHierarchy(); while(policyEnum.MoveNext()) You are working as a System Administrator with { RedSky Inc. You need to set and configure the PolicyLevel currentLevel = Security Policies to be granted to the assemblies (PolicyLevel)policyEnum.Current; being created by the different developers in the Console.WriteLine("Policy Level {0}:", organization. Before you carry out this task, you currentLevel.Label); 28 want to view }m 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 29 assembly. Which of the following should Bryan 1, Assembly class m 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 30 included in kernel32.dll from your application? m 1, Use Delegates. m 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 31 the BufferedGrap 1, Graphics class m

1, <system.web> <properties> <profile> Sam wants to configure his ASP.NET application <anonymousIdentification to enable profiles and define a FavColor property enabled= "true" /> to track each user's favorite color. <add name = "FavColor" type= Sam also wants to configure the property to track "System.String" allowAnonymous= "true"/> both anonymous users and logged-on users. He </profile> 32 has already checked that </propertie 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 33 Font name= Verd

1, a) Create a new folder LabelThm_Theme in \App_Themes folder for the application. b) In the LabelThm_Theme folder add a skin file with the name LabelThm.skin. c) In the LabelThm.skin file, add the following definitions: <asp:Label runat= 1, void Page_Load (object sender, EventArgs e) { switch (Request.QueryString["theme"]) { case "Thm1": Page.Theme = "Theme1"; break; case "Thm2": Page.Theme = "Theme2"; break; } }m

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. 34 In case val

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 35 Textbox control

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

1, <system.web> <properties> <anonymousIdentification Sam wants to configure his ASP.NET application enabled="false"/> to enable profiles. He wants to define a group of <profile > two properties, FirstName and LastName under <add groupName= "Person" the group name Person to track each user's name="FirstName" type="System.String" name. Sam wants to configure this property to allowAnonymous="false" /> 36 track only logged-on use <add groupName = "Person"

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. 37 Which of the following sequence of steps

1, 1. In Visual Studio, on the Tools menu, click Device Emulator Manager. 2. In the Device Emulator Manager, on the Actions menu, click Cradle. 3. In the Device Emulator Manager, rightclick the emulator you want to use and then click Connect. 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,

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 38 project. What

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 39 Setup project. Which o

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

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 40 centrally locate

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 41 172.23.4.227. Which 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 42 shopping cart

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

1, ControlState m

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 43 created a connection string with

1, string dbStr = Configuration.ConnectionStrings ["NewConString"].ConnectionString; System.Data.SqlClient.SqlConnection sqlConn = new System.Data.SqlClient.SqlConnection(dbStr ); sqlConn.Open(); m 1, Samantha should write the following code in Web.config instead of the one already written: <credentials> <allow roles="Samantha"/> <allow roles="Bryan"/> <allow roles="John"/> <deny users="*"/> </credentials> m

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 44 particular users and the re 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"); 45 John is working as a software developer at BlueMoon Inc., He needs to create a Web page that will enable the users to provide reviews for various products. To accomplish this task, he has decided to use a FormView control that uses Reviews.cs file as a bu Which of the following is NOT used to load an assembly dynamically? m ApplicationBase, ApplicationName, and ConfigurationFile are the properties of which class? m To create a Windows service application, you must create a Windows application containing a class that extends the _________ class. m Which of the following classes can be used to access the metadata of assemblies during reflection? m Which of the following classes does NOT implement symmetric encryption? m While creating a file-system Web site, where can the files be stored other than a folder in the local computer's file system? m Which of the following files contains the ASP.NET application root settings? m

1, John should use the AddUser method of the Membership class instead of the CreateUser method. m

46 47

1, <ItemTemplate> m 1, The Load method of the AppDomain class m

48

1, AppDomainSetup class m

49

1, ServiceInstaller class m

50 51

1, Assembly class m 1, DES m 1, They may be stored in a shared network folder. m 1, machine.config m

52 53

54

55

56

57

58

Which of the following does ASP.NET use to determine which procedures to call when objects raise events? m Which of the following is a .NET Framework object that is converted by ASP.NET to an HTML element at run time? m John works as as software developer in GamingApp Pvt. Ltd. He is assigned a taskt to develop an application that generates the sales report on a monthly basis in the form of a pic chart and bar diagrams. Which type of performance library should John use t 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. Whic Consider the following code snippet: for (i=0; i<100; i++) { a= a+ i; } for(i=0; i<100; i++) { b=b+i; } By observing the preceeding code snippet, identify the correct method that would optimize the preceeding code snippet. m Identify the technique that needs to be used to optimize the following code snippet:

1, Centralized Event Handlers m

1, HTML Control m

1,Graphic Library m

1,Math Library m

1, Combining Loops m

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]; 59 } m 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. 60 Which of the below given options is true? m 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 61 specific task, there might be a possibility that 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. 62 Statement B: After

1,Use sentinel values m

1,Statement A is true and Statement B is false m

1,Statement A is true and Statement B is false. m

1,Statement A is true and Statement B is false. m

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 63 Wilkins do to reso 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 64 require more processor time and What are the levels at which Application 65 Optimization is done? m

1,Optimize memory operations m

1,Statement A is true and Statement B is false. m 1,System, Application, micro Architecture m

Which is the key factor that a developer can optimize to suit different specifications and obtain 66 best performance on a given hardware? m 1,System resources m A small code executed independently by the processor that enables a computer to perform 67 several tasks simultaneously is known as: m 1,Library m 1,To make the best use of available Why is Application optimization used? Select the resources and as an alternative to 68 best answer. m upgrading hardware resources. m Which of the following levels of optimization will be used to tune application performance with 69 respect to system level DLLs and APIs? m For optimizing the performance of an inventory management system, Jim gathers the performance data for the application by using the VTune performance Analyzer. From the options given below, identify the next step he needs to perform to successfully compl Jack develops a payroll application. He implements enhancements for the application and tests the optimized version. He notices that results that the optimized version computed are correct. However, the optimized version does not reach the desired level o 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? Sam has developed an application in C# whose performance needs to be analysed using Vtune. Sam wants to use the tuning assistant feature of Vtune to get some advice for optimizing the application. After invoking the tuning the assistant, Sam wishes to vie

1,Application Level m

70

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

71

1,He needs to analyze the application for system calls and implement enhancements. m

72

1,Use unrolling m

73

1,Workload insights m

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 74 system, and spec 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. 75 Suggest a feasi 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 76 B. Enable Sam needs to launch an application interactively on 100 mobile phones using VTune Performance Analyzer. Which of the following would enable Sam to 77 launch the application interactively? m 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 Henry needs to optimize an e-commerce application at the system-level and applicationlevel. Which of the below given options states the optimization goals at these levels? m Consider the statements: Statement A: The speed of the I/O operations is not limited by the speed of memory. Statement B: Floating-point operations consume both space and time. Which of the following is true, with respect to the above statements? m Jack needs to analyze the performance of a mobile phone from a remote location. He plans to use the utility of analyzing remote application performance provided by VTune Performance Analyzer. Identify the first requirement that he needs to fulfill in ord

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

1,He needs to copy the application to his computer and then optimize the source code. m

1,Jack did not install the remote application on the controlling system before starting with remote data collection. m 1, He needs to install the full VTune analyzer product on all the mobile phones and configure each one of them system to act as the controlling system. m

78

79

1,He needs to write code that accesses memory sequentially and built custom routines for accessing operating system services. m 1,At system level, improve application interaction with the system with respect to DLLs and APIs and at application level, improve algorithms. m

80

1,Statement A is true and statement B is false. m

81

1,He needs to install the remote agent on the controlling system from where he would be accessing the remote application. m

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 system1,Invoke Tuning Assistant for Counter82 related perform monitor based advice m

83

84

85

86

Tom Wilkins is working as a software developer at Technology Systems. Tom needs to measure the performance of the processor that he is working on to identify the level of achievable optimization. He needs to measure the program execution time and a standa Jim Lewis is working as a software developer at Technology Systems. Jim observes that the chat application developed by him performs slowly because the processor has to wait for the data to be loaded into the cache. In addition, the capacity of cache is a Pat Greene is working as a software developer. He is assigned a task of developing an application that will be used by a space research organization to launch a satellite. The performance of the application should be the top priority. Pat develops the app Ken Burton is working as a software developer at SuperGraphics Inc. Ken observes that the performance of the phone book application is slow due to the time taken during memory reads and writes. In addition, the capacity of the cache is limited and data ne 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 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 Jim Lewis is working as a software developer at GoodGraphics Inc. The performance of the inventory management application that he has developed is affected due to mismatch in process and memory speed.He wants to optimize his application in such a way so t Larry Williams wants to view the insights that have significant impact on the performance of his application. Which of the following options should Larry view using the tuning assitant? m

1,Calculate execution time as: Execution time for a program = SUM (Execution time for each instruction). Use the CPI standard metric to measure processor performance. m

1,Only A m

1,One sampling run with minimal advice m

1,Only A m

87

1,Module insights and the More Information window m

88

1,Top Insights m

89

1,Temporal locality and paging m

90

1,Workload Insights m

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 1,Check the "One sampling run with be made to the performance of the code using minimal advice" option and view the Module 91 VTune. Pat uses Sampling W insights for a selected process. m

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. 92 To analyze performan 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 93 Wizard of VTune to collect 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 94 communicate with each other. H

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 t

1,View Top Insights. m

1,Software Prefetch m

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 1,Check the Automatically generate tuning 95 generate the tuning adv advice option. m 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 96 applicat 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. 97 Which of the follo 1,Split the for loop into two separate for loops. m

1,Statement A is true and statement B is false. m

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 98 of this application? m 1,Graphic Libraries m 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++) 99 a = a + b [i, j]; m Consider the statements: Statement A: Space complexity is the amount of memory that a program requires to accomplish a task. Statement B: Space complexity is the only criterion to measure the efficiency of a program. Which of the following is true, with r Identify the level of memory hierarchy that speeds up the execution of instructions by providing fast access to intermediate values computed during a calculation. m Identify the processor performance parameter that indicates the amount of time it takes to execute a particular process. m Which of the following indicates the number of processes that complete their execution per unit time? m

1,Using unrolling m

##

1,Statement A is true and statement B is false. m

##

1,Virtual Memory m

##

1,Turnaround Time m

##

1,Throughput m

Which one of the following options enables a processor to load a specific location of memory ## before it is required for processing? m A high value of which of the following processor's utilization measures, indicates low resource ## utilization? m Jim is a software developer, working with SSPT Corporation, develops a process-intensive application. Jim needs to perform micro architecture-level tuning to increase the performance of the application. Jim decides to ## use the Vtune Performance Analyzer to

1,Cache conflict loads m 1,Clocks Cycles Per Instructions Retired (CPI) m

1,Sampling m

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

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 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 Jim is a software developer, working with InfoSuper Corp, develops a gamming application on Java platform. Jim finds that the application is performing slowly. He decides to tune the application by observing the functional flow of the ## application and imp

1,Statement A is true and statement B is false. m

1,Call Graph m

1,Counter Monitor m

Which of the following enables you to identify the threads that are running serially and the threads ## that are running in parallel? m 1,Counter Monitor view m 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. m

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 Analy John Barrett is working as a Software developer. John develops a gaming application on the .NET platform. He finds that the application is performing slowly. He decides to use the Intel Vtune Performance Analyzer to monitor the ## performance of the applica 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 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 th Which of the one following options enables you to tune application performance and its usage of ## system resources? m

1,Sampling Wizard m

1,Context Switching m

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

1, Sampling m

Which feature of tuning assistant suggests steps ## to remove or avoid a problem? m 1, Insight m Which feature of Tuning Assistant indicates the problem that could be hindering the performance ## of the application? m 1, Insight m Which feature of Tuning Assistant mentions about the applications that were running when VTune Performance Analyzer was profiling the ## system? m 1, Insight m

Which of the following is NOT true about remote ## data collection in Intel Vtune? m Which of the following is NOT true about ## threads? m According to which condition for a deadlock to occur, a resource can be released by a thread ## holding it? m

1, To initiate remote data collection, you need to enable the remote agent on the target system. m 1, Threads increases the performance and the ability to use multi-core processors. m

1, Mutual exclusion m

1, A condition where a resource is either ## What is hold and wait condition in a deadlock? m available or assigned to one thread m 1, A condition when two or more threads simultaneously access the same memory location while atleast one thread is updating ## What is a race condition? m that location. m 1, It refers to a program logic in which only one thread should be executing in a critical region at any time. m 1,void Page_Load(object sender, System.EventArgs e) { lblFavColor.Text = Profile.properties("FavColor"); } m

## What is mutual exclusion? m

Sam is a Web Developer at RedSky Inc. He is developing a Web Application in ASP.NET. He has already configured the application to enable ASP.NET profiles and defined the FavColor property to track the user's favorite color. Next, ## he adds a Label control w 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 Sam is developing an ASP.NET application which displays values of controls on the review.aspx page according to the language and culture preferred by the user. He creates a default resource file review.aspx.resx and a ## review.aspx.fr.resx resource file for

1,Store the resource file in App_GlobalResources folder in place of App_LocalResources folder. m

1,Store the resource files in the App_LocalResources folder in place of App_GlobalResources folder. m

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

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

1,The given code should be modified as: DateTime dtmStart = DateTime.Now; if (!System.Diagnostics.EventLog.SourceExis ts("LoadTime_Survey")) { Sam is the administrator of the shopping site of RedSky Inc. In the SurveyReport.aspx page of this site he wants to add the code that will log data in the Microsoft Windows event log. This data will contain the time when the loading of ## SurveyReport.aspx p System.Diagnostics.EventLog.CreateEvent Source("LoadTime_Survey", " RedSky_Shopping "); } System.Diagnostics.E

1,Modify the code for the WelcomeLabel class as: Sam is a Web developer at RedSky Inc. He public class WelcomeLabel:CustomControl needs to create custom server controls for his { application with the name WelcomeLabel. protected override void RenderControl For that he creates a file called WelcomeLabel.cs (HTMLTextWriter writer) and adds the following code to this file. { using System; writer.Write("Welcome"); } } ## using System.W m

How can a content page refer to a master page at ## run time? m 1,By using Master.FindControl method. m Which of the following statements is NOT true ## about user controls? m 1,A user control is saved as a file with .ascx extension. m

Which of the following statements correctly ## describes a custom Web server control? m What happens after adding the attribute trace="true" to the <%@Page%> directive in an ## ASP.NET page? m To cache a page, the user includes the <%@OutputCache%> directive in the page markup as: <%OutputCache Duration ="60" VaryByParam="None"%>. In addtion, the user marks certain sections of the page by surrounding them with an ASP.NET Substitution ## control.

1,A custom Web server control is saved as a file with an extension of .acsx. m

1,ASP.NET tracing information will be sent to a System.Diagnostics listener. m

1,Application Cache m

What would be the extension of the skin file ## created with name MyTheme? m While configuring profile properties in the Web.config file for an application which of the following tags defines name, type, and ## allowAnonymous attributes? m Which of the following objects is NOT a part of an ## ASP.NET theme? m To apply an existing theme to the entire application, which of the following tags needs to be added in the Web.config file under the ## <System.Web> section? m

1,MyTheme.theme m

1,<profile> m 1,StyleSheet m

1,<pages theme="XXX"> m

To enable users to personalize a page, you must set the Page.Theme property. During or before ## which event handler should this be done? m 1,Page_PreRender ( ) m Sam is a developer at RedSky Inc. He is developing a Web application using ASP.NET. He has created two themes in the App_Themes folder with the names Green and Red. Initially Sam has set the Green theme for the ## application by adding <pages theme ="Green"

1,Modify the existing code in the Web.config file as: <pages defaulttheme ="Green" src = ~/Profile.aspx theme ="Red"/> m 1,Modify the code in Web.config file as: <configuration> <system.web> <%@ Page DeafultTheme ="GlobalRed" %> </system.web> </configuration> m

Sam is a developer at RedSky Inc. He is developing a Web application using ASP.NET. In the application, he creates an ASP.NET theme with the name GlobalRed and adds a sample.aspx page to the application. To apply the theme to the page he ## adds <%@ Page Th Sam is a developer at RedISky Inc. He is developing a Web application using ASP.NET. In this application he has created an ASP.NET theme with the name GlobalRed. In this theme he has created a Red.skin file with the following code: ## <asp:Button runat="ser

1,Modify the first line of Red.skin file as: <asp:Button runat="server" BackColor="Black" /> m 1,The given code can be modified as follows to correct the error

<system.web> <profile> Sam is a Web developer at RedSky Inc. He <properties> wants to configure his application to store a <add name = "PrefLocation type profile property "PrefLocation" in each user profile ="System.String" allowAnonymous= "true"/> for all types of users whether they have logged in </properties> or are visiting the site as anonymous users. To </profile> ## configure the pr </system.web> m

1, <configuration> <system.web> <customErrors defaultRedirect="GenericError.htm" mode="RemoteOnly"> <error statusCode="500" redirect="PageNotFound.htm"/> You are creating a site and you want that on a <error statusCode="404" page requested by a client, if the server redirect="PageNotFound.htm"/> generates an error with status codes 500 or 404, </customErrors> a custom error page "PageNotFound.htm" should </system.web> be displayed. In case an error is generated with a </configuration> ## status code differen 1, <configuration> <system.web> <defaultLanguage="C#"/> <compilation numRecompilesBeforeAppRestart="10"> </compilation> </system.web> </configuration> m

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

1, switch (Response.QueryString["Feedback"]) { You are required to provide an option to the case "HomeDelivery": customers of a restaurant for giving feedback Page.Header.Title = "Feedback about its services through its website.The about our Home Delivery Services"; customer can choose to give feedback about the break; "Home Delivery Service" or the "Food Quality" by case "FoodQuality": ## clicking the correspondin Page.Header.Tit 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 1, string sName = ## variable declared in txtName.Value.ToString(); m 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 1, <%@ Page code in a master page and include that page in all MasterPageFile="~/MasterPages/SampleM ## other pages of you aster.master" %> m Which of the following is NOT a type of Web site ## that can be created using Visual Studio 2005? m 1, Local IIS Web sites m When you type code in the Source view, a drop down list is displayed that helps you complete the syntax of the code. Which feature of Visual ## Studio makes this possible? m 1, ComboBox m

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

1, Request.Browser m

Using the CompareValidator control, you can ## compare the user input to which type of value? m 1, Constant value m 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 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? m In the context of ASP.NET, when the server needs to free the memory, it can remove an item from the application's cache. What is this process known as? m Which of the following is a delegate that defines the signature to use for an event handlers that responds when an item is deleted from the cache? m Which of the following can you configure to retrieve data from the following: -- XML files -- Web services that return XML data -- String variables that contain XML data m

##

1, Statement A is TRUE and statement B is FALSE. m

##

1, StateServer m

##

1, Absolute expiration m

##

1, onRemoveCallback m

##

1, XmlDataDocument objects m

Which of the following is NOT an authentication ## mechanism provided by ASP.NET? m Which of the following is a File Status displayed ## by the Copy Web Site tool? m How does the Copy Web tool make sure that all files on the local and remote sites are up to date? ## m Which of the following tags should be inserted into the Web.Config file to handle the mobile ## devices that do not accept relative URLs? m What is the file extension of a Microsoft Windows Installer file that is used to distribute and install ## an application? m A mobile web page must contain at least one ## __________ tag. m

1, Windows authentication m 1, Edited m

1, By synchronizing the sites m

1, <httpRuntime> tag m

1, .exe m 1, <mobile:Form> tag m

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 1,She should create assemblies in her followed by the users have become complicated. application providing the same features as ## Therefore, Joanne has upgrade the previously created components. m Ben had developed an application which used a COM component to provide certain functionality. He has now upgraded the application using .Net Framework. In his upgraded application, he has created a .Net Framework component with which the previously availa Bryan has created an application that processes credit card information supplied to it by the users, encrypts it using the DES encryption class and stores it in a database. However, he has been receiving complaints from the users that their credit card i 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 Jonathan has created a Web application which requires the users to register prior to browsing and availing the services offered by it. The application needs to store and update various tables in its database with user details. The user is also sent a welc To use GDI+ objects, an object of the ________ class must be created. m The _______ class provides the primary access point for code to interact with the security system. m Asymmetric encryption is also known as _____________. m The ________ allows the .NET Framework to communicate with the COM component by providing a middle layer between your .NET Framework code and the COM component. m The primary class used to manage threads directly is the ______ class. m

##

1,Ben implemented the default class interface for the .Net Framework component. m

##

1,Bryan should call the Clear method of the cryptographic class. m

##

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

## ##

1,Jonathan should make individual calls to these methods from within the class that executes the registration process. m 1,SystemColors m

## ##

1,SecurityManagement m 1,Private key encryption m

## ##

1,Interop assembly m 1,ThreadStart class m

Option 2

Option 3

2, Content m

3, Web Form m

2, Session.Start m

3, Application.Start m

2, TreeView Control m

3, DetailsView Control m

2, Menu Control m

3, DataList Control m

2, Membership Class m

3, Member Class m

2, DataList Control m 2, Implicit Localization m

3, GridView Control m 3, Explicit Localization m

2, <%@ Page %> m 2, They derive from the System.Web.UI.WebControls.CompositeC ontrols class. m

3, <%@ MasterType %> m 3, They create the child controls by overriding the CreateChildControls method. m

2, Custom Web server controls m

3, Templated controls m

2, <machineKey> m

3, <customErrors> m

2, Dispose m

3, Clear m

2, BaseUri m

3, ContentLink m

2, caspol.exe m

3, Declarative syntax m

2, Zone m

3, Subscriber m

2, Statement B is TRUE and statement A is FALSE. m 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. m 2, An ASP.NET theme is a collection of property settings that enable a developer to define the look of pages and controls and then apply the look consistently across pages. m 2, <configuration> <system.web> <pages theme = Profile.PreferedTheme /> </system.web> </configuration> m 2, <configuration> <system.web> <pages theme = " BlueSky" /> </system.web> </configuration> m

3, Both statements, A and B, are TRUE. m 3, An ASP.NET profile provides a tracing system that can be used to generate the diagnostic information which can be written to logs, text file, or the screen. m 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. m 3, void Page_PreInit (object sender, EventArgs e) { Page.Theme = Profile.PreferredTheme ; }m 3, void Page_PreInit(object sender, EventArgs e) { Page.Theme = " BlueSky" ; }m

2, Statement A is FALSE, Statement B is TRUE. m

3, Both statements, A and B, are TRUE. m

2, Statement A is FALSE and statement B 3, Both statements, A and B, are is TRUE. m TRUE. m

2, DLL assemblies m

3, HTML code m

2, Changes to the layout of the aspx files. m

3, Changes to the location of the aspx files. m

2, Microsoft Pocket PC 2003 m

3, Symbian OS S60 m

2, Form m

3, Panel m

3, Icon PaintIcon = 2, SystemIcons PaintIcon = IconConverter.ExtractAssociatedIco SystemIcons.ExtractAssociatedIcon("C:\WI n("C:\WINDOWS\system32\mspaint. NDOWS\system32\mspaint.exe"); m exe"); m 3, Ienumerator policyEnum = Assembly.PolicyHierarchy(); while(policyEnum.MoveNext()) { PolicyStatement currentStatement = (PolicyStatement)policyEnum.Curre nt; Console.WriteLine("Policy Level {0}:", currentStatement.Label); }m

2, Ienumerator policyEnum = SecurityManager.PolicyHierarchy(); while(policyEnum.MoveNext()) { PolicyStatement currentStatement = (PolicyStatement)policyEnum.Current; Console.WriteLine("Policy Level {0}:", currentStatement.Label); }m

2, AssemblyInfo file m

3, Reflection m

2, Use Platform Invoke. m

3, Copy the file in the application folder and reference it in the application. m

2, BufferredGraphicsManager class m

3,SystemColors class m

2, <system.web> <profile> <properties> <anonymousIdentification enabled= "true" /> <add name = "FavColor" type= "System.String" allowAnonymous= "true"/> </properties> </profile> </system.web> m

3, <system.web> <anonymousIdentification enabled= "true" /> <profile> <properties> <add name = "FavColor" type= "System.String" allowAnonymous= "true"/> </properties> </profile> </system.web> m

3, a) Create a new folder LabelThm_Theme in \App_Themes 2, a) Create a new folder LabelThm in folder for the application. \App_Themes folder for the application. b) In the LabelThm_Theme folder, b) In the LabelThm folder, add a skin file add a skin file with the name with the name LabelThm.skin. LabelThm.aspx.skin. c) In the LableThm.skin file, add the c) In the LableThm.aspx.skin file, following definitions: add the following definitions: <asp:Label runat= "serve <asp:Label 3, void Page_Load (object sender, EventArgs e) { switch 2, void Page_PreInit(object sender, (Request.QueryString["theme"]) EventArgs e) { { case "Thm1": switch (Request.QueryString["theme"]) Page.Theme("Theme1"); { break; case "Thm1": Page.Theme("Theme1"); case "Thm2": break; Page.Theme("Theme2"); case "Thm2": break; Page.Theme ("Theme2") } }m 3, void SetFavColor_OnClick(object sender, System.EventArgs e) { FavColor.Profile =Server.HTMLEncode(textFavColor. Text); }m 3, <system.web> <anonymousIdentification enabled="false"/> <profile > <properties> <group name="Person"> <add name="FirstName" type="System.String" allowAnonymous="false" /> <add name="LastName" type

2, void SetFavColor_OnClick(object sender, System.EventArgs e) { Profile.FavColor =Server.HTMLEncode(textFavColor.Text); }m 2, <system.web> <properties> <anonymousIdentification enabled="false"/> <profile > <group name="Person"> <add name="FirstName" type="System.String" allowAnonymous="false" />

2, 1. In Visual Studio, on the File menu, click Device Emulator Manager. 2. In the Device Emulator Manager, rightclick the emulator you want to use and then click Connect. 3. In the Device Emulator Manager, on the Actions menu, click Cradle. 4. The Activ 2, 1. Using Visual Studio 2005, open the solution containing the Web site to be deployed. 2. On the File menu, point to Add and then click New Project. The Add New Project dialog box appears. 3. Expand the Other Project Types node in the Project types tre 2, 1. In Solution Explorer, right-click the new Web Setup project that has been added to the solution. 2. Point to Add on the shortcut menu and then click Project Output. The Add Project Output Group dialog box appears. 3. Click Content Files. 4. Ensure t 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 treeview and then click Add Dialog on the shortcu

3, 1. In Visual Studio, on the Tools menu, click Device Emulator Manager. 2. In the Device Emulator Manager, right-click the emulator you want to use and then click Connect. 3. In the Device Emulator Manager, on the Actions menu, click Cradle. 4. The Acti 3, 1. Using Visual Studio 2005, open the solution containing the Web site to be deployed. 2. On the Tools menu, point to Add and then click New Project. The Add New Project dialog box appears. 3. Expand the Other Project Types node in the Project types tr 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 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 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 m

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

2, ViewState m

3, Session object m

2, string dbStr = ConfigurationManager.ConnectionStrings ["NewConString"].ConnectionString; System.Data.SqlClient.SqlConnection sqlConn = new System.Data.SqlClient.SqlConnection(dbSt r); sqlConn.Open(); m 2, Samantha should write the following code in Web.config instead of the one already written: <authorization> <allow roles="Samantha"/> <allow roles="Bryan"/> <allow roles="John"/> <deny users="*"/> </authorization> m

3, string dbStr = ConfigurationSettings.ConnectionStr ings ["NewConString"].ConnectionString; System.Data.SqlClient.SqlConnectio n sqlConn = new System.Data.SqlClient.SqlConnectio n(dbStr); sqlConn.Open(); m 3, Samantha should write the following code in App.config instead of the one already written in Web.config: <credentials> <allow roles="Samantha"/> <allow roles="Bryan"/> <allow roles="John"/> <deny users="*"/> </credentials> m

2, John should instantiate NewLogin as an 3, John should use AddUser method object of MembershipUser class. m of the MembershipUser class. m

2, <EmptyDataTemplate> m 3, <InsertItemTemplate> m 2, The Load method of the Assembly class 3, The LoadFrom method of the m Assembly class m

2, ApplicationDomain class m

3, AppDomain class m

2, ServiceController class m

3, ServiceBase class m

2, FieldInfo class m 2, RC2 m 2, They may be stored in a shared local folder. m 2, web.config m

3, PropertyInfo class m 3, DSA m 3, They may be stored in a shared folder on the remote web server. m 3, app.config m

2, Event Wire-Ups m

3, Non-Default Event Handlers m

2, Web Farm m

3, WebPart m

2,Math Library m

3,Image Processing Library m

2,Image Processing Library m

3,Graphic Library m

2,Remove unwanted parts of Loops m

3,Reduce work inside loops m

2,Interchange loops m

3,Use pointers m

2,Statement A is false and Statement B is true. m

3,Both, statements A and B, are true. m

2,Statement A is false and Statement B is true. m

3,Both, statements A and B, are true. m

2,Statement A is false and Statement B is true. m

3,Both, statements A and B, are true. m

2,Increase the number of MFLOPS of the processor m

3,Optimize floating-point operations m

2,Statement A is false and Statement B is true. m 2,Only System and Application m

3,Both, statements A and B, are true. m 3,System, Software, Peripherals m

2,Source code m

3,Hardware resources m

2,Performance library m 2,As an alternative to upgrading hardware resources. m

3,Module m 3,To debug the application and as an alternative to upgrading hardware resources. m

2,Computer Architecture Level m

3,System Level m

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

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

2,He needs to identify alternatives and 3,He needs to optimize memory optimize issues that necessitate application operations, floating point operations, enhancement. m and system calls. m

2,Use sentinel value m

3,Reduce work inside loops m

2,System Info m

3,Hotspot insights m

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

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

2,He needs to analyze the system level performance of the server. m

3,He needs to analyze the performance of the remote application on the remote system using VTune Performance Analyzer. m

3,Jack did not check if the configuration of the target system was same as that of the controlling 2,Jack did not specify the address of the system before starting with remote controlling system on the target system. m data collection. m 3, He needs to install the full VTune 2, He needs to install the full VTune remote analyzer product on at least half of agent on all the mobile phones and the mobile phones and configure configure controlling system by installing these systems to act as the Vtune analyzer on it. m controlling systems. m

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 m structures. m 3,At system level, tune the 2,At system level, improve algorithms and processor according to the at application level, improve application application and at application level, interaction with the system. m improve algorithms. m

2,Statement A is false and statement B is true. m

3,Both, statements A and B, are true. m

2,He needs to install the remote agent on the controlling computer on which the remote application was created. m

3,He needs to install the remote agent on the mobile phone on which the remote application is located. m

2,Invoke Tuning Assistant for call graph results m 2,Calulate execution time as: Execution time for a program = Number of instructions * (Clock cycles per instruction) * (Number of seconds per clock cycle). Use the Instructions Retired standard metric to measure processor performance. m

3,Invoke Tuning Assistant for timebased sampling results m

3,Calculate execution time as: Execution time for a program = SUM (Execution time for each instruction). Use the Instruction Retired standard metric to measure processor performance. m

2,Only B m

3,Both A and B m

3,Many sampling runs with more 2, A few sampling runs with some advice m advice m

2,Only B m

3,Both A and B m

2,Hotspots insights and System Info m

3,Top Insights and Relevance scale m

2,Workload Insights m

3,Module Insights m

2,Cache Efficiency m

3, Software Prefetch m

2,Static Analysis m

3,Top Analysis m

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

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

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

2,View Hotspots Insights. m

3,View Module Insights. m

2,Data Alignment m

3,Cache Compulsory Loads m

2, Check the Automatically generate tuning advice option, use Tuning Assistant to compare multiple sampling activity results. 3,Uncheck the Automatically m generate tuning advice option. m

2,Use Sentinel Values. m

3,Reduce work inside loops m

2,Statement A is false and statement B is true. m

3,Both, statements A and B, are true. m

2,Image Processing Libraries m

3,Math Libraries m

2,Using sentinel values m

3,Using faster functions m

2,Statement A is false and statement B is true. m

3,Both, statements A and B, are true. m

2,Main Memory m

3,Level1 Cache m

2,Instruction Execution Time m

3,Program Execution Time m

2,Turnaround time m

3,Instruction execution time m

2,Cache capacity loads m 2,Percentage of floating-point instructions m

3,Data alignment m

3,CPU bursts m

2,Call Graph m

3,Counter Monitor m

2,Counter Monitor m

3,Sampling m

2,Statement A is false and statement B is true. m

3,Both, statements A and B, are true. m

2,Time-based Sampling m

3,Event-based Sampling m

2,Time-based Sampling m

3,Event-based Sampling m

2,Sampling Over Time view m 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 s

3,Call Graph view m 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. m

2,Quick Performance Analysis Wizard m

3,Complete Setup Wizard m

2,Function calling Sequence m

3,Thread interaction m 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. m

2,Pat needs to configure the Counter Monitor collector using different types of Wizards. Pat needs to identify the critical path of the application. m

2, Call Graph m

3, Counter Monitor m

2, Relevance Scale m

3, Advice m

2, Relevance Scale m

3, Advice m

2, Relevance Scale m

3, Advice m 3, To initiate remote data collection, you need to enable the controlling 2, To initiate remote data collection, you system from which the remote need to disable DCOM components on the performance data needs to be target system. m collected. m 3, Threads enables you to effectively 2, Threads do not facilitate data sharing. m utilize the hardware resources. m

2, No preemption m 2, A condition where threads already holding resources may request for new resources m 2, A condition that occurs when a programmer assumes a particular order of execution and guarantees that order through synchronization. m

3, Hold and wait m

3, A condition where a thread holding a resource can only release it m 3, A condition that occurs when a thread does not progress on assigned computations, but the thread is not blocked or waiting. m 3, It is a situation in which a thread waits for a resource which is 2, It is a portion of code that access shared currently held by some other thread. variables. m m 3,void Page_Load(object sender, 2,void Page_Load(object sender, System.EventArgs e) System.EventArgs e) { { lblFavColor.Text = lblFavColor.Text = Profile.FavColor; Profile.properties.FavColor; } } m m

2,Enable automatic culture determination for the page by adding uiculture="auto" to the <% Page%> directive. m

3,Enable automatic culture determination for the page by adding uiculture="true" to the <%Page%> directive. m

2,Enable automatic culture determination for the page by adding uiculture="true" to the <%Page%> directive. m

3,Rename the file "review.aspx.fr.resx" as "review.aspx.en.fr.resx" m

3,Response.Cache.VaryByParams[" country"] = true; 2,Response.Cache.VaryByParams[*] = Response.Cache.VaryByParams["cit true; m y"] = true; m 3,The given code should be modified as: 2,The given code should be modified as: DateTime dtmStart = DateTime dtmStart = DateTime.Now; DateTime.Now; if if (!System.Diagnostics.EventLog.SourceExi (!System.Diagnostics.EventLog.Sou sts("LoadTime_Survey")) rceExists("LoadTime_Survey")) { { System.Diagnostics.EventLog.CreateEvent Source("LoadTime_Survey", " RedSky_Shopping "); } System.Diagnostics.E System.Diagnostics.EventLog.Creat eEventSource("LoadTime_Survey", " RedSky_Shopping "); } System.Diagnostics.E 3,Modify the code for the WelcomeLabel class as: 2,Modify the code for the WelcomeLabel public class class as: WelcomeLabel:WebControl public class { WelcomeLabel:CompositeControl protected override void { RenderControl (HTMLTextWriter protected override void RenderContents writer) (HTMLTextWriter writer) { { writer.Write("Welcome"); writer.Write("Welcome"); } } } }m m 3,By setting the value of masterPageFile attribute in the <%@ Page%> directive as 2,By setting the Page.MasterPageFile <%@Page masterPageFile property. m ="xxx"%>. m 2,A user control must contain at least one <form> tag. m 2,Custom Web server controls are written entirely by managed code and have no markup file. m 3,A user control contains a <%@Control%> directive. m 3,Custom Web server controls have a user interface that is composed of several existing Web Server controls. m

2,ASP.NET tracing information will be sent 3,ASP.NET will generate and to a Tracing Listener object which receives display diagnostic information at the the tracing output and writes it to logs. m bottom of the rendered page. m

2,Page Output Cache for caching a complete, single page m

3,Page Output Cache with Partial Page Caching m

2,MyTheme.aspx.theme m

3,MyTheme.skin m

2,<properties> m 2,Skin Files m

3,<add> m 3,Supporting images m

2,<profile theme="XXX"> m

3,<properties theme="XXX"> m

2,Page_Load ( ) m 2,Modify the existing code in the Web.config file as: <pages defaultTheme ="Green"> <page src= ~/Profile.aspx theme = "Red"/> </pages> m 2,Modify the code in Web.config file as: <configuration> <system.web> <pages DeafultTheme ="GlobalRed" /> </system.web> </configuration> m

3,Page_PreInit ( ) m

3,Remove the <page src= ~/Profile.aspx theme = "Red"/> tag from the Web.config file and add <%@ Page theme = "Red" %> directive in the Profile.aspx page m 3,Modify the code in Web.config file as: <configuration> <system.web> <pages theme ="GlobalRed"/ > </system.web> </configuration> m

2,Modify the second line of Sample.aspx as: <asp:Button ID="BkButton" runat="server" Text="Cancel" BackColor="Black" /> m 2,The given code can be modified as follows to correct the error <system.web> <anonymousIdentification enabled="true"/> <profile> <properties> <add name = "PrefLocation type ="System.String" allowAnonymous= "true"/> </pro

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

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

3, <configuration> <system.web> <customErrors> <statusCode="500" redirect="PageNotFound.htm"/> <statusCode="404" redirect="PageNotFound.htm"/> </customErrors> </system.web> </configuration> m 3, <configuration> <system.web> <compilation defaultLanguage="C#"> numRecompilesBeforeAppRestart=" 10" </compilation> </system.web> </configuration> m 3, switch (Request.QueryString["Feedback"]) { case "HomeDelivery": Page.Header.Title = "Feedback about our Home Delivery Services"; break; case "FoodQuality": Page.Header.Titl 3, TextBox txtName = (TextBox)Page.PreviousPage.FindC ontrol("txtName"); string sName = txtName.Value.ToString(); m

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

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

2, <%@ Page 3, <%@ Page MasterPage="~/MasterPages/SampleMast Master="~/MasterPages/SampleMas er.master" %> m ter.master" %> m

2, Remote IIS Web sites m

3, FTP sites m

2, IntelSense m

3, Intellisense m

2, Response.Browser m

3, Request.Browser.Browser m

2, Variable value m

3, Memory address m

2, Statement A is FALSE and statement B 3, Both statements, A and B, are is TRUE. m TRUE. m

2, ViewState m

3, HttpSessionState m

2, Sliding expiration m

3, Flush m

2, CacheItemRemovedCallback m

3, CacheItemRemovedReason m

2, XmlDataSource control m

3, SqlDataSource control m

2, Logon authentication m 2, Modified m

3, Forms authentication m 3, Changed m 3, By copying the new files in place of old files m

2, By publishing the sites m

2, <DeviceSpecific> tag m

3, <Filter> tag m

2, .msc m 2, <mobile> tag m

3, .msi m 3, <MobileForm> tag m

2,She should create an assembly that will handle converting the .Net Framework types to the corresponding types of the COM components being used by the application. m

3,She should place the COM components in the same directory as the Assembly for the upgraded application and reference the components in the assembly. m

3,Ben created the constant fields 2,Ben did not create a public constructor and static methods of the .Net with no parameters for the .Net Framework Framework component as Public component. m members. m

2,Bryan should wait for the garbage collector to finish its execution before storing the values. m

3,Bryan should Flush the memory by calling the Flush method of the cryptographic class. m

3,The Monitor class should be used 2,The ThreadPool class should be used to to monitor and increase the implement threading. m application performance. m

2,Jonathan should use singlecasting. m 2,Pen m

3,Jonathan should use Multithreading. m 3,Graphics m

2,SecurityManager m 2,Public key encryption m

3,PolicyLevel m 3,Public/Private key encryption m

2,Shared assembly m 2,Thread Class m

3,Multifile assembly m 3,ParameterizedThreadStart class m

Option 4

Solution

4, Nested Master m

4, StateServer Mode m

4, DataList Control m

4, GridView Control m

4, FormsAuthentication Class m

4, DetailsView Control m 4, Localization m

2 2

4, <%@ Control %> m 1 4, They are compiled into an assembly in the Bin folder before you deploy the application. m 1

4, Navigation controls m

4, <script> m

4, Kill m

4, LinkedResources m

4, TlbImp.exe m

4, Hash m

4, Both statements, A and B, are FALSE. m 4

4, An ASP.NET profile enables a developer to store objects and data in the server's memory for reuse. m 1

4, An ASP.NET theme enables a developer to store object and data in the server's memory for reuse. m 4, void Page_Load (object sender, EventArgs e) { Page.Theme = Profile.PreferredTheme ; }m 4, void Page_Laod (object sender, EventArgs e) { Page.Theme = " BlueSky" ; }m

4, Both statements, A and B, are FALSE. m 1

4, Both statements, A and B, are FALSE. m 2

4, Plain text m

4, Changes to the extension of the aspx files. m

4, Microsoft Smartphone 2003 m

4, List m

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

4, Ienumerator policyEnum = SecurityManager.PolicyHierarchy(); while(policyEnum.MoveNext()) { Policy currentLevel = (Policy)policyEnum.Current; Console.WriteLine("Policy Level {0}:", currentLevel.Label); }m

4, PropertyInfo class m

4, Include the complete path of the file in the application's code. m

4, BufferredGraphics class m

4, system.web> <anonymousIdentification enabled= "true" /> <properties> <profile> <add name = "FavColor" type= "System.String" allowAnonymous= "true"/> </profile> </properties> </system.web> m

4, a) Create a new folder LabelThm in \App_Themes folder for the application. b) In the LabelThm folder, add a skin file with the name LabelThm.aspx.skin. c) In the LableThm.aspx.skin file, add the following definitions: <asp:Label runat= "server 2

4, void Page_PreInit(object sender, EventArgs e) { switch (Request.QueryString["theme"]) { case "Thm1": Page.Theme = "Theme1"; break; case "Thm2": Page.Theme = "Theme2"; 4 4, void SetFavColor_Click(object sender, System.EventArgs e) { FavColor.Profile=Server.HTMLEncode(te xtFavColor.Text); }m 1

4, <system.web> <anonymousIdentification enabled="false"/> <profile > <properties> <add groupName = "Person" name="FirstName" type="System.String" allowAnonymous="false" /> <add groupName= 3

4, 1. In Visual Studio, on the File menu, click Device Emulator Manager 2. In the Device Emulator Manager, rightclick the emulator you want to use and then click Connect. 3. The ActiveSync Connection Wizard starts and guides you through making a connecti 3 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,

4, 1. In Solution Explorer, right-click the new Web Setup project that has been added to the solution. 2. Point to Add on the shortcut menu and then click Project Output. The Add Project Output Group dialog box appears. 3. Ensure that Content Files is not 2 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 treeview and then click Add Dialog on the shor 3

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

4, Application object m

4, string dbStr = ConfigurationSection.ConnectionStrings ["NewConString"].ConnectionString; System.Data.SqlClient.SqlConnection sqlConn = new System.Data.SqlClient.SqlConnection(db Str); sqlConn.Open(); m 2 4, Samantha should write the following code in Web.config instead of the one already written: <authorization> <allow users="Samantha"/> <allow users="Bryan"/> <allow users="John"/> <deny users="*"/> </authorization> m

4, John should use the CreateUser method with the MembershipUser class instead of the Membership class. m

4, <InsertParameters> m 4, The LoadTo method of the Assembly class m

2 4

4, Assembly class m

4, ServiceProcessInstaller class m

4, MethodInfo class m 4, Rijndael m 4, They may be stored in a local folder that is not shared. m 4, config.sys m

1 3

1 2

4, Default Event-Handlers m

4, Web Server Control m

4,Engineering and Scienc Library m

4,Enguneering and Science Library m

4,Use setinel value m

4,Combine loops m

4,Both, statements A and B, are false. m

4,Both, statements A and B, are false. m

4,Both, statements A and B, are false. m

4,Optimize system calls m

4,Both, statements A and B, are false. m 4,Only System Configuration and Hardware m

3 1

4,Processor performance m

4,Thread m 4,To obtain error free results and as an alternative to upgrading hardware resources. m

4,Application Level and Computer Architecture Level m

4,He needs to generate the possible enhancements. m

4,He needs to reiterate through the entire optimization process step-by-step and stop the optimization process when the desired level of optimization is achieved. m 4

4,Combine loops m

4,Module insights m

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

4,He needs to launch the application in interactive mode on his local computer . m

4,Jack did not install the DCOM component DbgExeCtrl on the target system before starting with remote data collection. m 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. m

4,He needs to identify the floating-point operations and build custom routines so that the process need not wait for data. m 1 4,At system level, improve algorithms and at application level, improve application interaction with the processor. m 1

4,Both, statements A and B, are false. m

4,He needs to install the remote application on the controlling system from where he would be analyzing remote performance. m 3

4,Invoke Tuning Assistant for eventbased sampling results m 1 4,Calculate execution time as: Execution time for a program = Number of instructions * (Clock cycles per instruction) * (Number of seconds per clock cycle). Use the Percentage of Floating-Point Instructions standard metric to measure processor performance 3

4,Both B and C m

4,One sampling run with minimal advice or A few sampling runs with some advice m 3

4,Both B and C m

4,Top insights and the More Information window m

4,System Info m

4,Data Alignment m

4,System Info m

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

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

4,View Relevance Scale. m

4,Cache Conflict Loads m

4,Invoke Tuning Assistant by using the F8 key. m 2

4,Use Unrolling. m

4,Both, statements A and B, are false. m

4,Audio/Video Libraries m

4,Changing the order of loops m

4,Both, statements A and B, are false. m

4,Registers m

4,Response Time m

4,Program execution time m

4,Software Prefetch m

4,Waiting time m

4,Tuning Assistant m

4,Both Call Graph and Sampling m

4,Both, statements A and B, are false. m

4,Counter Monitor m

4,Call Graph m

4,Hotspots view m

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

4,Advance Activity Configuration m

4,Processor utilization m

4,Pat needs to use the Sampling to create an Activity that contains the Call Graph collector data about the application. m 1

4, Tuning Assistant m

4, Workload m

4, Workload m

4, Workload m

4, To initiate remote data collection, you need to specify the target system on which the remote application is running. m 2 4, Improper use of threads leads to degraded performance. m

4, Circular wait m 2 4, A condition where two or more threads form a circular chain where each thread waits for a resource that the next thread in chain holds m 2 4, A condition that occurs when a thread does not progress on assigned computations because it is blocked or waiting. m 1

4, It is a measure of how busy the threads are during parallel computations. m 1 4,void Page_Load(object sender, System.EventArgs e) { lblFavColor.Text = Properties.profile.FavColor; } m

4,Rename the file "review.aspx.fr.resx" as "review.aspx.en.fr.resx". m 2

4,Enable automatic culture determination for the page by adding uiculture="enable" to the <%Page%> directive. m 1

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

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

4,Modify the code for the WelcomeLabel class as: public class WelcomeLabel:WebControl { protected override void RenderContents (HTMLTextWriter writer) { writer.Write("Welcome"); } } m 4 4,By setting the value of virtualPath attribute in the<%@ MasterType %> directive as <%@ MasterType virtualPath ="xxx"%>. m 2 4,User control inherits methods and properties from the System.Web.UI.UserControl class. m 2 4,Custom Web server control is a special kind of Composite Control that gives the developer more power over the presentation of data on the page. m 2

4,ASP.NET will generate the diagnostic information and write it to logs. m

4,Page Output Cache with support for caching multiple page versions m

4,MyTheme.aspx.skin m

4,<configuration> m 4,XML file m

3 4

4,<configuration theme="XXX"> m

4,Page_Render ( ) m

4,Remove the <page src= ~/Profile.aspx theme = "Red"/> tag from the Web.config file and add <Page theme = "Red" > tag in the Profile.aspx page m 3 4,Modify the code in Web.config file as: <configuration> <system.web> <% Page DeafultTheme ="GlobalRed" %> </system.web> </configuration> m

4,Modify the second line of Sample.aspx as: <asp:Button ID="btnCancel" runat="server" Text="Cancel" SkinID="BkButton" /> m 4,The given code can be modified as follows to correct the error <system.web> <allowAnonymous enable = "true"> <profile> <properties> <add name = "PrefLocation type ="System.String" allowAnonymous enable = "true"/> </prop

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

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

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

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

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

4, Dynamic Web sites m

4, ListView m

4, Request.Browser.Type m

4, URL m

4, Both statements, A and B, are FALSE. m 2

4, HttpApplicationState m

4, Scavenging m

4, RemovedCallback m

4, FormView control m

4, Passport authentication m 4, Converted m

2 3

4, By deploying the sites m

4, <deviceFilters> tag m

4, .jar m 4, <IsMobileDevice> tag m

3 1

4,She should create a Shared assembly for her application to communicate with the COM components. m

4,Ben created a public constructor with no parameters for the .Net Framework component. m 2

4,Bryan should Kill the object values by calling the Kill method of the cryptographic class. m

4,The ParameterizedThreadStart class should be used to control the behavior of the threads. m 2

4,Jonathan should use multicasting. m 4,Image m

4 3

4,CodeGroup m 4,Protected key encryption m

2 2

4,Private assembly m 4,ThreadPool class m

1 2