Learn ASP MCQs
Prepare ASP MCQs (Multiple choice Questions) for exam and job interviews.
What does ASP stand for?
1) Active Server Pages
2) Active Script Pages
3) Advanced Server Pages
4) Application Server Pages
Answer : Active Server Pages
Which language is primarily used for server-side scripting in ASP?
1) VBScript
2) JavaScript
3) Python
4) C#
Answer : VBScript
What is the purpose of the Response.Write method in ASP?
1) To write output to the client
2) To send a response header
3) To redirect to another page
4) To set a cookie
Answer : To write output to the client
Which of the following is used to store user session data in ASP?
1) session object
2) Request object
3) Response object
4) Application object
Answer : session object
What is the default file extension for ASP files?
1) .asp
2) .aspx
3) .html
4) .php
Answer : .asp
Which of the following is true about ASP?
1) It runs on the server
2) It runs on the client
3) It is only for HTML pages
4) It requires a special browser
Answer : It runs on the server
Which method is used to redirect a user to another page in ASP?
1) Response.Redirect
2) Response.SendRedirect
3) Response.GoTo
4) Response.MoveTo
Answer : Response.Redirect
What is the purpose of the Request object in ASP?
1) To retrieve data sent by the client
2) To send data to the client
3) To manage sessions
4) To execute database queries
Answer : To retrieve data sent by the client
How can you declare a variable in VBScript?
1) Dim variableName
2) Var variableName
3) Dim: variableName
4) Variable variableName
Answer : Dim variableName
Which of the following objects is used to access application-level data in ASP?
1) Application object
2) session object
3) Request object
4) Response object
Answer : Application object