Sei sulla pagina 1di 41

Dr.G.R.

Damodaran College of Science


(Autonomous, affiliated to the Bharathiar University, recognized by the UGC)Re-accredited at the 'A' Grade Level by the NAAC and ISO
9001:2008 Certified
CRISL rated 'A' (TN) for MBA and MIB Programmes
III MCA [2012 - 2015]
Semester V
Core: Web Programming - 554C
Multiple Choice Questions.
1. Which of the following is not a .NET compatible language?
A. C#
B. J#
C. Cobol.Net.
D. VB.Net.
ANSWER: C
2. Common language specification (CLS)
A. is an execution engine for all .NET applications.
B. is similar to JVM as in Java.
C. defines standard rules for defining .NET compliant languages.
D. is a compiler.
ANSWER: C
3. The _______________ gives asp.net basic information about how to compile the page.
A. Doc Type.
B. Page Directive.
C. web.config file
D. Control directive.
ANSWER: B
4. Web.config is the __________ based configuration file for Asp.net applications.
A. HTML.
B. DHTML.
C. XML.
D. DTD.
ANSWER: C
5. Which file contains the collection of methods that can be called over the internet?
A. Ends with .ascx.

B. Ends with .aspx.


C. Ends with .asmx.
D. Ends with .asax.
ANSWER: A
6. Which file is allowed to write code that responds to global application events?
A. Global.aspx.
B. Global.asmx.
C. Global.asax.
D. Global.ascx.
ANSWER: C
7. _______________ indicates the type of mark up that you are using to create web page.
A. Page.
B. Doctype.
C. Html Tag.
D. Control.
ANSWER: B
8. The solution file extensions are __________________.
A. .sln & .suo.
B. .snl & .suo.
C. .snl & .sou.
D. .sol & .suo.
ANSWER: A
9. Common Type Structure (CTS) ____________.
A. defines data types in order to be run by CLR.
B. defines a set of rules for all compilers to generate managed code for .NET.
C. describes a set of features that different languages have in common.
D. Exception.
ANSWER: A
10. Which is the correct syntax of ASP.NET directive?
A. <%@ directive [attribute=value] %>.
B. <% directive [attribute=value] %>.
C. <@ directive [attribute=value] %>.
D. <@ directive [attribute=value] >.
ANSWER: A
11. What base class do all Web Forms inherit from?
A. System.Web.UI.WebControls.
B. System.Web.UI.Page.
C. System.Web.UI.UserControls.

D. System.Web.Form.
ANSWER: C
12. Which XML file is important in developing an ASP.NET application?
A. App.Config.
B. Web.Config.
C. Machine.Config.
D. Web.Data.
ANSWER: B
13. Which file is used to store variables so that we can access them in various pages of ASP.NET application?
A. Global.aspx.
B. Web.config. .
C. Global.asax.
D. Global.ascx.
ANSWER: C
14. The data binding expression of template uses a _________ method to retrieve the data item that bound to the current row.
A. Evaluate.
B. Bind.
C. DataBind.
D. Eval.
ANSWER: D
15. When is the web.config file called in an ASP.NET website?
A. For every first request made by any user.
B. For every request made by the user.
C. It's never get called directly until any configuration settings are not retrieved.
D. It is called always.
ANSWER: C
16. What is the name of base class for .NET?
A. System.Object.
B. System.Web.UI.Page.
C. System.Data.
D. System.Configuration.
ANSWER: A
17. Which of the following is the correct syntax of ASP.NET directive?
A. <%@ directive [attribute=value] %>.
B. <% directive [attribute=value] %>.
C. <@ directive [attribute=value] %>.
D. <@ directive [attribute=value] >.
ANSWER: A

18. Which of the following properties are not exposed by Page Class?
A. Cache, IsPostBack.
B. ErrorPage3, IsValid, Trace, and Validators.
C. Both A & B.
D. IsPageLoad.
ANSWER: C
19. Which of the following is the advantage of Response.Redirect()?
A. Allows you to send the user to a new URL.
B. Allows you to write information into ASP.NET pages.
C. Writes the specified file directly to an ASP.NET page.
D. All the above.
ANSWER: A
20. The equivalent html control for the List box control.
A. <HtmlSelectInput>.
B. <HtmlSelect>.
C. <Select>.
D. <SelectInput>.
ANSWER: B
21. The engine that hosts the web applications created with .Net and supports .Net class library is _______________.
A. ASP.NET.
B. ASP.
C. Web Service.
D. XML.
ANSWER: A
22. The _______________executes the code and provides a whole set of related services like code verification, optimization & object management.
A. CIL.
B. CLR.
C. IL.
D. MSIL.
ANSWER: B
23. The ___________ file keeps track of the web pages, configuration files and other resources that are considered part of the web application.
A. web site.
B. web application.
C. web form.
D. web project.
ANSWER: D
24. Which directive gives ASP.NET the basic information about how to compile the page?

A. @Compile.
B. @Register.
C. @Page.
D. @Imports.
ANSWER: C
25. The _____________ indicates the type of markup that is used to create a web page.
A. DOCTYPE.
B. Document.
C. DOC.
D. DocumentType.
ANSWER: A
26. Which HTML element adds a single line break with no extra space?
A. <bk>.
B. <lb>.
C. <br>.
D. <ln>.
ANSWER: C
27. The ___________ control is a large text box where the user can type multiple lines of text.
A. HtmlTextArea.
B. HtmlLargeText.
C. HtmlTextBox.
D. TextBox.
ANSWER: A
28. The __________________ control is a browse button and text box that can be used to upload a file in the web server.
A. HtmlFile.
B. HtmlInputFile.
C. HtmlInput.
D. HtmlUploadFile.
ANSWER: B
29. Which namespace contains the features of the HTML server controls?
A. System.Web.UI.Servercontrols.
B. System.Web.UI.Controls.
C. System.Web.UI.HtmlControls.
D. System.Web.UI.Page.Controls.
ANSWER: C
30. Which event is provided by the HtmlAnchor, HtmlButton, HtmlInputButton, HtmlInputImage and HtmlInputReset controls?
A. ServerChange.
B. ServerDoubleClick.

