Loading...
QUIZ

Certification Test

 
Que No. 1 ) Which of the following is a valid directive in an ASP.NET page?

A.) asp:variable
B.) <%@ Page Language="C#" %>
C.) html:doctype
D.) asp:control


Que No. 2 ) What is the main advantage of using ASP.NET Core over traditional ASP.NET?

A.) Better support for server controls
B.) Cross-platform compatibility
C.) Easier integration with legacy systems
D.) Enhanced visual design capabilities


Que No. 3 ) Which of the following is NOT a valid data source control in ASP.NET?

A.) SqlDataSource
B.) ObjectDataSource
C.) XmlDataSource
D.) HttpRequestSource


Que No. 4 ) What is the purpose of the compilation element in the Web.config file?

A.) Specifying authentication settings
B.) Defining custom error pages
C.) Configuring compilation settings for ASP.NET pages
D.) Managing session state


Que No. 5 ) What is the purpose of the RouteConfig.cs file in an ASP.NET MVC application?

A.) Defining custom error pages
B.) Configuring routing rules for URLs
C.) Storing user authentication data
D.) Managing database connections


Que No. 6 ) Which of the following is a valid way to store sensitive data like connection strings in an ASP.NET application?

A.) Hardcoding them in the code
B.) Storing them in plain text files
C.) Encrypting them in the Web.config file
D.) Storing them in the App_Code folder


Que No. 7 ) What is the purpose of the DataPager control in ASP.NET?

A.) To display a grid of data
B.) To perform data-binding operations
C.) To paginate data displayed in a control like GridView
D.) To manage user authentication


Que No. 8 ) Which of the following is a valid ASP.NET event handler?

A.) Page_TitleChanged
B.) Button_Clicked
C.) Page_Load
D.) Form_Submit


Que No. 9 ) What is the purpose of the "using" directive in C# code within an ASP.NET page?

A.) Declaring namespaces to be used in the page
B.) Defining variables for the entire page
C.) Managing session state
D.) Specifying error handling settings


Que No. 10 ) Which control is used to display a message box to the user in an ASP.NET web application?

A.) MessageBox
B.) PopupControl
C.) AlertControl
D.) JavaScript is used for this purpose