ASP.net MCQs

133 MCQs  — Computer Programming MCQs  (Page 2 of 14)

How do we create a FileSystemObject ?
A. Server.createobject(“scripting.filesystemobject”)
B. Create object:”scripting.filesystemobject”
C. Server.createobject(“filesystemobject”)
D. Create(“filesystemobject”)
Which one of the following namespaces contains the definition for IdbConnection ?
A. System.data.interfaces
B. System.data.connection
C. System.data.common
D. System.data
Why is Global.asax is used ?
A. Implement application and session level events
B. Declare global variables
C. No use
D. All of the above
Which of the following control is used to validate that two fields are equal ?
A. Equals() method
B. Regularexpressionvalidator
C. Requiredfieldvalidator
D. Comparevalidator
Which of the following represents the best use of the Table, TableRow, and Table-Cell controls ?
A. To create a customized control that needs to display data in a tabular fashion
B. To create and populate a table in design view
C. To create and populate a table with images
D. To display a tabular result set
Which of the following denote ways to manage state in an ASP.Net Application ?
A. Application objects
B. Session objects
C. Viewstate
D. All of the above