C. ServerSubmit.
D. ServerClick.
ANSWER: D
31. Which property indicates whether this is the first time the page is being run or the page is being submitted in response to a control event?
A. PostBack.
B. IsPostBack.
C. AutoPostBack.
D. IsPageLoad.
ANSWER: B
32. Which is the HTML element for a Link button control?
A. <a> tag.
B. <input type = img> tag.
C. <img> tag.
D. <a> with contained <img> tag.
ANSWER: D
33. _________ is a server side HTML control.
A. HTMLSelect.
B. Check Box.
C. List Box.
D. Radio Button.
ANSWER: A
34. Which property of the controls is set to TRUE in order to capture the change event such as TextChanged , CheckedChanged (or) SelectedIndexChanged immediately?
A. PostBack.
B. IsPostBack.
C. AutoPostBack.
D. Submit.
ANSWER: C
35. Where does the Web page belong in the .NET Framework class hierarchy?
A. System.Web.UI.Page.
B. System.Web.UI.WebPage.
C. System.Web.UI.Cache.
D. System.Web.UI.BasePage.
ANSWER: A
36. Which of the following is the correct syntax of ASP.NET directive?
A. <%@ directive [attribute=value] %>.
B. <% directive [attribute=value] %>.
C. <@ directive [attribute=value] %>.
D. <@ directive [attribute=value] >.

ANSWER: A
37. Which of the following properties are not exposed by Page Class?
A. Cache, IsPostBack.
B. ErrorPage3, IsValid, Trace, and Validators.
C. Both A& B.
D. IsPageLoad.
ANSWER: C
38. Which of the following are correct controls in ASP.NET Source View?
A. <asp:textbox runat="server" id="Msg" text="Hello, R4R" />.
B. <asp:button runat="server" id="Send" text="Send" onclick="Send_Click" />.
C. <asp:textbox id = "tb1" />.
D. A and B.
ANSWER: D
39. Asp.Net Framework Compiles with __________.
A. Accessibility standards & XHTML.
B. Accessibility standards & DHTML.
C. Accessibility standards & HTML.
D. All of the above.
ANSWER: A
40. Which file is allowed to write code that responds to global application events?
A. Global.aspx.
B. Global.asmx.
C. Global.asax.
D. Global.ascx.
ANSWER: C
41. _____________ directory contain all the compiled .net components (DLLs) that the Asp.Net application uses.
A. App_code.
B. Bin.
C. App_Data.
D. App_bin.
ANSWER: C
42. ______________ variable watch method automatically displays all the variables that are in scope in the current method.
A. Autos.
B. Locals.
C. Watch.
D. Test.
ANSWER: B

43. Which is not the language of .NET framework?


A. C#.
B. Jscript.
C. C.
D. Visual Basic.
ANSWER: C
44. The runtime logic of VB 6 in .Net framework is contained in a DLL file named ___________.
A. msvbvm60.dll.
B. msvb60.dll.
C. vbms60.dll.
D. msvbm60.dll.
ANSWER: A
45. The ___________ tag is used to include an all purpose container control.
A. <div>.
B. <span>.
C. <container>.
D. <form>.
ANSWER: B
46. Which is not the component of ASP.NET application?
A. Configuration Files.
B. Program Logic.
C. Flow chart.
D. Code Files.
ANSWER: D
47. The _______ shortcut key used for executing the currently highlighted line and then pauses.
A. F9.
B. F10.
C. F8.
D. F7
ANSWER: C
48. Which statement is true?
A. The InnerHtml property debugs the HTML tags.
B. The InnerHtml property treats the HTML tags as normal text.
C. The InnerText property treats the HTML tags as normal text.
D. The InnerText property treats the HTML tags as normal text.
ANSWER: B
49. The ________ event is provided by the HtmlInputButton control.
A. ServerChange.

B. ServerTransfer.
C. ServerClick.
D. ServerClicked.
ANSWER: C
50. All the HTML controls inherit from the ______________ base class.
A. HtmlBase.
B. HtmlControl.
C. HtmlControlBase.
D. HtmlBaseControl.
ANSWER: B
51. Web control classes are defined in _________________.
A. System.Web.UI.WebControl namespace.
B. System.Web.UI namespace.
C. System.Web.Services namespace.
D. System.Web.UI.Control namespace.
ANSWER: A
52. How do we enable tracing?
A. <%@ Page Trace= "true" %>.
B. <%@ Page TraceEnable= "true" %>.
C. <%@ Page EnableTrace= "true" %>.
D. <%@ Page SetTrace= "true" %>.
ANSWER: A
53. The process in which a Web page sends data back to the same page on the server is __________________.
A. postback.
B. autopostback.
C. transfer.
D. redirect.
ANSWER: A
54. What base class do all Web Forms inherit from?
A. WebControl Class.
B. HtmlControl Class.
C. Page class.
D. Form Class.
ANSWER: C
55. Which is the syntax is used to specify the comment in an .aspx file?
A. <%--and---%>.
B. <!---and ---->.
C. //.

D. /* */.
ANSWER: A
56. Which of the following property is used to set a cross page posting?
A. PostBackUrl.
B. AutoPostBack=true.
C. CausesValidation.
D. A) and B).
ANSWER: A
57. Choose the form in which Postback occurs.
A. HTMLForms.
B. WebForms.
C. WinForms.
D. Forms.
ANSWER: B
58. Which of the following is not a valid statement in ASP.Net?
A. Server.Transfer("SomePage.aspx").
B. Response.Redirect("SomePage.aspx").
C. Server.Redirect("SomePage.aspx").
D. Server.Execute("SomePage.aspx").
ANSWER: C
59. What DataType is returned in IsPostback property?
A. Bit.
B. Boolean.
C. Int.
D. String.
ANSWER: B
60. Which property do you use to determine how ASP.NET page was invoked?
A. IsPostBack.
B. PreviousPage.
C. IsCallback.
D. All the above.
ANSWER: D
61. The _______ are the methods which react to the web control events.
A. event handlers.
B. exception handlers.
C. event procedures.
D. control handlers.
ANSWER: A

