ASP.net Flashcards

1
Q

In Asp.net , Web.config file is used ?
1. Configures the time that the server-side code behind module is called
2. To store the global information and variable definitions for the application
3. To configure the web server
4. To configure the web browser

A

To store the global information and variable definitions for the application

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Which file you should write for the connection string so that you can access it in all the web pages for the same application?
1.In App_Data folder
2.In Web.config file
3.In MasterPage file
4.None of the above

A

In Web.config file

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is the name of the Page object’s property that determines if a Web page is being requested without data being submitted to the server?
1.IsCallback
2.IsReusable
3.IsValid
4.IsPostBack

A

IsPostBack

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How many types of authentication ASP.NET supports?
1.Windows Authentication.
2.NET Passport Authentication.
3.Forms Authentication.
4.All of the above.

A

All of the above.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Which of the following is not an ASP.NET page event?
1. Init
2. Load
3. Import
4. None of the above.

A

Import

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Which attribute is necessary for HTML control to work as a HTML server control?
1. runat=”server”
2. runat=”web-server”
3. ID=”server”
4. ID=”web-server”

A

runat=”server”

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Which validation control in ASP.NET can be used to determine if data that is entered into a TextBox control is of type Currency?
1. ValidationSummary
2. CompareValidator
3. RequiredFieldValidator
4. None of the above.

A

CompareValidator

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is AJAX?

A

Stands for Asynchronous Javascript and XML

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Which of the following is not an attribute of the HTML <form> tag?
1. Action
2. Method
3. name
4. url

A

URL

https://www.w3schools.com/html/html_forms_attributes.asp

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What process handles requests to ASP.NET resources

A

A worker process called aspnet_wp.exe handles requests for ASP.NET resources

How well did you know this?
1
Not at all
2
3
4
5
Perfectly