ASP.NET Fundamentals

Test your knowledge of ASP.NET fundamentals including controls, page life cycle, configuration, state management, authentication, and data access.

25 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

Which of the following is NOT a valid file extension in ASP.NET?

  1. .asax
  2. .ascx
  3. .axd
  4. .asmx
  5. .asfx
Question 2 Multiple Choice (Single Answer)

Which of the following controls is used to ensure that an input value matches a specified pattern?

  1. RegularExpressionValidator
  2. RegularPatternValidator
  3. CompareValidator
  4. CustomValidator
  5. RequiredFieldValidator
Question 3 Multiple Choice (Single Answer)

Which of the following methods of the Global.asax file is called when the first resource is requested from the web server?

  1. Session_Start()
  2. Application_BeginRequest()
  3. Application_Start()
  4. Application_AuthenticateRequest()
  5. Application_AcquireRequestState()
Question 4 Multiple Choice (Single Answer)

Which of the following page life cycle events is raised after the page loads view state for itself and all other controls, and then it processes postback data?

  1. init
  2. PreLoad
  3. PreRender
  4. InitComplete
  5. LoadComplete
Question 5 Multiple Choice (Single Answer)

Which of the following statements is FALSE regarding cookies?

  1. Size of cookies is limited to 4096 bytes.
  2. Most browsers allow only 20 cookies per site.
  3. The Operating System is responsible for managing cookies on a user system.
  4. The cookie contains the information that the Web application can read whenever the user visits the site.
  5. The end user can stop accepting cookies by changing browser setting.
Question 6 Multiple Choice (Single Answer)

Which of the following is NOT a valid directive in ASP.NET?

  1. @Implements
  2. @OutputCache
  3. @Register
  4. @MasterPage
  5. @Import
Question 7 Multiple Choice (Single Answer)

Which ASP.NET folder is used to store files such as .mdf, .mdb and XML?

  1. Bin
  2. App_Code
  3. App_Data
  4. App_Database
  5. App_Browser
Question 8 Multiple Choice (Single Answer)

Which of the following is NOT an ASP.NET object?

  1. Application
  2. Request
  3. Cookie
  4. Response
  5. Session
Question 9 Multiple Choice (Single Answer)

Which web server control allows us to place an empty container control in the page and then dynamically add child elements to it at run time?

  1. Panel
  2. Table
  3. Image
  4. PlaceHolder
  5. ListBox
Question 10 Multiple Choice (Single Answer)

Which of the following is NOT a template in a Repeater Control?

  1. AlternatingItemTemplate
  2. PageTemplate
  3. HeaderTemplate
  4. ItemTemplate
  5. SeparatorTemplate
Question 11 Multiple Choice (Single Answer)

Which of the following objects acts as a mediator between the DataSet object and the database?

  1. DataAdapter Object
  2. DataReader Object
  3. DbConnection
  4. DbCommand
  5. DataTable
Question 12 Multiple Choice (Single Answer)

Which of the following allows the state of objects to be stored transported back to server whenever required?

  1. ViewState
  2. MasterPage
  3. Global Assembly Cache
  4. Code Access Security
  5. Reflection
Question 13 Multiple Choice (Single Answer)

How many types of Authentication are there in ASP.NET?

  1. 3
  2. 4
  3. 2
  4. 5
  5. 1
Question 14 Multiple Choice (Single Answer)

Which of the following is NOT a property of a user control?

  1. They have a .ascx extension.
  2. They are compiled into a dynamic link library (DLL).
  3. They are derived from the System.Web.UI.UserControl class.
  4. The user control cannot have html or body tags.
  5. They have a Control directive instead of a Page directive.
Question 15 Multiple Choice (Single Answer)

Which of the following is NOT a valid property of an advertisement file with reference to AdRotator control?

  1. Impression
  2. ImageUrl
  3. UrlNavigate
  4. Keyword
  5. AlternateText
Question 16 Multiple Choice (Single Answer)

Which of the following is NOT a property of the POST method?

  1. Post is safer then Get method.
  2. Post requests are not stored in browser's history.
  3. Post requests cannot be bookmarked.
  4. Post request have no restriction on data length.
  5. Post exposes the data in the URL.
Question 17 Multiple Choice (Single Answer)

Which namespace would be used to create an ASP.NET application with Microsoft SQL Server as the database?

  1. System.Data.Common
  2. System.Data.SQLServer
  3. System.Data.SQLClient
  4. System.Data.OleDb
  5. System.Data.ADO
Question 18 Multiple Choice (Single Answer)

Which of the following statements is FALSE with reference to ASP.NET configuration system?

  1. Configuration information is stored in XML-based text files.
  2. It is extensible.
  3. A web application can have only one web.config file.
  4. The user cannot access a web.config file directly.
  5. Changes in the configuration files are updated automatically.
Question 19 Multiple Choice (Single Answer)

Which method of the Session Object is used to destroy a user session?

  1. TimeOut
  2. Destroy
  3. Abandon
  4. Remove
  5. Session.Contents.Remove
Question 20 Multiple Choice (Single Answer)

What can be defined as - manages the execution of programs written in any of several supported languages, allowing them to share common object-oriented classes written in any of the languages?

  1. MSIL
  2. CLR
  3. JIT
  4. DLL
  5. CTS
Question 21 Multiple Choice (Single Answer)

Which is the preferred protocol to call a web service?

  1. HTTP
  2. SMTP
  3. FTP
  4. SOAP
  5. WSDL
Question 22 Multiple Choice (Single Answer)

Which of the following is a valid pair of wild card characters in web.config?

  1. * and /
  2. / and ?
  3. * and ?
  4. ? and _ (underscore)
  5. * and _(underscore)
Question 23 Multiple Choice (Single Answer)

Which namespace contains classes that define culture-related information?

  1. System.Dynamic
  2. System.IdentityModel
  3. System.Globalization
  4. System.EnterpriseServices
  5. System.Media
Question 24 Multiple Choice (Single Answer)

Which data control is used to display one record at a time?

  1. DetailsView
  2. GridView
  3. Repeater
  4. DataList
  5. ListBox
Question 25 Multiple Choice (Single Answer)

Which of the following statements about MVC is FALSE?

  1. It separates the modelling of the domain into three separate classes.
  2. It is a design pattern for the separation of user interface logic from business logic.
  3. It increases the complexity of the solution.
  4. The controller part is responsible for displaying all or a portion of the data to the user.
  5. The MVC separation also simplifies group development.