62. Which are the server based equivalent controls for standard HTML elements?
A. HTML Controls.
B. Web Server Controls.
C. HTML Server Controls.
D. Web controls.
ANSWER: C
63. The _____________ controls provide a richer object model with a variety of properties for style and formatting details.
A. HTML Controls.
B. Web Server Controls.
C. HTML Server Controls.
D. Web controls.
ANSWER: B
64. Which attribute is mandatory for a web server control?
A. Type.
B. Value.
C. Enabled.
D. runat= "server".
ANSWER: D
65. Which is the only list control that is not selectable?
A. CheckBoxList.
B. ListBox.
C. BulletedList.
D. RadioButtonList.
ANSWER: C
66. Which event is associated with a checkbox?
A. SelectionChanged.
B. SelectedIndexChanged.
C. SelectedItemChanged.
D. CheckChanged.
ANSWER: D
67. Which web controls are set with the AutoPostBack property to true by default?
A. CheckBox & Button.
B. RadioButton & ListBox.
C. Button & ImageButton.
D. RadioButtonList & Button.
ANSWER: C
68. HTML <select> element works in the same way as the _______ web control.

A. CheckBoxList.
B. DropDown List.
C. RadioButton List.
D. List Box.
ANSWER: B
69. __________ property is used to add the corresponding information to the value attribute in the control element.
A. DataText Field.
B. DataValue Field.
C. Data Control.
D. Data Dictionary.
ANSWER: B
70. The __________ property is used to make the textbox control to be a mutiline textbox.
A. TextMode = "Multiline".
B. Text = "Multiline".
C. TextMode = "MultipleLine".
D. Text = "MultipleLine".
ANSWER: A
71. The data binding expression of a template uses a _________ method to retrieve the data item that's bound to the current row.
A. Evaluate().
B. Bind().
C. DataBind().
D. Eval().
ANSWER: D
72. The ____________ button has the provision to pass information on to the procedure that is called when the button is clicked.
A. Default Button.
B. CommandButton.
C. ImageButton.
D. LinkButton.
ANSWER: B
73. The _____________ property is used to make the radio buttons into a same group.
A. CategoryName.
B. GroupID.
C. GroupName.
D. CaegoryID.
ANSWER: C
74. The ___________ property is used to indicate the Hyperlink control as an Image Hyper Link.
A. ImageURL.
B. Image.

C. ImageButton.
D. ImageLink.
ANSWER: A
75. Which tag is used to add items to the data list web server controls?
A. List.
B. Item.
C. ListItem.
D. AddItem.
ANSWER: C
76. How many ViewState objects can be created on an aspx page?
A. 0.
B. Only 1.
C. Not more than 10.
D. There is no limit.
ANSWER: D
77. Which is not the advantage of Cookies?
A. Cookies do not require any server resources since they are stored on the client.
B. Cookies are easy to implement.
C. Users can delete cookies.
D. Cookies can be configured to expire when the browser session ends.
ANSWER: C
78. Which one is the authentication technique used in ASP.NET?
A. Page authentication.
B. Forms authentication.
C. SQL authentication.
D. Field authentication.
ANSWER: B
79. Which method retrieves the original (deepest nested) exception by moving to the base of the InnerException chain?
A. GetBaseException().
B. GetInnerException().
C. GetException().
D. GetException().
ANSWER: A
80. Which event log is used to track errors or notifications from any application?
A. System Log.
B. Security Log.
C. Application Log.
D. Setup Log.

ANSWER: C
81. Which namespace is used to interact with event logs in an ASP.NET page?
A. System.Diagnostics.
B. System.Eventlogs.
C. System.Error.
D. System.Web.Diagnostics.
ANSWER: A
82. What allows the users to react to the problems that occur at run time due to factors outside the user's control?
A. Exception handlers.
B. Error handlers.
C. Tracing.
D. Debugging.
ANSWER: A
83. Which section of the tracing information includes some basic information such as the current session ID, the time the web request was made, and the type of web request
and encoding?
A. Control Tree.
B. Session State.
C. Request Details.
D. Application State.
ANSWER: D
84. In which of the following directories, is the class file of composite web server controls stored to avoid repeated manual compilations?
A. App_Code.
B. Bin.
C. App_Controls.
D. App_LocalResources.
ANSWER: A
85. Which of the following is a data repository that should be used to store the data such as of times the application has been accessed etc.?
A. Session State.
B. View State.
C. Control State.
D. Application State.
ANSWER: D
86. View State is not loaded until after the _______ event.
A. Init.
B. InitComplete.
C. Load.
D. LoadComplete.
ANSWER: B

87. Which state allows the user to store global objects that can be accessed by any client?
A. Application State.
B. View State.
C. Session State.
D. Page State.
ANSWER: A
88. Which are the secured states?
A. View State & Cookies.
B. Application State & View State.
C. Application State & Session State.
D. Session State & View State.
ANSWER: C
89. What is a group of server computers that share the responsibility of handling requests?
A. Web Garden.
B. Web Form.
C. Web Site.
D. Web Farm.
ANSWER: D
90. The ___________ property of the page is an instance of the StateBag collection class.
A. Application state.
B. View state.
C. Session state.
D. Cookies.
ANSWER: B
91. Which approach is not used for transferring information between pages?
A. QueryString.
B. Session.
C. Cookies.
D. View State.
ANSWER: D
92. The __________ attribute is used to determine whether tracing formation will be displayed on the page (as it is with page-level tracing).
A. Enabled.
B. PageResult.
C. PageOutput.
D. AppOutput.
ANSWER: C
93. The _______________ shows the different stages of processing that the page went through before being sent to the client.

