ASP MCQs

ASP MCQs

Answer these 20 ASP MCQs and assess your grip on the subject of ASP.
Scroll below and get started!

1: What is the correct way to include the file "time.inc"?

A.  

B.  

C.   <% #include file='time.inc' %>

D.   <% include file='time.inc' %>

2: Which DLL translate XML to SQL in IIS?

A.   LISXML.dll

B.   SQLXML.dll

C.   SQLIIS.dll

D.   SQLISAPI.dll

3: You add a PrintPreviewDialog ppd1 to your Windows Form, in order for your users to preview the document which they want to print. Which property of ppd1 should you set in order to specify the document to preview?

A.   Document

B.   PrintDocument

C.   ActiveDocument

D.   PreviewDocument

4: Where does ASP code execute?

A.   On the web server

B.   On any machine it wants to

C.   Reportedly somewhere in Washington State

D.   In the client's browser

5: How can you script your ASP code in JavaScript?

A.   Start the document with: <% language='javascript' %;>

B.   End the document with: <% language='javascript' %;>

C.   JavaScript is the default scripting language

D.   Start the document with: <%@ language='javascript' %;>

6: How do you get information from a form that is submitted using the

A.   Response.write

B.   Request.QueryString

C.   Request.Form

D.   Response.writeln

7: How do you write

A.   'Hello World'

B.   Response.write('Hello World')

C.   System.ou.println('Hello World')

D.   Document.write('Hello World')

8: ASP comes with a standard component that displays a different advertisement each time a user enters or refreshes a page, what is the name of this component?

A.   AdRotator

B.   Advertise

C.   RotateAds

D.   Advertisement

9: Which of the following is used to send email message from my ASP.NET page?

A.   Both System.Web.Mail.MailMessage and System.Web.Mail.SmtpMail

B.   None of these

C.   System.Web.Mail.SmtpMail

D.   System.Web.Mail.MailMessage

10: To add a custom control to a Web form we have to register with.

A.   Name space of the dll that is referenced

B.   TagPrefix

C.   Assemblyname

D.   All of these

11: If one has two different web form controls in a application and if one wanted to know whether the values in the above two different web form control match what control must be used?

A.   CompareValidator

B.   GridView

C.   Listview

D.   DataList

12: The Asp.net server control, which provides an alternative way of displaying text on web page, is

A.   < asp:label >

B.   < asp:button >

C.   < asp:listitem >

13: The first event to be triggered in an aspx page is.

A.   Page_click()

B.   Page_Load()

C.   Page_Init()

14: Custom Controls are derived from which of the classes

A.   System.Web.UI.Webcontrol

B.   System.Web.UI.Customcontrol

C.   System.Web.UI.Customcontrols.Webcontrol

15: ASP.NET is a _________________________ ?

A.   Server Side Scripting Technology

B.   Programming language

C.   Database Programming Language same as SQL.

D.   Client Side Scripting Technology

16: Which of these objects is NOT an ASP component

A.   Counter

B.   File Access

C.   AdRotator

D.   LinkCounter

17: Which set of acronyms is not associated with ASP?

A.   ADO, RDS, DAO, ODBC

B.   CDO, CDONTS

C.   BÖC, OU812, GNR, BTO

D.   IIS, PWS, MMC

18: Which method do you invoke on the DataAdapter control to load your generated dataset with data?

A.   Load ( )

B.   DataList

C.   DataBind

D.   Fill( )

19: WSDL stands for _________________ ?

A.   Web Services Descriptor Language

B.   Web Server Descriptor Language

C.   Web Server Description Language

D.   Web Services Description Language

20: How do you get information from a form that is submitted using the 'get' method?

A.   Request.QueryString

B.   Response.write

C.   Response.writeln

D.   Request.Form