ASP.NET Fundamentals
Test your knowledge of ASP.NET fundamentals including controls, page life cycle, configuration, state management, authentication, and data access.
Questions
Which of the following is NOT a valid file extension in ASP.NET?
- .asax
- .ascx
- .axd
- .asmx
- .asfx
Which of the following controls is used to ensure that an input value matches a specified pattern?
- RegularExpressionValidator
- RegularPatternValidator
- CompareValidator
- CustomValidator
- RequiredFieldValidator
Which of the following methods of the Global.asax file is called when the first resource is requested from the web server?
- Session_Start()
- Application_BeginRequest()
- Application_Start()
- Application_AuthenticateRequest()
- Application_AcquireRequestState()
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?
- init
- PreLoad
- PreRender
- InitComplete
- LoadComplete
Which of the following statements is FALSE regarding cookies?
- Size of cookies is limited to 4096 bytes.
- Most browsers allow only 20 cookies per site.
- The Operating System is responsible for managing cookies on a user system.
- The cookie contains the information that the Web application can read whenever the user visits the site.
- The end user can stop accepting cookies by changing browser setting.
Which of the following is NOT a valid directive in ASP.NET?
- @Implements
- @OutputCache
- @Register
- @MasterPage
- @Import
Which ASP.NET folder is used to store files such as .mdf, .mdb and XML?
- Bin
- App_Code
- App_Data
- App_Database
- App_Browser
Which of the following is NOT an ASP.NET object?
- Application
- Request
- Cookie
- Response
- Session
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?
- Panel
- Table
- Image
- PlaceHolder
- ListBox
Which of the following is NOT a template in a Repeater Control?
- AlternatingItemTemplate
- PageTemplate
- HeaderTemplate
- ItemTemplate
- SeparatorTemplate
Which of the following objects acts as a mediator between the DataSet object and the database?
- DataAdapter Object
- DataReader Object
- DbConnection
- DbCommand
- DataTable
Which of the following allows the state of objects to be stored transported back to server whenever required?
- ViewState
- MasterPage
- Global Assembly Cache
- Code Access Security
- Reflection
How many types of Authentication are there in ASP.NET?
- 3
- 4
- 2
- 5
- 1
Which of the following is NOT a property of a user control?
- They have a .ascx extension.
- They are compiled into a dynamic link library (DLL).
- They are derived from the System.Web.UI.UserControl class.
- The user control cannot have html or body tags.
- They have a Control directive instead of a Page directive.
Which of the following is NOT a valid property of an advertisement file with reference to AdRotator control?
- Impression
- ImageUrl
- UrlNavigate
- Keyword
- AlternateText
Which of the following is NOT a property of the POST method?
- Post is safer then Get method.
- Post requests are not stored in browser's history.
- Post requests cannot be bookmarked.
- Post request have no restriction on data length.
- Post exposes the data in the URL.
Which namespace would be used to create an ASP.NET application with Microsoft SQL Server as the database?
- System.Data.Common
- System.Data.SQLServer
- System.Data.SQLClient
- System.Data.OleDb
- System.Data.ADO
Which of the following statements is FALSE with reference to ASP.NET configuration system?
- Configuration information is stored in XML-based text files.
- It is extensible.
- A web application can have only one web.config file.
- The user cannot access a web.config file directly.
- Changes in the configuration files are updated automatically.
Which method of the Session Object is used to destroy a user session?
- TimeOut
- Destroy
- Abandon
- Remove
- Session.Contents.Remove
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?
- MSIL
- CLR
- JIT
- DLL
- CTS
Which is the preferred protocol to call a web service?
- HTTP
- SMTP
- FTP
- SOAP
- WSDL
Which of the following is a valid pair of wild card characters in web.config?
- * and /
- / and ?
- * and ?
- ? and _ (underscore)
- * and _(underscore)
Which namespace contains classes that define culture-related information?
- System.Dynamic
- System.IdentityModel
- System.Globalization
- System.EnterpriseServices
- System.Media
Which data control is used to display one record at a time?
- DetailsView
- GridView
- Repeater
- DataList
- ListBox
Which of the following statements about MVC is FALSE?
- It separates the modelling of the domain into three separate classes.
- It is a design pattern for the separation of user interface logic from business logic.
- It increases the complexity of the solution.
- The controller part is responsible for displaying all or a portion of the data to the user.
- The MVC separation also simplifies group development.