A. Request Information.
B. Trace Information.
C. Control Information.
D. Response Information.
ANSWER: B
94. The ___________ event is associated with the list controls.
A. Click.
B. TextChanged.
C. CheckedChanged.
D. SelectedIndexChanged.
ANSWER: D
95. Which property is used to determine the text of each item which is rendered as text (or) hyperlink in bulleted list?
A. SelectionMode.
B. DisplayMode.
C. SelectedItem.
D. DisplayItem.
ANSWER: B
96. Which property of the controls is set to TRUE in order to capture the change event such as TextChanged , CheckedChanged (or) SelectedIndexChanged immediately?
A. PostBack.
B. IsPostBack.
C. AutoPostBack.
D. Submit.
ANSWER: C
97. Which of the following scripting language is used by ASP.NET to bridge the gap between client side and server side code on all modern browsers?
A. PEARL.
B. VB Script.
C. JAVA Script.
D. PHP.
ANSWER: C
98. The process of converting an object into a stream of bytes is called as __________.
A. threading.
B. serialization.
C. appDomain.
D. binding.
ANSWER: B
99. Which of the following property acts as a reflection object in providing information about the method where the error have been occurred?
A. Message Property.
B. MessageTrace Property.

C. StackTrace Property.
D. TargetSite Property.
ANSWER: D
100. Which property acts as an extremely useful tool for component based programming?
A. HelpLink Property.
B. InnerException Property.
C. Source Property.
D. Thread Property.
ANSWER: B
101. What data types are supported by the RangeValidator control?
A. Integer and String.
B. Integer, Float, String, XMLDatatypes.
C. Integer, String and Date.
D. Integer, Boolean, Short, String and Date.
ANSWER: C
102. __________ controls are web controls that model complex user interface elements.
A. Web Server controls.
B. HTMLServer controls.
C. Rich controls.
D. HTML Controls.
ANSWER: C
103. The _________ style for the section of the calendar that displays the days of the week.
A. day header style.
B. day style.
C. selector day style.
D. week header style.
ANSWER: A
104. The ___________ is used for the week & month date selection controls.
A. week end style.
B. today day style.
C. selector style.
D. selected day style.
ANSWER: A
105. __________ property allows us to configure whether the user can selects this day.
A. IsSelectable.
B. Istoday.
C. Date.
D. Day.

ANSWER: A
106. The space in pixels, between cells in the same table is ___________________.
A. day name format.
B. cell spacing.
C. cell padding.
D. weekday format.
ANSWER: B
107. The Adrotator stores its list of__________ files in an xml files.
A. directory.
B. image.
C. document.
D. text.
ANSWER: B
108. The _____________link will be followed if the user clicks the banner.
A. ImageUrl.
B. Alternate Url.
C. AlternateText.
D. NavigateUrl.
ANSWER: D
109. A number that sets how often an advertisement will appear in___________________.
A. impressions.
B. keyword.
C. alternate text.
D. count.
ANSWER: A
110. The validation controls are inherited from _______________ class.
A. CustomValidator Class.
B. BaseValidator Class.
C. ControlValidator Class.
D. ItemValidator Class.
ANSWER: B
111. Which Validator control is used for validating the data based on specific patterns?
A. Range Validator.
B. CustomValidator.
C. Required Field Validator.
D. Regular Expression Validator.
ANSWER: D

112. The user control file (.ascx file) begins with a _______________ directive.
A. <%@Control%>.
B. <%@Page%>.
C. <%@Register%>.
D. <%@UsrCtrl%>.
ANSWER: A
113. Which property adds the corresponding information to the value attribute in the control element?
A. Data Field Property.
B. Data Value Field Property.
C. Value Property.
D. Data Property.
ANSWER: B
114. Which property sets the number of pixels between each level of nodes in TreeView?
A. Node Spacing.
B. NodeWrap.
C. NodeIndent.
D. Node Style.
ANSWER: C
115. Which one is not a Navigation Control?
A. Menu Control.
B. Tree View Control.
C. Site Map.
D. Site Map Path Control.
ANSWER: C
116. The ________________ event of the TreeView control is used for multiple selection of nodes.
A. SelectedNodeChanged.
B. TreeNodeExpanded.
C. TreeNodeCollapsed.
D. TreeNodeCheckChanged.
ANSWER: D
117. Which two properties are on every validation control?
A. ControlToValidate & ErrorMessage.
B. ControlToValidate & Compare.
C. ControlToCompare & ErrorMessage.
D. ControlToValidate & MinValue.
ANSWER: A
118. Which control can be used to make sure the values in two different controls matched?
A. RangeValidator.

B. RegularExpressionValidator.
C. RequiredFieldValidator.
D. CompareValidator.
ANSWER: D
119. Which validation control checks the value entered in the web form using a client-side or server-side function created by the user?
A. RequiredFieldValidator.
B. RegularExpressionValidator.
C. RangeValidator.
D. CustomValidator.
ANSWER: D
120. Which control is used to display and select more than one item when it renders on the page?
A. DropDownList.
B. RadioButtonList.
C. ListBox.
D. BulletedList.
ANSWER: C
121. Which control can be used to check if the value entered in a control is in specified range of values?
A. CompareValidator.
B. RegularExpressionValidator.
C. RangeValidator.
D. CustomValidator.
ANSWER: C
122. Which property on a Dropdown list do you set with a column name, prior to setting the DataSource, to display data in the control?
A. DataTextField property.
B. DataSource property.
C. DataField property.
D. DataValueField property.
ANSWER: A
123. What is the equivalent of date ( ) in ASP.NET?
A. System.DateTime.Now.ToShortDateString().
B. System.DateTime.Now.ToShortTimeString().
C. System.DateTime.Now().
D. System.DateTime.ToDateString().
ANSWER: A
124. What is the equivalent of time ( ) in ASP.NET?
A. System.DateTime.Now.ToShortDateString().
B. System.DateTime.Now.ToShortTimeString().
C. System.DateTime.Now().

