Sei sulla pagina 1di 1

AIT MCQ

1A. The rule below in a style sheet can apply to which of the following?
A) Any tag with id as heading1
. heading1
B) Heading tag
{
C) Any tag
font-weight:bold;
D) Any tag with skinID as heading1
color : green;
font-size:large;
}
2A. If we are using the SQL Server Provider for connecting to a database, which of the following
ADO.NET namespaces need to be imported?
i.
System.DataClient
iv.
System.Data.SqlTypes
ii.
System.Data.SqlClient
iv.
System.Data
iii.
System.DataTypes
A)
v and i only
B) ii and v only
C) ii, iv and v only
D) i and iv only
3A. Which of the following single value data binding expressions is error prone?
A) <%# GetStudentName (ID) %>
[GetStudentName(ID) returns string]
B) <%# Birthday + Bash %>
C) <%# 4 + (5*6) %>
D) <%# StudentCount %>
[StudentCount is assigned value in code behind file]
4A. Which of the following statements about the DirectoryInfo and FileInfo classes is false?
A) Both the classes offer instance members.
B) Both the classes mirror the functionality in the Directory and File Classes.
C) Both the classes perform a security check every time you invoke an instance method.
D) Both the classes dont need the user to specify the name of the directory or file each time you
call a method.
5A. Which of the following is not a reason for using a DataSet to hold onto data in memory?
A) You want to keep the database connection open for a long time so that you can do something
time consuming with the data.
B) You want to navigate backward and forward through your data while you are processing it.
C) You want to save the data to a file for later use.
D) You want to navigate from one table to another and also define relationships that allow you to
browse through them more efficiently.

Scheme:
1A. C - Any tag.
2A. B ii and v only.
3A. D - <%# StudentCount %>.
4A. C - Both the classes perform a security check every time you invoke an instance method.
5A. A - You want to keep the database connection open for a long time so that you can do something
time consuming with the data.

Potrebbero piacerti anche