Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 6

1. Which of the following controls is NOT a type of navigation control?

Menu SiteMapPath AdRotator TreeView

2 Mary wants to create a centralized event handler for the Click event of two button controls. What should be the procedure definition of the centralized event handler for the two button controls? protected void btnEventHandler (object sender, EventArgs e) {} protected void btnEventHandler (object sender, CommandEventArgs e) {} protected void btnEventHandler (EventArgs e, object sender) {} protected void btnEventHandler (CommandEventArgs e, object sender) {}

3(4)

Which of the following login methods is NOT provided by Microsoft Windows

authentication? Basic authentication Digest authentication Windows Integrated authentication Passport authentication

4(5) Which of following is not step in the basic process for displaying data from relational databases on a Web page? Add a data source control to the Web page, and then configure it to connect to the required database. Specify the SELECT statement in the SelectCommand property of the data source control, to retrieve the data. Specify the name of the method used to retrieve data from the relational databases in the SelectCommand property. Bind data controls or data-aware controls to the data source control

5(7)

Which of the following options is NOT a valid status type for the files deployed from

source to destination using Copy Web Site Utility? Unchanged Changed New Removed

6(10). What is the extension of the resource file that is added in the App_LocalResources
folder? .aspx .ascx .resx .skin

7(11)

Anna has created a User control, ProductSelector.ascx, which she needs to use in a

Web page. Which of the following directives should Anna add to the Web page to use the User control on that page? <%@ Control Language="C#" AutoEventWireup="true" CodeFile="ProductSelector.ascx.cs" Inherits="ProductSelector" %>

<%@ Register Src="ProductSelector.ascx" TagName="ProductSelector" TagPrefix="uc1" %> <%@ Register TagName="ProductSelector" TagPrefix="uc1" %> <%@ Control Language="C#" AutoEventWireup="true"

CodeFile="ProductSelector.ascx.cs"%>

8(13)

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

Supporting images Stylesheets Media files Skins

9(14)

Consider the following statements in context of ASP.NET themes:

Statement A: To create a new theme, you have to add a subfolder to the App_Themes folder. Statement B: To implement a theme for the entire web application, you need to use the <%@pages %> directive in the web.config file.

Which of the preceding statements are TRUE? Statement A is TRUE and statement B is FALSE. Statement B is TRUE and statement A is FALSE. Both statements, A and B, are TRUE. Both statements, A and B, are FALSE.

10(15) John is working as a software developer for an online shopping site. He is required to
modify the functionality of a page in the website so that the users can personalize the page according to their preference. This needs to be implemented in such a way so that the users can change the appearance of the text box and button controls present on the page. What steps should John perform to accomplish this task? 1. In the Solution Explorer window, add a Theme Folder under the App_Themes folder.

2. Name the new subfolder as myTheme. 3. Add a new file to the myTheme folder with an extension of .skin. 4. Add appropriate markup in the .skin file for a button and a text box control. 1. 2. 3. 4. 1. 2. 3. 4. 1. 2. 3. 4. In the Solution Explorer window, add an ASP.NET folder, App_LocalResources. Name the new subfolder as myTheme. Add a new file to the myTheme folder with an extension of .resx. Add appropriate markup in the .resx file for a button and a text box control. In the Solution Explorer window, add a Theme Folder under the App_Themes folder. Name the new subfolder as myTheme. Add a new file to the myTheme folder with an extension of .txt. Add appropriate markup in the .txt file for a button and a text box control. In the Solution Explorer window, add an ASP.NET folder, App_LocalResources. Name the new subfolder as myTheme. Add a new file to the myTheme folder with an extension of .txt. Add appropriate markup in the .txt file for a button and a text box control.

11(17) Which of the following methods of the Graphics class cleans the entire drawing
surface and fills it with a specified background color? Dispose FillRectangle Clear Flush

12(18) Which of the following entities involved in the code access security architecture is an
object that represents both the identity and roles of a user? Evidence Policies Principals Assembly

13(19) You are creating an application that displays a number of animations and graphics to
the users. You have chosen the color scheme of the entire application as Blue. Now in the application, you need to apply this color in various graphical objects, such as rectangles and ellipses. Which of the following classes will you select to fill the objects with blue color? SolidBrush TextureBrush Region class Pen class

14(20). Jim 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 to communicate with the previously created COM component to reuse its functionality. The new component was running properly till the time a new version for the same was created. Jim has deduced that now the COM component is not able to call the .NET Framework component after its newer version was created. What can be the reason? Jim must have created the data members of the .NET Framework component as public members and therefore not accessible to COM component. Jim must have allowed .NET Framework to implement a default interface for the component which got changed due to the version change. Jim must have created the data members of the .NET Framework component as private members and therefore not accessible to COM component. A component once created to communicate with a COM component cannot be updated.

15(21) Which of the following Builder classes provides a set of routines that are used to
define classes, add methods and fields, and create the class inside the runtime? ModuleBuilder class PropertyBuilder class TypeBuilder class EventBuilder class

16(22) What is unrolling?


The process of breaking compact loops into simpler statements The process of compacting simpler statements The process of combining multiple loops The process of using sentinel values

17(24) Refer to the following algorithm that computes the sum of two matrices:
Step 1: start Step 2: for i = 1 to m repeat steps 3 to 5 Step 3: i = i + 1 Step 4: for j = 1 to n repeat 4 to 6 Step 5: j = j + 1 Step 6: c [i, j] = a [i, j] + b [i, j] Step 7: stop Calculate the time complexity associated with the preceding algorithm.

2mn+m+1 2mn+n+1 2mn+m 2mn

You might also like