D. System.DateTime.ToTimeString().
ANSWER: B
125. An alternative way of displaying text on web page is using a ___________ control.
A. asp:label.
B. asp:listitem.
C. asp:button.
D. asp:textbox.
ANSWER: A
126. What is used to validate complex string patterns like an e-mail address?
A. Extended expressions.
B. Basic expressions.
C. Regular expressions.
D. Irregular expressions.
ANSWER: C
127. What is a user control?
A. An ASP.NET user control is a group of one or more server controls or static HTML elements.
B. HTML elements exposed to the server so you can program them.
C. Controls that incorporate logic to allow you to test a user's input.
D. Ensures that the user does not skip an entry.
ANSWER: A
128. Which property to be set for avoiding validations for a button?
A. ControltoValidate=False.
B. ControltoValidate=True.
C. CausesValidation=False.
D. CausesValidation=True.
ANSWER: C
129. Which of the following is not a rich web server control?
A. AdRotator.
B. Calendar.
C. DataGrid.
D. TreeView.
ANSWER: C
130. At which event Master Page and Content Page's contents are merged to build a single page?
A. At the time of rendering.
B. At the time of initialization.
C. At the time of loading.
D. At the time of prerendering.
ANSWER: B

131. Which area in master page will be used to replace the content of master page with the child page's content?
A. ContentHolder.
B. PlaceHolder.
C. ChildPageHolder.
D. ContentPlaceHolder.
ANSWER: D
132. What is the extension for a Master Page file?
A. .master.
B. .mas.
C. .mscx.
D. .mast.
ANSWER: A
133. Which element is used to apply a theme to the current application within the web.config?
A. <%@ Page Theme="name" %>.
B. <pages theme="name"> ..</pages>.
C. <page theme= "name">.
D. <%@theme= "name">.
ANSWER: B
134. How many ContentsPlaceHolder Controls contains to the MasterPage by default?
A. 2.
B. 1.
C. 4.
D. More.
ANSWER: A
135. Which of the following Objects is NOT a part of ASP.NET Theme?
A. Supporting Images.
B. XML file.
C. Skin files.
D. Style sheet.
ANSWER: A
136. Which of the following is not supported for IIS?
A. Windows XP Professional.
B. Windows XP Home.
C. Windows 2003 Server.
D. Windows 2000 Server.
ANSWER: B
137. _____________attribute of the multiview control is used to select the view that is displayed when the page is first loaded.

A. ActiveViewIndex.
B. NextView.
C. PrevView.
D. FirstView.
ANSWER: D
138. ______ property is set to false to hide the first level node that would otherwise appear in the navigation tree.
A. StartFromCurrentNode.
B. StartingNodeUrl.
C. ShowStartingNode.
D. StartingOffset.
ANSWER: C
139. _______ property is used to change the starting node.
A. StartingNodeUrl.
B. StartingOffset.
C. ShowStartingNode.
D. StartFromCurrentNode.
ANSWER: A
140. _________ is another rich control that supports hierarchical data.
A. Menu Control.
B. HTML Control.
C. Web Control.
D. User Control.
ANSWER: A
141. ASP .NET adds a feature that allows user to skip this process and pop data directly into HTML elements and fully formatted controls called ___________________.
A. Data Binding.
B. Data Control.
C. Web Control.
D. Menu Control.
ANSWER: A
142. Which statement is correct ?
A. DataTable is member of a DataSet.
B. DataTable is member of a System.Data.
C. DataTable is member of a System.Data.SqlClient.
D. Dataadapter.
ANSWER: B
143. A web application on the server side runs under the management of Microsoft Internet Information Services (IIS).
A. IIS.
B. Web Services.

C. Link Libraries.
D. Class Libraries.
ANSWER: A
144. The button with the ________________ property set to false calls the Page.Validate() method to validate the page.
A. CausesValidation.
B. Validation.
C. EnableValidation.
D. Validate.
ANSWER: A
145. The __________________ is needed for the CustomValidator control.
A. ValidationFunction.
B. ClientFunction.
C. ClientValidationFunction.
D. Validate.
ANSWER: C
146. The ______________ event occurs when the user clicks the next or previous month navigation controls to move to another month.
A. MonthChanged.
B. VisibleChanged.
C. VisibleMonthChanged.
D. MonthVisibleChanged.
ANSWER: C
147. Which is not a Web Form Event available in ASP.NET?
A. Page_Init.
B. Page_Load.
C. Page_PreRender.
D. Page_Preload.
ANSWER: D
148. The __________ is a set of classes designed for drawing images.
A. GID.
B. GDI+.
C. GDI.
D. CGI.
ANSWER: B
149. Repeated-value data binding works with the ________________ control.
A. ASP .NET list.
B. ADO .NET list.
C. VB .NET.
D. Web Control.

ANSWER: A
150. The ___________ directive is used to include a user control in a web form.
A. Control.
B. Register.
C. UserControl.
D. RegisterControl.
ANSWER: B
151. Which namespace is used when we connect our asp.net page to SQL server?
A. System.data.sqlclient.
B. System.data.sql.
C. System.sqlserver.
D. System.url.
ANSWER: A
152. Which namespace contains the fundamental classes with core ADO.NET functionality?
A. System.NET.
B. System.Data.SQLClient.
C. System.Data.Oledb.
D. System.Data.
ANSWER: D
153. Which one is not a part of a Connection String?
A. Data Set.
B. Database.
C. User Name.
D. Password.
ANSWER: A
154. Which method should be invoked on the DataAdapter control to load the generated dataset with data?
A. DataBind().
B. DataFill().
C. FillData().
D. Fill().
ANSWER: D
155. The sql statement used to return one or more rows of data is_____.
A. retrieve.
B. select.
C. get.
D. fetch.
ANSWER: B

