Asp MCQ
Asp MCQ
Asp MCQ
NET webpage is
a. .aspx b. .ascx c. .asmx d. None
2. Which of the following is/are part/s of .NET Framework
a. CLR b. Base Class Library c. Web Form d. All
3. The code model that separate the presentation code from the core application logic
is
a. In-line code model b. Code-behind model c. Both a & b d. None
4. Which of the following is called execution engine of the .NET framework
a. Base Class Library b. CLR c. Web Form d. None
5. ASP.NET renders dynamic pages by combining HTML,
a. CSS b. Server side logic c. Java Script d. All
6. ASP.NET page class is generated by
a. Parsed Page b. Code behind class c. Both Parsed Page & Code
behind class
d. None
7. Benifits of compiled code are
a. Stability b. Performance improvement c. Security enhancement d.
All
8. The 1st event triggered in an aspx page is
a. Page_Init b. Page_Load c. Page_Click d.Page_PreInit
9. Keyword to prevent class from being inherited is
a. Inherits b. Inheritable c. NotInheritable d. Abstract
10. How to identify that page is post back?
a. IsPostBack property b. AutoPostBackProperty c. SendBack d.
Postback
11. How can we implement multiple inheritance?
a. Class b. Interface c. Abstract Class d. Inherits
12. Which of the following object is in memory representation of data?
a. Commandbuilder b. DataSet c. DataReader d. DataAdapter
13. Which of the following object is used to implement changes in the database that is
done in DataSet?
a. Data Set b. DataReader c. DataAdapter d.None
64. A web server technology for dynamically rendering HTML pages using a combination
of HTML, Javascript, CSS, and server-side logic is
a. ASP.NET b. VB.NET c. ASP d. None
65. Which of the following template is mandatory to display data in repeater control?
a. ItemTemplate b. Footer Template c. Header Template d. All
66. Which are skin templates used to define the look of page and controls?
a. MasterPage b. Themes c. CSS d. None
68. Which block of .NET framework is also called Data Access Layer?
a. FCL b. ADO.NET & XML c. XML d. BCL
69. Which programming approach is supported by ASP.NET?
a. Structure Programming b. Even Driven Programming c. Linear
Programming d. None of the above
70. The first event triggered in an aspx page is ______.
a. Page_Init() b. Page_load c. Page_Click d. None of the Above
71 Which of the following can transfer the execution control to different domain?
a. Server.Transfer() b. Response.Query() c. Redponse.Redirect() d. None of
the above
84. 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
85. Which object can help you maintain data across users?
a. Application object b. Session object c. Response object d. Server object
97. An application must reference the _____________ namespace, to use the .NET
Framework Data Provider for SQL Server:
a. System.Data.Client b. System.Data.Sql c. System.Data.SqlClient d. None of the
mentioned
98.
__________object is used to fill a DataSet/DataTable with query results in ADO.net.
a. DataReader b. Dataset c. DataAdapter d. DataTables
105. Which file you should write for the connection string so that you can access it in all
the web pages for the same application?
a. In App_Data folder b.In Web.config file c.In MasterPage file d. Control page
107. Which properties ensure that form is automatically posted back when CheckBox is
checked or Unchecked?
a. Crosscheck b. Postback c. AutoPostBack d. None
108. I am used to create an image that contains clickable hotspot region. Who am I?
a. ImageHotspot b. ImageMap c. ImageLink d. ImageButton
110. What namespace does the Web page belong in the .NET Framework class hierarchy?
a. System.web.UI.Page b. System.Windows.Page c. System.Web.page d. None
112. Which of the following is the default authentication mode for IIS?
a. Anonymous b. Windows c. Basic Authentication d. None
115. The .NET framework is managed; _________ environment for building, developing,
deploying and executing various applications.
a. Case Sensitive b. Type-Safe c. Case Insensitive d. User Friendly
120. Which of the following Data Control allows you to add new record within the
database?
a. FormView b. ListBox c. Repeater d. None of the above
121. Which of the following control provide a user-defined validation function for an input
control?
a. RequiredFieldValidator b. CustomValidator c. RangeValidator
d. RegularExpressionValidator
123. Which of the following are the Data Access Model(s) Present before ADO.NET?
a. DAO b. RDO c. ADO d. All of the above
124. Which of the following act as a bridge between Data Source and DataSet?
a. DataReader b. DataTable c. DataAdapter d. DataRelation
125. Which of the following is used for sorting, filtering, searching, editing and navigating
the data from a DataSet?
a. DataRow b. DataColumn c. DataView d. DataRelation
126. Which of the following directive is present on the top of Web User Control?
a. @WebControl b. @UserControl c. @GreetUser d. @Control
127. _________ is a directory services where web services can be registered and search.
a. WSDL b. UDDI c. W3C d. XML
128. Which is the protocol used to transfer information between Server and browser?
a. HTML b. XML c. FTP d. HTTP
129. Which status code indicates redirection of the client to another URL?
a. 5xx b. 4xx c. 3xx d. 2xx
130. For separating server-side code from client-side code on ASP.NET page, what
programming model should you use?
a. Separation Model b. Code-Behind Model c. In-Line Model d. Client Server
Model
134. Which of the following is the Server Side State Management Technique?
a. Cookie b. Session c. Querystring d. None of the above
136. Which of the following are the features of ASP.NET that are used for structuring and
formatting the pages and controls?
a. Master page b. Themes c. Both a and b d. None of the Above
137. You want to make a configuration setting change that will affect only the current
Web application. Which file will you change?
A ) WEB.CONFIG B) Global.asax C) Machine.config D) All of the above
139. What are the client-side state management options that ASP.NET supports?
A) Application B) Session C) Query string D) Both aapplication and session
141. Which validation control in ASP.NET can be used to determine if data that is entered
into a TextBox control is of type Currency?
A) RegularExpression Validator B) RequireField Validator
C) Compare Validator D) Range Validator
142. Which object in ASP.NET provides a global storage mechanism for state data that
needs to be accessible to all pages in a given Web application?
A) Session B) Application C) Cookies D) Viewstate
144. Validation Control display error messages using which of the following method?
A) Inline B) Summary C) Inplace and summary D) All of the above
145. Which of the following web server control display static text that can be changed at
runtime?
A) TextBox B) Label C) HyperLink D) Listbox
146. Which command are used to specify the settings for the aspx file?
A) Class B) Directive C) Event D) Validation
148. The first event of the ASP.NET page when user request a webpage is
a. Init b. PreInit c. Load d. PreLoad
149. Which of the following is not a client side state management technique
a. Session b. Cookies c. QueryString d. HiddenField
151. The properties of List Controls which allows it to interact with Database are/is
a. DataSource b. DataTextField c. DataValueField d. All
152. The data control which allows you to add new record within the database is
a. FormView b. ListBox c. Repeater d. None
153. The Navigation Control is used to create hierarchical structure as table of content is
a. GridView b. TreeView c. SiteMapPath d. All
154. The validation control used to ensure user does not skip an input field is
a. RangeValidator b. CompareValidator
c. RequiredFieldValidator d. RegularExpressionValidator
166. The validator control used to verify input values falls between given minimum and
maximum value is
a. RegularExpressionValidator b. RangeValidator
c. RequiredFieldValidator d. CompareValidator
167. To call the constructor of the base class from derived class we need to use the
keyword
a. MyBase b. MyClass c. MyConstructor d. BaseConstruct
169. Statements in which block are executed whether the exception occurs or not
a. Try b. Catch c. Finally d. None
170. Which statement is used to throw an exception?
a. Throw b. Try c. On error go to d. Catch
171. The property of the page to set when Master Page is bind with page is
a. MasterPage b. MasterFile c. MasterPageFile d. None
172. The method of command object which doesn’t return any value of database or row
of a database is
a. ExecuteNonQuery b. ExecuteScalar c. ExecuteReader d. None
173. The property of Command class used to specify how to interpret command text is
a. CommandText b. Connection c. CommandType d. Transaction
174. The directive used for master page is
a. Register b. Page c. Master d. Control
177. Property of the button control used to set page to which it is redirected when button
is clicked
a. PostURL b. IsPostBack c. PageUrl d. PostBackUrl