156. Which clause in a select statement sorts the information in a desired manner?
A. Sort by.
B. List by.
C. Order by.
D. Group by.
ANSWER: C
157. The aggregate function used for finding the number of unique values in the rows in the result set for the specific field is _______________.
A. count(*).
B. count().
C. count(DISTINCT fieldname).
D. count(UNIQUE fieldname).
ANSWER: C
158. Which of the following query updates all the records of an employee table to increase the DA by 5% of basic pay?
A. Update employee set DA=(DA+(0.05*basicpay)).
B. Update employee set DA=DA+0.05.
C. Update employee set DA=DA+0.05.
D. Update employee set DA=basicpay*5/100.
ANSWER: A
159. The namespace which contains fundamental classes with the core ADO.NET functionality is_________________________.
A. System.Net.
B. System.ADO.
C. System.Data.
D. System.ADO.Net.
ANSWER: C
160. The information to be in a connection string of SQL server data provider are ___.
A. server name, user id, password, database name.
B. server name, password, provider name.
C. server name, user id, provider name.
D. user id, password, database name.
ANSWER: A
161. Which one is not the provider of .NET DataProvider?
A. Connection Object.
B. Command Object.
C. DataAdapter Object.
D. DataSet Object.
ANSWER: D
162. Which is the default Provider Name of the Providers used to access the DataBase?
A. System.Data.SqlClient.

B. System.Data.Odbc.
C. System.Data.Oledb.
D. System.Data.OracleClient.
ANSWER: A
163. Which ADO.NET Object's fill method is used to fill the data from database into either DataSet or DataTable?
A. DataAdapter.
B. DataReader.
C. Command.
D. Connection.
ANSWER: A
164. ASP .NET adds a feature that allows user to skip this process and pop data directly into HTML elements and fully formatted controls called ___________________.
A. Data Binding.
B. Data Control.
C. Web Control.
D. Menu Control.
ANSWER: A
165. Single-value data binding doesn't necessarily have anything to do with ________.
A. VB .NET.
B. ADO .NET.
C. .NET.
D. ASP .NET.
ANSWER: B
166. _________ allows user to connect to any data source that has in ADO.NET data provider.
A. Data Source.
B. AccessDataSource.
C. SqlDataSource.
D. DataSourceInterface.
ANSWER: C
167. ________allows user to read and write the data in Access database.
A. AccessDataSource.
B. SqlDataSource.
C. Data Source.
D. Object data Source.
ANSWER: A
168. In the .Net Framework, data is transmitted in the ____________ format.
A. XML.
B. HTML.
C. DHTML.

D. DTD.
ANSWER: A
169. ____________ are the collection of classes in the .NET framework that provide a foundation for the ADO.NET programming model.
A. Unmanaged Providers.
B. Managed Providers.
C. Managed Library.
D. Unmanaged Library.
ANSWER: B
170. Which namespace includes classes that are used to connect to the OLE DB datasources and execute the database queries?
A. System.Data.OleDb.
B. System.Data.
C. System.Web.UI.Data.
D. System.Web.Data.OleDb.
ANSWER: A
171. Which class is used to define forward only record set?
A. OleDbDataAdapter.
B. OleDbDataReader.
C. OleDbDataCommand.
D. OleDbDataSet.
ANSWER: B
172. Which class is used to represent a data base query that is used to populate the DataSet object?
A. DataTable.
B. DataSet.
C. DataAdapter.
D. DataRow.
ANSWER: C
173. Which is not the component of data providers in ADO.NET?
A. Connection Object.
B. Command Object.
C. Data Reader Object.
D. Data Set object.
ANSWER: D
174. Which is the correct syntax for defining the OleDb connection object?
A. OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\MyDatabase.mdb").
B. OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0").
C. OleDbConnection("Data Source= C:\MyDatabase.mdb").
D. OleDbConnectionString("Provider=Microsoft.Jet.OLEDB.4.0").
ANSWER: A

175. What are the two fundamental objects in ADO.NET?


A. Data Reader and Data Set.
B. Data Command and Data Set.
C. Data Reader and Data Command.
D. Data Adapter and Data Reader.
ANSWER: A
176. Which of following statement is false?
A. Data Reader provides forward-only and read-only access to data.
B. Dataset objects can only one table from the same data source.
C. Dataset is a disconnected architecture while data reader is connected architecture.
D. Dataset can persist contents while data reader cannot persist contents, they are forward only.
ANSWER: B
177. Which command is used to execute the Select Command to fill the Dataset object with data from the data source?
A. FillData()
B. Fill().
C. DataFill().
D. FillDataSet().
ANSWER: B
178. The ____________ acts as the condut between the client application and the database connection, command objects.
A. Data Set.
B. Data Reader.
C. Data Adapter.
D. Data Table.
ANSWER: C
179. Which is not the command property of the OleDbDataAdapter class?
A. UpdateCommand.
B. InsertCommand.
C. SelectCommand.
D. DeleteCommand.
ANSWER: A
180. Which statement is used to fill the data set object DS with the query result of the command object?
A. MyCommand.Fill(DS, "Products").
B. Fill(DS, "Products").
C. MyCommand.Fill(DS).
D. MyCommand.Fill("Products").
ANSWER: A
181. Which statement is used to bind the grid view control with the data?

A. MyGridView.Bind().
B. MyGridView.Data.Bind().
C. MyGridView.DataBind().
D. MyGridView.DataBind().
ANSWER: D
182. What are the two parameters used to create a SqlDataAdapter object?
A. Sqlquery and SqlConnection object.
B. Connection Object and DataSet object.
C. Connection Object and DataReader Object.
D. SQL Command and DataSet Object.
ANSWER: A
183. Which is not a valid data type in SQL?
A. Float.
B. Integer.
C. DateTime.
D. Real.
ANSWER: D
184. The _____________ field is used to identify each row in the table uniquely.
A. Unique Key.
B. Primary Key.
C. Foreign Key.
D. Secondary Key.
ANSWER: B
185. Which SQL statement is used to delete all the rows from the table?
A. Delete Table.
B. Delete from Table.
C. Delete all from Table.
D. Delete rows from Table.
ANSWER: B
186. Which is not a SQL statement?
A. Select.
B. Update.
C. Modify.
D. Delete.
ANSWER: C
187. Which method has to be called to execute the insert SqlCommand in the SQL connection?
A. ExecuteQuery().
B. Execute().

C. ExecuteNonQuery().
D. ExecuteSqlQuery().
ANSWER: C
188. Which of the following syntax is used to create a SqlDataAdapter object with stored procedure?
A. MyCommand = New SqlDataAdapter("Procedure_name", MyConnection).
B. MyCommand = New SqlDataAdapter("Procedure_name").
C. MyCommand = New SqlDataAdapter("Adapter_name", MyConnection).
D. MyCommand = New SqlDataAdapter("Adapter_name").
ANSWER: A
189. The _____________ ADO.NET class is used to pass parameters to the SqlCommand object.
A. Sqlconnection.
B. SqlDataAdapter.
C. SqlParameter.
D. SqlCommand.
ANSWER: C
190. The ______________ ADO.NET class is used to represent a set of data commands and a data base connection that are used to fill the DataSet and update the data source.
A. OleDbDataReader.
B. OleDbDataAdapter.
C. OleDbCommand.
D. OleDbConnection.
ANSWER: B
191. Which is not a data access class of ADO.NET?
A. DataSet.
B. DataAdapter.
C. DataTable.
D. DataGrid.
ANSWER: D
192. Which feature of ADO.NET allows more users to access data simultaneously?
A. Interoperability.
B. Programmability.
C. Data Navigation.
D. Scalability.
ANSWER: D
193. ________________ control enables the user to display, select, sort, page and edit the data items.
A. check box.
B. Drop down list.
C. GridView.
D. List Box.

ANSWER: C
194. Which of the following controls support data binding?
A. RadioButtonList.
B. asp:CheckBoxList.
C. asp:DropDownList.
D. All of the above.
ANSWER: D
195. Which data control does not exist in ASP.NET?
A. GridView.
B. DataList.
C. Repeater.
D. TableView.
ANSWER: D
196. Which method do you invoke on the Data Adapter control to load your generated dataset?
A. Fill( ).
B. Read( ).
C. ExecuteQuery( ).
D. Load( ).
ANSWER: A
197. ____________ is a way used to connect values from a collection of data (e.g. DataSet) to the controls on a web form.
A. Data Binding.
B. Data Collecting.
C. Data Reading.
D. Data Connecting.
ANSWER: A
198. Which of the following controls support data binding?
A. asp:RadioButtonList.
B. asp:CheckBoxList.
C. asp:DropDownList.
D. All of the above.
ANSWER: D
199. Which control cannot use the SiteMapDataSource as is DataSource?
A. Menu.
B. Multiview.
C. SiteMapPath.
D. TreeView.
ANSWER: B

200. The ______________________ property returns the previous node that is at the same level (or null reference it no such node exists).
A. PreviousNode.
B. PreviousLevel.
C. PreviousSibling.
D. ChildNode.
ANSWER: C
201. Which control is used when we need to display various fields of a single record in a tabular format?
A. Form View.
B. Data List.
C. Grid View.
D. Details View.
ANSWER: D
202. Which control triggers the "ModeChanged" event whenever it attempts to change between modes of edit, insert and read-only?
A. Form View.
B. Data List.
C. Details View.
D. Grid View.
ANSWER: C
203. Which method resolves the data-binding expressions of the GridView control?
A. Init().
B. PreRender() .
C. Load().
D. DataBind().
ANSWER: B
204. DetailsView Control can be displayed in which Modes?
A. ReadOnly Mode.
B. Edit Mode.
C. Insert Mode.
D. all the above.
ANSWER: D
205. Which control is used to sort the data and allow paging?
A. Datalist.
B. Repeater Control.
C. GridView.
D. ListView.
ANSWER: C
206. ________________ control enables the user to display, select, sort, page and edit the data items.
A. Check box.

B. Drop down list.


C. Grid View.
D. List Box.
ANSWER: C
207. The Grid view is associated with its data source through its ____________ property.
A. Data Source ID.
B. Datasource.
C. DataBind.
D. Page_Load.
ANSWER: A
208. _________________ column in a grid view control provides selection or editing buttons.
A. BoundField.
B. ButtonField.
C. CommandField.
D. CheckBoxField.
ANSWER: C
209. The grid view renders its data items in an __________table.
A. SGML.
B. HTML.
C. XML.
D. XHTML.
ANSWER: B
210. ___________________ property is used to display a select link in a grid view.
A. Select Button.
B. Selected Row.
C. AutoGenerateSelected Button.
D. SelectedIndex.
ANSWER: C
211. ________________ returns the data key object associated with the selected row in a grid view control.
A. SelectedIndex.
B. SelectedDataKey.
C. SelectedValue.
D. SelectedRow.
ANSWER: B
212. Which one is not the provider of .NET DataProvider?
A. Connection Object.
B. Command Object.
C. DataAdapter Object.

D. DataSet Object.
ANSWER: D
213. The user can sort the rows rendered by a Grid view control by enabling the _________ property.
A. AllowsSorting.
B. Sorting.
C. RowDataBound.
D. Click.
ANSWER: A
214. Paging in a Gridview control can be enabled by ______________ property.
A. AllowPaging.
B. Paging.
C. PageAllow.
D. EnablePaging.
ANSWER: A
215. The ________________ property enables the user to format every other row.
A. RowStyle.
B. AlternateStyle.
C. AlternateRowStyle.
D. ColumnStyle.
ANSWER: C
216. Which is the default Provider Name of the Providers used to access the DataBase?
A. System.Data.SqlClient.
B. System.Data.Odbc.
C. System.Data.Oledb.
D. System.Data.OracleClient.
ANSWER: A
217. ____________ property of a Grid View control enables the user to format the footer row.
A. Footer.
B. FooterStyle.
C. RowStyle.
D. Column.
ANSWER: B
218. The GridView control includes a _____________ property.
A. CsClass.
B. CClass.
C. CssClass.
D. Class.
ANSWER: C

219. Which control requires templates to display the data from the database?
A. DetailsView.
B. GridView.
C. ListView
D. FormView.
ANSWER: D
220. Which property of the DetailsView controls is set to True to enable deleting?
A. AutoGenerateDeleteButton.
B. AutoDeleteButton.
C. AutoDelete.
D. DeleteButton.
ANSWER: A
221. The __________________ is necessary to use single-value data binding.
A. Data control.
B. Data Binding Expression.
C. Binding Method.
D. Data Expression.
ANSWER: B
222. The _______________ controls provides a list for a single field of information.
A. Button.
B. Grid.
C. List.
D. HTML.
ANSWER: C
223. A _____________ is a special kind of collection in which every item is indexed with a specific key.
A. Data Collection.
B. Dictionary Collection.
C. Session Collection.
D. Word Collection.
ANSWER: B
224. Which control includes any control that implements the IDataSource Interface?
A. Data Grid control.
B. Data List Control.
C. Data Source Control.
D. Grid View Control.
ANSWER: C
225. Which one is not a .NET data provider?

A. System.Data.SqlClient.
B. System.Data.OracleClient.
C. System.Data.Odbc.
D. System.Data.OracleDbClient.
ANSWER: D
226. The __________ tag has to be added in the SqlDataSource tag to define parameters.
A. <SelectParameter>.
B. <Parameter>.
C. <AddParameters>.
D. <Select>.
ANSWER: A
227. The ________ is not a valid column type of a GridView control.
A. ImageField.
B. BoundField.
C. CommandField.
D. ColumnField.
ANSWER: D
228. The ________ property of the BoundField of the GridView control identifies the field the user want to display.
A. DataField.
B. ColumnField.
C. DataFormat.
D. Data.
ANSWER: A
229. The _________ property of the BoundField of the GridView control configures the appearance for the column.
A. ControlStyle.
B. HtmlStyle.
C. PageStyle.
D. FormStyle.
ANSWER: A
230. The _______________ property is set to true by default to generate columns for every field automatically.
A. GenerateColumns.
B. AutoGenerate.
C. AutoGenerateColumns.
D. AutoGenerateField.
ANSWER: C
231. The most basic column type in the GridView control is ________.
A. ButtonField.
B. ItemField.

C. ImageField.
D. BoundField.
ANSWER: D
232. Each BoundField column provides a___________________ property you can use to configure the appearance of numbers and dates using a format string.
A. DataFormatString.
B. FormatString.
C. DataString.
D. FormatDataString.
ANSWER: B
233. Format strings generally consist of a ________________ and a format indicator, which are wrapped inside curly brackets.
A. Placeholder.
B. Format option.
C. Content Holder.
D. Content.
ANSWER: A
234. The format string {0:P} specifies the __________ type of data.
A. Currency.
B. Scientific.
C. Percentage.
D. Fixed Decimal.
ANSWER: C
235. Which is not a valid GridView Style?
A. HeaderStyle.
B. PagerStyle.
C. FooterStyle.
D. ItemStyle.
ANSWER: D
236. The ___________ control displays one record at a time from a data source.
A. FormView.
B. RecordView.
C. DetailsView.
D. DataGrid.
ANSWER: C
237. Which event handler has to be defined to change the formatting for a specific row or even just a single cell in a GridView?
A. RowDataBound event.
B. DataBound event.
C. RowBound event.
D. RowFormat event.

ANSWER: A
238. The ________________________ property of a GridViewRow object provides the data object for the given row.
A. DataField.
B. DataSource.
C. DataRow.
D. DataItem.
ANSWER: D
239. The ______________ collection of the GridViewRow object allows the user to retrieve the row content.
A. Cells.
B. Columns.
C. Fields.
D. Rows.
ANSWER: A
240. The ________________ property of the GridView is used to find out what item is currently selected.
A. SelectedItem.
B. SelectedIndex.
C. SelectedRow.
D. SelectedCell.
ANSWER: B
241. Which column field is used to turn a data field as a select button?
A. ColumnField.
B. BoundField.
C. ItemField.
D. ButtonField.
ANSWER: D
242. The user can _________ the fields by adding a CommandField with the ShowEditButton property set to True in the GridView.
A. Add.
B. Edit.
C. Update.
D. Modify.
ANSWER: B
243. The _______________ expression of the BoundField property can be set with the data field to enable sorting.
A. EnableSorting.
B. Sort.
C. Order.
D. OrderBy.
ANSWER: B

244. The DataSourceMode property of the data source is set to ____________ to enable sorting.
A. DataSet.
B. DataObject.
C. DataAdapter.
D. DataControl.
ANSWER: A
245. The __________ event handler is used to clear the selection of an item in a GridView when selection and sorting used together.
A. Sorted.
B. Selected.
C. SortSelected.
D. SelectionSorted.
ANSWER: A
246. The __________ property gets or sets the zero-based index of the currently displayed page, if paging is enabled in a GridView.
A. PageSize.
B. IndexPage.
C. PageIndex.
D. PageSetting.
ANSWER: C
247. The ________ event Occur when one of the page selection elements is clicked, just before the PageIndex is changed.
A. IndexChanged.
B. PageIndexChanged.
C. PageChanged.
D. ItemChanged.
ANSWER: B
248. The ___________ property provides a style object the user uses to configure fonts, colors, and text alignment for the paging controls.
A. PageStyle.
B. PagingStyle.
C. PagerStyle.
D. ControlStyle.
ANSWER: C
249. The ________________ property of the GridView is used to define a completely customized template for a column.
A. ColumnField.
B. TemplateField.
C. ButtonField.
D. BoundField.
ANSWER: B
250. ___________ test makes sure that the new code does not break the existing code.
A. Regression Test.

B. Integration Test.
C. Unit Tests.
D. Load Test
ANSWER: B

Staff Name
Edith Linda P .

Potrebbero piacerti anche