0% found this document useful (0 votes)
42 views561 pages

Dotnet Summative

The document contains questions and answers related to SQL Server concepts like security model components, principals, securables, permissions, authentication, and data types. The security model in SQL Server 2008 is based on principals, securables, and permissions. Principals can be Windows-level, database-level, or SQL Server-level and include users, roles, and logins. Securables have scopes like server, database, and schema. Permissions control what principals can do with securables.

Uploaded by

Bavithra Perumal
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
42 views561 pages

Dotnet Summative

The document contains questions and answers related to SQL Server concepts like security model components, principals, securables, permissions, authentication, and data types. The security model in SQL Server 2008 is based on principals, securables, and permissions. Principals can be Windows-level, database-level, or SQL Server-level and include users, roles, and logins. Securables have scopes like server, database, and schema. Permissions control what principals can do with securables.

Uploaded by

Bavithra Perumal
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
You are on page 1/ 561

Question Text Choice1 Choice2

1&2&3 1&3&4
SQL Server 2008 Security model is
based on three categories that
separate the basic elements of
security, which among the following
are those?_x000D_
1.Principals_x000D_
2.Constraints_x000D_
3.Securables_x000D_
4.Permissions
1&2&3 2&3&4
Which statements are true about
Principals?_x000D_
1.Principals are entities that can
configure SQL Server
permissions_x000D_
2.Principals are entities that can
request SQL Server resources_x000D_
3.Principals can be arranged in a
hierarchy_x000D_
4.The scope of influence of a principal
depends on the scope of the
definition of the principal_x000D_
5.The scope of influence of a principal
depends on the size of the database
Choose the different classes which the 1&4 2&3&4
SQL Server divides principals into?
_x000D_
1.Windows-level principal_x000D_
2.Field-level principal_x000D_
3.Database-level principal_x000D_
4.SQL Server-level principal
2&4 2&3
Which are the different types of
Windows-level principals?_x000D_
1.Windows Authorization_x000D_
2.Windows domain login_x000D_
3.Windows database login_x000D_
4.Windows local login
1&4&5 2&3&5
How are Database-level principals
categorized?_x000D_
1.Database administrator_x000D_
2.Database User_x000D_
3.Database Role_x000D_
4.Windows Role_x000D_
5.Application Role
1&3&4 2&4
Which among the following are
different Securable scopes?_x000D_
1.Server_x000D_
2.Client_x000D_
3.Database_x000D_
4.Schema
Which of the securables are 1&2&3 3&4&5
contained in the Database scope?
_x000D_
1.Login_x000D_
2.User_x000D_
3.Role_x000D_
4.Assembly_x000D_
5.End Point
2&4&5 1&3&4

What are the advantages of using SQL


Server Authentication?_x000D_
1.Allows SQL Server to support Web-
based applications where users create
their own identities_x000D_
2.Allows software developers to
distribute their applications by using a
complex permission hierarchy based
on known, preset SQL Server
logins_x000D_
3.Can also use Kerberos Security
protocol_x000D_
4.Users can connect from unknown or
untrusted domains_x000D_
5.Additional password policies offered
by Windows can be inherited for SQL
Server logins
3&5 2&4
Which all permission types are
applicable to Functions?_x000D_
1.SELECT_x000D_
2.INSERT_x000D_
3.UPDATE_x000D_
4.DELETE_x000D_
5.EXECUTE (scalar)
Which are the principals included in 2&4 1&4&5
the Security context?_x000D_
1.The login_x000D_
2.The user_x000D_
3.Authentication
memberships_x000D_
4.Role memberships_x000D_
5.Role aggregation
What will be the output of the 2&3 1&4
following query?_x000D_
USE SalesSystem;_x000D_
GO_x000D_
SELECT
PATINDEX('%ia',Country)_x000D_
FROM Production.Customer_x000D_
GO_x000D_
1.The query returns those rows in the
table in which the pattern was
found_x000D_
2.The query returns all the columns
for those rows in the table in which
the pattern was found_x000D_
3.The query returns only those
columns in each row in the table in
which the pattern was found_x000D_
4.The query returns all rows in the
table and reports nonzero values for
those rows in which the pattern was
found _x000D_
5.The query returns all rows in the
table and reports zero values for all
rows in which the pattern was not
found
On what conditions can you perform 2&3&5 1&3&5
concurrent online index operations on
the same table?_x000D_
1.Creating multiple clustered
indexes_x000D_
2.Creating multiple nonclustered
indexes_x000D_
3.Reorganizing different indexes on
the same table_x000D_
4.Reorganizing unique indexes on
multiple tables_x000D_
5.Reorganizing different indexes while
rebuilding nonoverlapping indexes on
the same table

Which statements are true w.r.t. 1&2&5 2&4&5


Indexing about Large Object data
types?_x000D_
1.Can be an index key column only if a
primary key is mentioned_x000D_
2.Cannot be an index key
column_x000D_
3.Can participate as nonkey columns
in a clustered index except for image,
ntext, and text_x000D_
4.Can participate as nonkey columns
in a nonclustered index except for
image, ntext, and text_x000D_
5.Can participate if part of a
computed column expression
Can you convert a Nonpartitioned only 1 1&2
Table to a Partitioned Table? If yes,
how?_x000D_
1.By creating a partitioned non-
clustered index on the table by using
the CREATE INDEX statement_x000D_
2.By creating a partitioned clustered
index on the table by using the
CREATE INDEX statement_x000D_
3.By using the ALTER TABLE SWITCH
statement to switch the data of the
table to a range-partitioned table that
has only one partition_x000D_
4.By using the ALTER TABLE SWITCH
statement to switch the data of the
table to a range-indexed table that
has a unique partition_x000D_
5.You cannot convert a
Nonpartitioned Table to a Partitioned
Table

Where all can Aggregate functions be 2&4&5 1&2&4


used as Expressions?_x000D_
1.The select list of a SELECT statement
(either a subquery or an outer
query)_x000D_
2.A COMPUTE or COMPUTE BY
clause_x000D_
3.A GROUP BY clause_x000D_
4.A HAVING clause_x000D_
5.An OVER clause
Which statements are true about 3&5 1&4
VARP function?_x000D_
1.Returns the statistical variance of all
values in the specified
expression_x000D_
2.Returns the statistical variance for
the population of all values in the
specified expression_x000D_
3.VARP can be used with Var columns
only_x000D_
4.VARP can be used with numeric
columns only_x000D_
5.Null values are treated as zeros or
blanks depending on the type

Which statements are true about the 1&3&4 1&2&4


GROUPING function?_x000D_
1.It is an aggregate function that
causes an additional column to be
output with a value of 1 when the row
is added by either the CUBE or
ROLLUP operator_x000D_
2.It is an aggregate function that
causes an additional column to be
output with a value of 0 (True) when
the row is added by either the CUBE
or ROLLUP operator_x000D_
3.It is an aggregate function that
causes an additional column to be
output with a value of 0 when the row
is not the result of CUBE or ROLLUP
operator_x000D_
4.It is an aggregate function that
causes an additional column to be
output with value equal to the
number of rows added by either the
CUBE or ROLLUP operator_x000D_
5.Grouping is allowed only in the
select list associated with a GROUP BY
clause that contains either the CUBE
or ROLLUP operator
What does the following code 1&2&4 1&3&5
denote?_x000D_
DECLARE @odetails
orderdetails;_x000D_
SELECT @odetails =
orderdetails::GetFirstItem();_x000D_
PRINT @odetails.ToString();_x000D_
1.It denotes usage of Scope
Resolution operator_x000D_
2.It denotes usage of Compound
operator_x000D_
3.The operator is denoted by a ::
symbol_x000D_
4.The operator provides access to
public non-static members of a
compound data type_x000D_
5.The operator provides access to
static members of a compound data
type_x000D_
4.

Which statements are true about 1&2&4 2&3&4


ROLLBACK TRANSACTION statement?
_x000D_
1.Rolls back an implicit transaction to
the beginning of the transaction, or to
a savepoint inside the
transaction_x000D_
2.Rolls back an explicit transaction to
the beginning of the transaction, or to
a savepoint inside the
transaction_x000D_
3.It caches all data modifications &
then erases from the start of the
transaction or to a savepoint_x000D_
4.It erases all data modifications made
from the start of the transaction or to
a savepoint_x000D_
5.It reverses all the modifications
made before the COMMIT
TRANSACTION statement
Which all statements are true about 2&4 1&2
varchar data type?_x000D_
1.varchar can hold alphanumeric
data_x000D_
2.The storage size of Varchar datatype
is fixed_x000D_
3.Each row can hold different number
of characters up to the max length
defined_x000D_
4.Each row can hold fixed number of
characters as defined by max length

Which statements are true about the 1&2 2&3


max constant in a varchar type?
_x000D_
1.It can be used when the data can
exceed more than 8000
characters_x000D_
2.It can be used to fix the max length
of characters for the entire
column_x000D_
3.It can be used to store large blocks
of text_x000D_
4.It can be used to store large image
types
Which all statements are true about 1&3 2&3
varbinary data type?_x000D_
1.varbinary can hold binary
data_x000D_
2.varbinary can hold character
data_x000D_
3.The stored data can exceed 8,000
bytes_x000D_
4.The value is based on regular
expression logic
Which statements are true for a 3&4&5 1&3&4&5
scenario where a data type is
converted to varbinary?_x000D_
1.When data is converted from a
string data type to a binary or
varbinary data type of unequal length,
SQL Server pads or truncates the data
on the right_x000D_
2.When data is converted from a
string data type to a binary or
varbinary data type of unequal length,
SQL Server pads or truncates the data
on the left_x000D_
3.When data types, except string, are
converted to binary or varbinary, the
data is padded or truncated on the
left_x000D_
4.When data types, except string, are
converted to binary or varbinary, the
data is padded or truncated on the
right_x000D_
5.Padding is achieved by using
hexadecimal zeros

Which statements are true about 2&4&5 1&3&5


sysname?_x000D_
1.sysname is a system-supplied user-
defined data type that is functionally
equivalent to nvarchar(128)_x000D_
2.sysname is a system-supplied user-
defined data type that is functionally
equivalent to nvarchar(256)_x000D_
3.Sysname is not nullable_x000D_
4.Sysname can hold Null & negative
values_x000D_
5.sysname is used to reference
database object names
Which statements are true about 1&3 2&4
Large CLR User defined types?
_x000D_
1.Extend existing SQL Server type
system_x000D_
2.Same as User-defined data
type_x000D_
3.Allow you to store CLR objects in
SQL Server database_x000D_
4.Allow you to store binary data in
SQL Server database
How do aggregate functions work? 1&2&3 2&3&4&5
_x000D_
1.They work only on integer
values_x000D_
2.They ignore null values_x000D_
3.They perform a calculation on a set
of values and return a
single/summarized value_x000D_
4.They are frequently used with the
GROUP BY clause of the SELECT
statement_x000D_
5.They cannot be used with the
GROUP BY clause of the SELECT
statement
How does the ROWCOUNT_BIG 1&2&3 2&3
function work, identify all the
applicable statements?_x000D_
1.Returns the total number of rows in
a table_x000D_
2.Returns the number of rows
affected by the last statement
executed _x000D_
3.The return type of ROWCOUNT_BIG
is bigint_x000D_
4.The return type of ROWCOUNT_BIG
is int
Which statements are true about 2&3 1&4
ranking functions?_x000D_
1.They are deterministic
functions_x000D_
2.They are Nondeterministic
functions_x000D_
3.They return a ranking value for each
row in a partition_x000D_
4.They return a ranking value for each
table in a partition
Which statements are true about 2&4 1&3
DENSE_RANK function?_x000D_
1.Returns the rank of rows within the
partition of a result set, without any
gaps in the ranking_x000D_
2.The rank of a row is one plus the
number of distinct ranks that come
before the row in question_x000D_
3.Returns the rank of each row within
the partition of a result set_x000D_
4.The rank of a row is one plus the
number of ranks that come before the
row in question

Which statements are true about 4&5 2&3&5


RANK function?_x000D_
1.It returns the rank of each row in
the table within the partition of a
database _x000D_
2.The rank of a row is equal to the
number of ranks that come before the
row in question_x000D_
3.The rank of a row is one plus the
number of ranks that come before the
row in question_x000D_
4.The RANK function returns
consecutive integers_x000D_
5.The RANK function does not always
return consecutive integers
3&4 1&2&5

Which statements are applicable to


the GROUPING function?_x000D_
1.It is an aggregate function that
causes an additional column to be
output with a value of 1 when the row
is added by either the CUBE or
ROLLUP operator_x000D_
2.It is an aggregate function that
causes an additional column to be
output with a value of 1 when the row
is not the result of CUBE or ROLLUP
operator_x000D_
3.It is an aggregate function that
causes an additional column to be
output with a value of 0 when the row
is added by either the CUBE or
ROLLUP operator_x000D_
4.It is an aggregate function that
causes an additional column to be
output with a value of 0 when the row
is not the result of CUBE or ROLLUP
operator_x000D_
5.Grouping is allowed only in the
select list associated with a WHERE
clause that contains either the CUBE
or ROLLUP operator
1&2&3&4 2&3&4&5
Which are the different types of built-
in functions that SQL Server 2008
supports?_x000D_
1.Recordset functions_x000D_
2.Rowset functions_x000D_
3.Aggregate functions_x000D_
4.Ranking functions_x000D_
5.Scalar functions
1&3&5 2&3&4
Identify Deterministic functions from
the list:_x000D_
1.ABS_x000D_
2.GETDATE_x000D_
3.DATEADD_x000D_
4.CURRENT_TIMESTAMP_x000D_
5.ISNULL
Where all can aggregate functions be
used as expressions only?_x000D_ 3&4 3&5
1.The select list of a SELECT
statement_x000D_
2.A COMPUTE or COMPUTE BY
clause_x000D_
3.A USING clause_x000D_
4.A HAVING clause_x000D_
5.A ORDER BY clause
3&4 1&2
How are the transaction locks
acquired by a SELECT statement
controlled?_x000D_
1.Controlled by the transaction
concurrency setting for the
connection_x000D_
2.Controlled by the transaction
isolation level setting for the
connection_x000D_
3.Controlled by any locking hints
specified in the WHERE
clause_x000D_
4.Controlled by any locking hints
specified in the FROM clause
1&2&4 2&4&5
Identify Nondeterministic functions
from the list:_x000D_
1.MONTH_x000D_
2.GETDATE_x000D_
3.DAY_x000D_
4.GETUTCDATE_x000D_
5.CURRENT_TIMESTAMP
2&3 1&4
How is the BLOB data used in .NET?
_x000D_
1.Is represented as an array of type
integer_x000D_
2.Is represented as an array of type
byte_x000D_
3.SQLDataReader class is used to read
BLOB data_x000D_
4.DataSet class is used to read BLOB
data
2&4&5 1&3&4
Which statements are true about
large varchar?_x000D_
1.A sql_char cannot contain a large
varchar data type_x000D_
2.A sql_variant cannot contain a large
varchar data type_x000D_
3.Large varchar columns can be
specified as a key column in an
index_x000D_
4.Large varchar columns are the only
columns that can be used as
partitioning key columns_x000D_
5.Large varchar columns cannot be
used as partitioning key columns
1&3&4 2&3

How are BLOB strings & pointers


stored in the row of a table?_x000D_
1.BLOB strings and pointers stored in
the row of a table are treated similarly
to fixed-length strings_x000D_
2.SQL Server uses fixed number of
bytes required to store the string or
the pointer_x000D_
3.Just like fixed-length strings, SQL
Server stores a NULL value as a BLANK
in the relevant column_x000D_
4.BLOB strings and pointers stored in
the row of a table are treated similarly
to variable-length strings_x000D_
5.SQL Server uses only the number of
bytes required to store the string or
the pointer
Which statements are true about Data 1&2&3 2&3
containers?_x000D_
1.Data containers are tables that store
FileStream data in the
Database_x000D_
2.Data containers are NTFS directories
that store FileStream data in the File
system_x000D_
3.Data containers correspond to
special filegroups in the file
system_x000D_
4.Data containers correspond to
special tables in the database
Which statements are true about Data 1&3&4 2&3&4
integrity?_x000D_
1.It refers to each occurrence of a
column having a correct data
value_x000D_
2.It indicates that the relationships
between tables have been corectly
maintained_x000D_
3.The data value must be of right
type_x000D_
4.The data value must be in the
correct domain
1&3 2&3&4
What does Referential integrity
indicate?_x000D_
1.It refers to each occurrence of a
column having a correct data
value_x000D_
2.It indicates that the relationships
between tables have been corectly
maintained_x000D_
3.Data in one table should only point
to existing rows in another table and
not point to rows that do not
exist_x000D_
4.Data in one table should have
multiple fields
3&4 1&2&3

Which statements are applicable to


CHECK constraint?_x000D_
1.Specifies that the column does not
accept NULL values_x000D_
2.Enforces domain integrity by limiting
the values that can be put in a
column_x000D_
3.Specifies a Boolean search condition
that is applied to all values that are
entered for the column_x000D_
4.Enforces the uniqueness of the
values in a set of columns
1&2&4 3&5
Which statements are true about
Computed columns?_x000D_
1.By default, computed columns
are not physically stored in the
table_x000D_
2.Values are retrieved from the
internal database cache when they
are referenced in a query_x000D_
3.Values are recalculated every
time they are referenced in a
query_x000D_
4.A computed column once created
cannot be persisted at a later
stage_x000D_
5.The Database Engine uses the
PERSISTED keyword in the
CREATE TABLE to physically store
computed columns in the table
1&3&4 2&3&5
Which are the characteristics of a
FOREIGN KEY constraint?_x000D_
1.It identifies unique values in a
table_x000D_
2.It identifies & enforces relationship
between tables_x000D_
3.A foreign key in one table points to a
candidate key in another
table_x000D_
4.Specifies a Boolean search condition
that is applied to all values that are
entered for the column_x000D_
5.You cannot insert a row with a
foreign key value, except NULL, if
there is no candidate key with that
value_x000D_

1&2&3&4 1&3&5
Which all are the options of ON
DELETE clause of a FOREIGN KEY
constraint?_x000D_
1.CLOSE_x000D_
2.NO ACTION_x000D_
3.CASCADE_x000D_
4.SET NULL_x000D_
5.SET DEFAULT
What all expressions are used to 2&3&4 1&4
create a computed column?_x000D_
1.subquery_x000D_
2.non computed column
name_x000D_
3.Constant_x000D_
4.Function
3&5 1&4
What are the restrictions a sub-query
is subjected to?_x000D_
1.If the WHERE clause of an outer
query includes a column name, it
cannot be join-compatible with the
column in the subquery select
list_x000D_
2.If the WHERE clause of an outer
query includes a column name, it
must be join-compatible with the
column in the subquery select
list_x000D_
3.The DISTINCT keyword cannot be
used with subqueries that include
GROUP BY_x000D_
4.The DISTINCT keyword cannot be
used with subqueries that include
ORDER BY_x000D_
5.ORDER BY can only be specified
when TOP is also specified
What all components can a subquery 1&2&4 1&2&5
nested in the outer SELECT statement
have?_x000D_
1.A regular SELECT query including the
regular select list
components_x000D_
2.A regular FROM clause including one
or more table or view names_x000D_
3.A mandatory WHERE clause_x000D_
4.A mandatory GROUP BY
clause_x000D_
5.A optional HAVING clause
2&5 1&3

Please identify the restrictions on


Scalar subqueries:_x000D_
1.Scalar subqueries can’t be used for
CASE statements_x000D_
2.Scalar subqueries can’t be used for
Default values for columns _x000D_
3.Scalar subqueries can’t be used for
RETURNING clauses _x000D_
4.Scalar subqueries can’t be used for
ORDER BY clauses_x000D_
5.Scalar subqueries can’t be used for
GROUP BY clauses
Which all statements are true about 1&3&4 2&5
Nested sub queries?_x000D_
1.A subquery can be nested inside the
WHERE or HAVING clause of an outer
SELECT, INSERT, UPDATE, or DELETE
statement_x000D_
2.A subquery cannot be nested inside
another subquery_x000D_
3.A subquery can be nested inside
another subquery_x000D_
4.Upto 32 levels of nesting is
possible_x000D_
5.Upto 1 level of nesting is possible
What statements are true about a 3&4 1&4
Correlated Sub query?_x000D_
1.A correlated subquery contains
cross-references to the parent query
that can force the execution of the
parent query each time the sub query
retrieves a new row_x000D_
2.A correlated subquery contains
cross-references to the parent query
that can force the execution of the
subquery each time the parent
retrieves a new row_x000D_
3.For each record fetched in outer
query corresponding matching
records are fetched in sub-query
because of join condition within inner
sub-query_x000D_
4.For each record in the sub-query
there are multiple matching records in
the outer query because of join
condition in the outer query

What all tasks can Scalar queries be 2&4&5 1&3&5


used for?_x000D_
1.To establish an implicit inner
join_x000D_
2.To remove an outer join_x000D_
3.To create computed columns from
multiple tables_x000D_
4.To aggregate from multiple
tables_x000D_
5.To insert into tables based on values
from other tables
Which are the basic types of a sub 2&3&5 1&4&5
query?_x000D_
1.Those that operate on lists
introduced with IN_x000D_
2.Those that a comparison operator
modified by ALL or NOT_x000D_
3.Those that are introduced with an
unmodified relational operator and
must return a computed
value_x000D_
4.Those that are introduced with an
unmodified comparison operator and
must return a single value_x000D_
5.Those that are existence tests
introduced with EXISTS

What is the difference between 3&5 1&4&5


corelated sub query & nested query?
_x000D_
1.In nested query the inner query is
evaluated only once and from that
result outer query is
evaluated_x000D_
2.In co-related sub query the inner
query is evaluated only once and from
that result outer query is
evaluated_x000D_
3.In co-related sub query the inner
query is evaluated for multiple times
for getting one row of that outer
query_x000D_
4.In nested query the inner query is
evaluated for multiple times for
getting one row of that outer
query_x000D_
5.Nested query contains a reference
to the inner query row
How does a subquery with EXISTS 1&2&4 2&3&4
work?_x000D_
1.The subquery functions as an
existence test_x000D_
2.The WHERE clause of the outer
query tests whether data exists in the
subquery for each row of the outer
query_x000D_
3.The subquery returns a list of rows
that match the criteria_x000D_
4.The subquery returns a value of
TRUE or FALSE

Which statements are true about 3&4 2&3


CROSS APPLY operator?_x000D_
1.CROSS APPLY operator is a
mechanism to allow a developer to
correlate a table valued function to
another table_x000D_
2.CROSS APPLY operator is a
mechanism to allow a developer to
correlate a table valued function to a
stored procedure of another
database_x000D_
3.CROSS APPLY returns only rows
from the outer table that produce a
result set from the table-valued
function_x000D_
4.CROSS APPLY returns both rows that
produce a result set, and rows that do
not, with NULL values in the columns
produced by the table-valued function
How are Null values handled in Joins? 1&3 2&4&5
_x000D_
1.When there are null values in the
columns of the tables being joined,
null value of the right table is matched
with the null value of the left
table_x000D_
2.When there are null values in the
columns of the tables being joined,
the null values do not match each
other_x000D_
3.The presence of null values in a
column from one of the tables being
joined can be returned only by using
an inner join_x000D_
4.The presence of null values in a
column from one of the tables being
joined can be returned only by using
an outer join_x000D_
5.When null values are present in data
being joined, it is usually preferable to
omit them from the results by using a
regular join

Identify the difference between Inner 1&3&4 2&4


Joins & Outer Joins_x000D_
1.Inner joins can be specified in the
FROM clause only_x000D_
2.Inner joins can be specified in either
the FROM or WHERE clauses_x000D_
3.Outer joins can be specified in the
FROM clause only_x000D_
4.Outer joins can be specified in either
the FROM or WHERE clauses
Which statements are true about data 2&3 1&4
types ntext, text or image with
respect to Joins?_x000D_
1.Tables can be joined directly on
ntext, text, or image columns by using
the explicit assignment
operator_x000D_
2.Tables cannot be joined directly on
ntext, text, or image columns_x000D_
3.Tables can be joined on ntext, text,
or image columns by using SUBSTRING
Function_x000D_
4.Tables can be joined on ntext, text,
or image columns by using STR
Function

Identify the statements that are 1&2&4 1&3


applicable to Three table
joins_x000D_
1.First two tables have to be used to
bridge to the third table_x000D_
2.Only one table can be used to bridge
from one of the other tables to the
third table_x000D_
3.At least one column from the middle
table have to be referenced in the
select list_x000D_
4.None of the columns from the
middle table have to be referenced in
the select list
Which statements are true about Self 3&4 3&5
Join?_x000D_
1.Self-join should be used when you
want to create a result set that joins
records from two tables_x000D_
2.Self-join should be used when you
want to create a result set that joins
records in a table with other records
in the same table_x000D_
3.To list a table two times in the same
query, you must provide a table alias
for at least one of instance of the
table name_x000D_
4.The table alias helps the query
processor determine which rows
should be displayed from the right
table & which from the left version of
the table_x000D_
5.The table alias helps the query
processor determine whether
columns should present data from the
right or left version of the table

Which statements are true about 1&4 1&3


APPLY operator?_x000D_
1.The APPLY operator allows you to
join two table expressions_x000D_
2.The APPLY operator allows you to
join two columns from the same
table_x000D_
3.The right table expression is
processed every time for each row
from the left table expression_x000D_
4.The left table expression is
processed every time for each row
from the right table expression
Which statements are true about Join 2&4 1&3&5
conditions?_x000D_
1.Joins can be specified only in the
FROM clause_x000D_
2.Joins can be specified only in the
WHERE clause_x000D_
3.Joins can be specified in either the
FROM or WHERE clauses_x000D_
4.Specifying the join conditions in the
FROM clause helps separate them
from any other search conditions that
may be specified in a WHERE clause
_x000D_
& is the recommended method for
specifying joins_x000D_
5.Specifying the join conditions in the
WHERE clause helps separate them
from any other search conditions that
may be specified in a FROM clause
_x000D_
& is the recommended method for
specifying joins
What is your observation on the 1&3 2&4
following code?_x000D_
USE Inventory;_x000D_
GO_x000D_
SELECT p.Name,
pr.ProductReviewID_x000D_
FROM Production.Product p_x000D_
WHERE LEFT OUTER JOIN
Production.ProductReview pr_x000D_
ON p.ProductID =
pr.ProductID_x000D_
_x000D_
1.In the following code a FULL JOIN in
the form of LEFT OUTER JOIN is used
in the WHERE clause_x000D_
2.In the following code LEFT OUTER
JOIN is used in the WHERE
clause_x000D_
3.There will be an error as an INNER
JOIN will be required in the FROM
clause_x000D_
4.There will be an error as LEFT
OUTER JOIN cannot be used in a
WHERE clause

Which statements are true about 1&3 2&4


check constraint?_x000D_
1.A Check constraint Is used to limit
the value that can be placed in a
column_x000D_
2.A Check constraint Is used to de-
limit the value that can be placed in a
column_x000D_
3.Check constraint used to enforce
the domain integrity_x000D_
4.Check constraint used to enforce
the entity integrity
Which statements are true about Not 3&4 1&3
Null constraint?_x000D_
1.A not null constraint enforces that
the column will accept the null
values._x000D_
2.A not null constraint enforces that
the column will not accept the null
values._x000D_
3.Not Null constraint used to enforce
the referential integrity_x000D_
4.Not Null constraint used to enforce
the domain integrity

Which statements are true in 2&3 1&2


difference between primary key and
unique key?_x000D_
1.Primary Key is also a unique key
internally, but it cannot allow
null_x000D_
2.Primary Key is also a unique key
internally, but it can allow
null_x000D_
3.Unique key on the other hand
allow a single null and a multiple
null in a column_x000D_
4.Unique key on the other hand
allow a single null but not multiple
Which statements are true full outer 3&4 2&4
joins?_x000D_
1.The FULL JOIN keyword returns
all the rows from the left table, and
all the rows from the right
table ._x000D_
2.There are rows that do have
matches, those rows will be listed
as well._x000D_
3.There are rows that do not have
matches, those rows will be listed
as well._x000D_
4.The FULL JOIN keyword not
returns the rows from the left
table, and all the rows from the
right table .
Which statements are true right joins? 2&3 1&3
_x000D_
1.The RIGHT JOIN keyword returns all
rows from the Right table , even if
there are no matches in the Left
table ._x000D_
2.The RIGHT JOIN keyword returns all
rows from the Right table , even if
there are matches in the Left
table ._x000D_
3.It is the opposite of Left Outer
join. _x000D_
4.It is the opposite of full Outer join.

1&2 2&3
Which statements are true about
default constraint?_x000D_
1.A Default definition is used to add
the values into the columns when
values are omitted._x000D_
2.The default values must be
compatible with the data type of the
column to which the default
applies._x000D_
3.The default values must be non
compatible with the data type of the
column to which the default
applies._x000D_
4.A Default definition is used to add
the values into the columns when
values are not omitted.
The INNER JOIN The INNER JOIN
keyword return rows keyword return
when there is at least all rows.
one match in both
tables.
Which statements are true about
inner joins?
SELECT * FROM SELECT (list of
table_name WHERE columns ) FROM
(search-condition) table_name
GROUP BY (group by WHERE (search-
expression) condition)
HAVING(condition) HAVING(condition
ORDER BY ) GROUP BY
(ASC/DESC) (group by
expression)
ORDER BY
(ASC/DESC)
Which one is the correct query
regarding SQL –select Statements?
Sort query result by Specifies a search
one or more columns condition for the
group by column

INTO statement in the SELECT CLAUSE


will _____________.
1&2 1&2&4

Which is/are the


statement/statements true about the
TOP Clause?_x000D_
1. The TOP expression can be applied
in select ,insert ,update and delete
statements_x000D_
2.The WHERE clause of the outer
query tests whether data exists in the
subquery for each row of the outer
query_x000D_
3.The subquery returns a list of rows
that match the criteria_x000D_
4.The subquery returns a value of
TRUE or FALSE
1&4 1&2

Which statements are true about


CROSS APPLY operator?_x000D_
1.CROSS APPLY operator is a
mechanism to allow a developer to
correlate a table valued function to
another table_x000D_
2. The set of rows can be either a
number or percentage and decimal
value_x000D_
3.Specifies that only the last set of
rows will be returned from query
result_x000D_
4.TOP clause cannot be apply with the
variable
3&5 1&2&4

How are Null values handled in Joins


sql server 2008?_x000D_
1.When there are null values in the
columns of the tables being joined,
null value of the right table is matched
with the null value of the left
table_x000D_
2.When there are null values in the
columns of the tables being joined,
the null values do not match each
other_x000D_
3.The presence of null values in a
column from one of the tables being
joined can be returned only by using
an inner join_x000D_
4.The presence of null values in a
column from one of the tables being
joined can be returned only by using
an outer join_x000D_
5.When null values are present in data
being joined, it is usually preferable to
omit them from the results by using a
regular join
2&4 1&3

Identify the difference between Inner


Joins & Outer Joins._x000D_
1.Inner joins can be specified in the
FROM clause only_x000D_
2.Inner joins can be specified in either
the FROM or WHERE clauses_x000D_
3.Outer joins can be specified in the
FROM clause only_x000D_
4.Outer joins can be specified in the
group by clause only
2&3 1&4
Which statements are true about data
types ntext, text or image with
respect to Joins?_x000D_
1.Tables cannot be joined directly on
ntext, text, or image columns by using
the implicit assignment
operator_x000D_
2.Tables cannot be joined directly on
ntext, text, or image columns_x000D_
3.Tables can be joined on ntext, text,
or image columns by using SUBSTRING
Function_x000D_
4.Tables can be joined on ntext, text,
or image columns by using STR
Function
Which statements are true about 2&3&4 1&2&3&4
Computed columns?_x000D_
1.By default, computed columns are
not physically stored in the
table_x000D_
2.Values are retrieved from the
internal database cache when they
are referenced in a query_x000D_
3.Values are recalculated every time
they are referenced in a
query_x000D_
4.A computed column once created
cannot be persisted at a later
stage_x000D_
5.The Database Engine uses the
PERSISTED keyword in the CREATE
TABLE to physically store computed
columns in the table
2&3 3&4
Which are the different types of file
groups?_x000D_
1.Secondary_x000D_
2.Primary_x000D_
3.Use-defined_x000D_
4.Hidden
1&3&4 only 4
SQL Server consists of which of the
following three types of files?_x000D_
1.Primary data files_x000D_
2.Secondary data files_x000D_
3.Hidden files_x000D_
4.Log files
1&2&4 2&4
Which of the following two are name
types of SQL Server files ?_x000D_
1.physical_file_name_x000D_
2.logical_file_name_x000D_
3.primary_file_name_x000D_
4.os_file_name
2&3&4 1&3&4

What are the restrictions related to


the database file creation?_x000D_
1.Database file name should not be
more than 8 characters_x000D_
2.Database file name should be
unique_x000D_
3.The file must reside on one of the
following devices: the local server on
which SQL Server is installed, a
Storage Area Network [SAN], or an
iSCSI-based network_x000D_
4.The path specified must exist on the
drive prior to creating the database
2&3&4 1&3
Which statements are true about
Collation?_x000D_
1.Collation specifies how strings are
sorted and compared_x000D_
2.Collation specifies how integers are
stored_x000D_
3.The selection of collation is language
dependent and addresses differences
in the way characters are
ordered_x000D_
4.The default collation for a database
is based on the server default, which
is set during the installation of SQL
Server
2&4 1&3&4
What is the significance of Recovery
model setting?_x000D_
1.It determines how much data can be
recovered in the event of a media
failure_x000D_
2.It determines the location where the
data should be recovered in the event
of a media failure_x000D_
3.The default recovery is Full, which
provides the greatest level of
recovery_x000D_
4.The default recovery is Partial,
which provides the greatest level of
recovery
3&4&5 1&3
Which are the conditions that should
be in place before you apply a
different collation to a database?
_x000D_
1.You are the only one currently using
the database_x000D_
2.The database is DETACHED so that it
cannot be used by anyone_x000D_
3.No schema-bound object depends
on the collation of the
database_x000D_
4.Object-level integrity does not
depend on the collation of the
database_x000D_
5.Changing the database collation
does not create duplicates among any
system names for the database
objects
Which namespaces may cause the 2&3&5 1&2&3
failure of a database collation change
if duplicate names result from the
changed collation?_x000D_
1.Referential integrity
constraints_x000D_
2.Schema names_x000D_
3.Scalar-type names such as system
and user-defined types_x000D_
4.Index names across multiple
tables_x000D_
5.Full-text catalog names
1&3 2&3

Which are the different methods that


can be used to retrieve individual
database options?_x000D_
1.By using DATABASEPROPERTY
Function_x000D_
2.By using DATABASEPROPERTYEX
Function_x000D_
3.By using sp_dboption system stored
procedure_x000D_
4.By using sp_database system stored
procedure
3&4 2&3&4
For which all conditions will you go for
partitioning a table?_x000D_
1.Table contains large amounts of
data that are used in different
ways_x000D_
2.Database contains large amount of
tables _x000D_
3.Queries or updates are not
performing as intended due to large
data_x000D_
4.If the tables has many columns
How is the data of Partition tables 3&4&5 1&5
managed?_x000D_
1.The data of partitioned tables and
indexes is divided into units that can
be spread across more than one
filegroup in a database_x000D_
2.The data is partitioned horizontally,
so that groups of rows are mapped
into individual partitions_x000D_
3.The data is partitioned vertically, so
that groups of rows are mapped into
individual partitions_x000D_
4.The table or index is treated as a
single logical entity when queries or
updates are performed on the
data_x000D_
5.The table or index is treated as
multiple logical entities when queries
or updates are performed on the data
How is replication affected by 1&3&4 2&4&5
partitioning of tables & indexes?
_x000D_
1.Partitioning cannot be applied in
case of transactional
replication_x000D_
2.The performance of transactional
replication can be optimized through
partitioning by effectively reducing
the amount of data and metadata that
has to be managed by the replication
system_x000D_
3.The performance of merge
replication can be optimized through
partitioning by effectively reducing
the amount of data and metadata that
has to be managed by the replication
system_x000D_
4.Partitioning cannot be applied in
case of merge replication_x000D_
5.Replication supports a maximum of
1024 partitions per table

What are the steps for creating 1&3&5 2&3&4


partition tables & indexes?_x000D_
1.Create a partition function to specify
how a table or index that uses the
function can be partitioned_x000D_
2.Create a partition function to specify
the placement of the partitions of a
partition function on
filegroups_x000D_
3.Create a partition scheme to specify
the placement of the partitions of a
partition function on
filegroups_x000D_
4.Create a partition scheme to specify
how a table or index that uses the
function can be partitioned_x000D_
5.Create a table or index using the
partition scheme
How does partition function work? 4&5 1&3&5
_x000D_
1.A partition function specifies how
the table or index is
partitioned_x000D_
2.The function maps the database into
a set of partitions_x000D_
3.The function maps the domain into
a set of partitions_x000D_
4.To create a partition function, you
must specify the number of partitions,
the partitioning rows & the number
of constraints for each
partition_x000D_
5.To create a partition function, you
must specify the number of partitions,
the partitioning column & the range of
partition column values for each
partition
Which all statements are true about 1&3 2&4
Partition scheme?_x000D_
1.A partition scheme specifies how
the table or index is
partitioned_x000D_
2.A partition scheme maps the
partitions produced by a partition
function to a set of filegroups that you
define_x000D_
3.When you create a partition
scheme, you define the filegroups
where the table partitions are
mapped, based on the parameters of
the partition function_x000D_
4.When you create a partition
scheme, you define the databases
where the table partitions are
mapped, based on the parameters of
the partition function
Which all statements are true about 4&5 1&3&4
partitioning?_x000D_
1.Partitioning enables you to manage
and access subsets of data from large
tables quickly and efficiently_x000D_
2.The integrity of a data collection is
maintained_x000D_
3.The integrity of a data collection is
not automatically maintained but will
have to be handled manually_x000D_
4.Maintenance operations target only
the data that is required, instead of
the whole table hence are more
efficient_x000D_
5.Maintenance operations target the
whole database instead of individual
tables hence are more efficient

Which all statements are applicable to 1&3 1&2&3


System catalogs?_x000D_
1.Provide a set of views that show
metadata that describes the objects in
an instance of SQL Server_x000D_
2.Provide a set of stored procedures
that show metadata that describes
the objects in an instance of SQL
Server_x000D_
3.Provide a mechanism for dynamic
applications to determine the
strucutre & attributes of the objects in
any database that they
connect_x000D_
4.Provide a mechanism for dynamic
applications to analyze data contained
in a particular table of a database
How can SQL Server based 1&2&4 3&5
applications access the information in
system catalogs?_x000D_
1.Using Catalog views_x000D_
2.Using Database views_x000D_
3.Using Information schema
views_x000D_
4.Using OLE DB schema
rowsets_x000D_
5.System stored procedures &
functions
Why are catalog views the preferred 1&2&3&4 1&2&4&5
choice for accessing the information in
system catalogs?_x000D_
1.They provide access to all the
metadata_x000D_
2.The metadata information is
presented in a format that is
independent of any catalog table
implementation_x000D_
3.The metadata information is
presented in a format that is
dependent on system tables, hence is
in a fixed format which is easy to
understand_x000D_
4.They provide the most direct way to
obtain, transform & present
customized forms of the catalog
metadata_x000D_
5.Catalog view names as well as the
names of their columns are
descriptive
What are your observations on the 1&4 2&3&4
following query?_x000D_
SELECT name AS object_name
_x000D_
,SCHEMA_NAME(schema_id) AS
schema_name_x000D_
,type_desc_x000D_
,create_date_x000D_
,modify_date_x000D_
FROM sys.objects_x000D_
WHERE modify_date > GETDATE() -
10_x000D_
ORDER BY modify_date;_x000D_
1.It uses the sys.all_objects catalog
view_x000D_
2.It uses the sys.objects catalog
view_x000D_
3.It returns all database objects that
have been modified in the last 10
days_x000D_
4.It returns all database objects that
have been newly added in the last 10
days
1&4 3&4

Which statements are true about


cursors?_x000D_
1.Opening a cursor on a result set
allows processing the result set one
row at a time_x000D_
2.Opening a cursor on a result set
allows processing the complete result
set _x000D_
3.You cannot assign a cursor to a
variable or parameter_x000D_
4.You can assign a cursor to a variable
or parameter with a cursor data type
1&2 2&3&4

How do cursors extend result


processing?_x000D_
1.By allowing positioning at specific
rows of the result set_x000D_
2.By allowing modification to the
database structure to improve
efficiency_x000D_
3.By retrieving one row or block of
rows from the current position in the
result set_x000D_
4.By supporting data modifications to
the rows at the current position in the
result set
2&3&4 1&4
Which are the two ways of requesting
a cursor?_x000D_
1.Transact-SQL_x000D_
2.Events handling_x000D_
3.Database application programming
interface (API) cursor
functions_x000D_
4.Windows programming interface
(API) cursor functions
SQL Server supports cursor 1&4&5 1&3&4
functionality for which Database APIs?
_x000D_
1.DAO_x000D_
2.ADO_x000D_
3.OLE DB_x000D_
4.ODBC_x000D_
5.RDO
2&4 2&3&4
On what parameters will you choose a
cursor type?_x000D_
1.Size of the result set_x000D_
2.Size of the Database_x000D_
3.Percentage of data needed_x000D_
4.Need for cursor operations_x000D_
5.Level of visibility to data modified by
other users
CLOSE statement on a cursor? 1&2&3 1&2&3&4
_x000D_
1.Closes an open cursor_x000D_
2.Releases current resultset_x000D_
3.Releases cursor locks held on the
rows on which the cursor is
positioned_x000D_
4.Releases the database
connections_x000D_
5.Drops dynamic recordsets
DEALLOCATE statement on a cursor? 3&4 1&2&3
_x000D_
1.It removes a cursor
reference_x000D_
2.It closes the database_x000D_
3.It removes the database
reference_x000D_
4.When the last cursor reference is
deallocated, the data structures
comprising the cursor are released by
Microsoft SQL Server
1&4 2&3
What is the impact of OPEN statement
on the cursor?_x000D_
1.It opens a Database
connection_x000D_
2.It opens a Transact-SQL server
cursor_x000D_
3.It populates the cursor by executing
the Transact-SQL statement specified
on the DECLARE CURSOR or SET
cursor_variable statement_x000D_
4.It populates the recordset by
executing the Transact-SQL statement
2&3&4 only 1

Which statements are true about


@@FETCH_STATUS function?_x000D_
1.It returns the status of the last
cursor FETCH statement issued
against any cursor currently opened
by the connection_x000D_
2.It returns the status of the first
cursor FETCH statement issued
against any cursor currently opened
by the connection_x000D_
3.It is a deterministic function_x000D_
4.It is a nondeterministic function
1&3 2&4
How does ODBC specify the
characteristics of a cursor?_x000D_
1.Setting Cursor Types_x000D_
2.Setting Cursor Attributes_x000D_
3.Setting Cursor Behavior _x000D_
4.Setting Cursor Elements
When using an API server cursor in 1&2&4&5 1&2&3&4
OLE DB, ODBC, and ADO, how are the
functions or methods of the API used?
_x000D_
1.To open a connection_x000D_
2.To set attributes or properties
defining the characteristics of the
cursor the API automatically maps
over each result set_x000D_
3.To execute one or more Transact-
SQL statements_x000D_
4.To use API functions or methods to
fetch the rows in the result
sets_x000D_
5.To handle errors
How will you optimize the 2&3&4 1&3&4
performance of the cursor if there are
multiple rows & columns to be
fetched?_x000D_
1.Use all columns in the Declare
statement_x000D_
2.Use only the required columns in
the Declare statement_x000D_
3.Change your where clause in the
declare statement to only return rows
the cursor needs_x000D_
4.Ensure you have optimal indexes in
place

Identify disadvantages of using 1&2&3&5 2&3&4


cursors._x000D_
1.They consume more
resources_x000D_
2.Performance gets hampered due to
network round-trips if multiple rows
have to be fetched_x000D_
3.Performance gets hampered if only
the required rows & columns are
fetched_x000D_
4.Performance gets hampered if all
the rows & columns are
fetched_x000D_
5.Resources remain unused on the
server if cursors are not closed
properly
What does the LOCAL argument in the 1&3&4 2&3
DECLARE CURSOR statement denote?
_x000D_
1.Specifies that cursor can be
available only in the batch, stored
procedure, or trigger in which the
cursor was created_x000D_
2.Specifies that cursor can be
available to all local resources_x000D_
3.The LOCAL cursor will be implicitly
deallocated when the batch, stored
procedure, or trigger
terminates_x000D_
4.The LOCAL cursor will have to be
explicitly deallocated when the batch,
stored procedure, or trigger
terminates

How do FORWARD_ONLY cursors 2&3 1&4


work?_x000D_
1.Data is fetched in bulk_x000D_
2.Data is fetched sequentially from
the first to the last row_x000D_
3.FETCH NEXT is the only fetch option
supported_x000D_
4.FETCH PREVIOUS is the only fetch
option supported
What all is included in creation of 2&4 1&2&3
Control flow?_x000D_
1.Adding containers that implement
repeating workflows in a package or
divide a control flow into
subsets_x000D_
2.Adding containers that implement
conditional statements_x000D_
3.Adding tasks that support data flow,
prepare data, perform workflow and
business intelligence functions, and
implement script_x000D_
4.Separating containers and tasks into
an ordered control flow by using
precedence constraints_x000D_
5.Connecting containers and tasks
into an ordered control flow by using
precedence constraints

Integration Services includes three 1&2&5 2&3&4


types of containers that you can use in
a control flow, which are they?
_x000D_
1.The DoWhile Loop
container_x000D_
2.The Foreach Loop container_x000D_
3.The For Loop container _x000D_
4.The Sequence container_x000D_
5.The Switch container
What is the significance of precedence 1&2&3 1&2&3&4
constraints?_x000D_
1.Precedence constraints link
executables, containers, and tasks in
packages into a control flow_x000D_
2.A precedence constraint links two
executables: the precedence
executable and the constrained
executable_x000D_
3.The precedence executable runs
before the constrained
executable_x000D_
4.The precedence executable runs
after the constrained executable
Which statements are true about the 1&3&4 1&2&5
expression used in precedence
constraints?_x000D_
1.The expression must evaluate to an
integer_x000D_
2.The expression must evaluate to
true or false_x000D_
3.The expression can use literals,
system & custom variables_x000D_
4.The expression can use stored
procedures_x000D_
5.The expression can use functions &
operators that SSIS grammar provides

What is the significance of Sequence 1&2&3 2&4


Containers? Please choose all the
relevant options_x000D_
1.They define a repeating control flow
in a package_x000D_
2.They define conditions in a
package_x000D_
3.They define a control flow that is a
subset of the package control
flow_x000D_
4.They group the package into
multiple separate control flows, each
containing one or more tasks and
containers that run within the overall
package control flow
What is a stored procedure? Please 2&3&5 1&4&5
select all the relevant options_x000D_
1.A collection of compiled T-SQL
commands that are directly accessible
by SQL Server_x000D_
2.A collection of commands written in
any base .NET language that are
directly accessible by SQL
Server_x000D_
3.Commands placed in a stored
procedure are interpreted one line at
a time during execution_x000D_
4.Commands placed in a stored
procedure are executed as one batch
_x000D_
5.Stored procedures reduce network
traffic

What are the benefits of using a 1&3&5 1&2&4


stored procedure?_x000D_
1.The procedure can reside outside
the SQL Server instance, hence
manageable_x000D_
2.Precompiled execution, hence
faster_x000D_
3.Reduced network traffic_x000D_
4.Efficient reuse of code_x000D_
5.Efficient compilation

How are stored procedures similar to 1&2&3&4 1&4


procedures developed in other
programming languages?_x000D_
1.Accept input parameters and return
multiple values in the form of output
parameters to the calling procedure
or batch_x000D_
2.Contain programming statements
that perform operations in the
database, including calling other
procedures_x000D_
3.Return a status value to a calling
procedure or batch to indicate success
or failure_x000D_
4.Can be interpreted externally
Identify the different types of stored 1&3&4 1&2&4
procedures:_x000D_
1.User-defined stored procedures -
Transact SQL & CLR_x000D_
2.Compiled Stored
Procedures_x000D_
3.Extended Stored
Procedures_x000D_
4.System Stored Procedures
Identify steps in handling errors in a 2&3&4 1&3
stored procedure._x000D_
1.When an error condition is detected
in a T-SQL statement that is inside a
TRY block, control is immediately
passed to the CATCH block_x000D_
2.The Error is processed in the TRY
block _x000D_
3.The Error is processed in the CATCH
block _x000D_
4.T-SQL statements in the TRY block
that follow the statement that
generated the error are not executed

Which statements are true about 1&2&4 1&3


Extended stored procedures?_x000D_
1.They are inherited from another
user defined stored
procedure_x000D_
2.They are DLLs developed in a
programming language like c that an
instance of Microsoft SQL Server can
dynamically load and run_x000D_
3.They run directly in the address
space of an instance of SQL
Server_x000D_
4.They are programmed by using the
SQL Server Extended Stored
Procedure API
Which statements are true about 1&3&5 2&4
Local Temporary stored procedure?
_x000D_
1.A local temporary procedure is
visible to all local connections_x000D_
2.A local temporary procedure is
visible only to the connection that
created it_x000D_
3.A local temporary procedure is
dropped through a Clean-up job that
is created & triggered by the user at
the end of the current
session_x000D_
4.A local temporary procedure is
automatically dropped at the end of
the current session_x000D_
5.A local temporary procedure can be
used by all the local users

Which statements are true about CLR 2&4&5 2&4


stored procedures?_x000D_
1.It is a reference to a Microsoft .NET
Framework common language
runtime (CLR) method _x000D_
2.The method can take and return
user-supplied parameters_x000D_
3.The method can only take input
parameters_x000D_
4.They are implemented as public,
static methods on a class in a .NET
Framework assembly_x000D_
5.They are implemented as private,
protected methods on a class in
a .NET Framework assembly
Which statements are true about 1&4 2&3
Global Temporary stored procedure?
_x000D_
1.A Global temporary procedure is
available to all connections _x000D_
2.A Global temporary procedure is
available to all connections with
explicit EXECUTE permission_x000D_
3.A Global temporary procedure is
dropped when the clean-up function
is called by the calling
procedure_x000D_
4.A Global temporary procedure is
dropped at the end of the last session
using the procedure_x000D_
5.If a global temporary procedure is
created, all users with EXECUTE
permissions can access it &
permissions can also be revoked
explicitly

What are your observations on 1&5 3&4


Temporary stored procedures with
respect to performance?_x000D_
1.Heavy use of temporary stored
procedures can lock system tables
permanently in tempdb and adversely
affect performance_x000D_
2.Heavy use of temporary stored
procedures can create contention on
the system tables in tempdb and
adversely affect performance_x000D_
3.It is recommended that
sp_executesql be used instead of
temporary stored procedures_x000D_
4.sp_executesql stores data in the
system tables and therefore avoids
the problem_x000D_
5.sp_executesql discards data from
the system tables and therefore
avoids the problem
1&3&4&5 2&3&4&5
EXECUTE AS clause can be used to
define the execution context of which
all user-defined modules?_x000D_
1.Messages_x000D_
2.Functions_x000D_
3.Procedures_x000D_
4.Queues_x000D_
5.Triggers
1&2&3&5 1&2&4

What are the advantages of using


EXECUTE AS clause?_x000D_
1.The execution becomes
faster_x000D_
2.You can control which user account
the Database Engine uses to validate
permissions on any objects that are
referenced by the module_x000D_
3.It provides additional flexibility and
control in managing permissions
across the object chain that exists
between user-defined modules and
the objects referenced by those
modules_x000D_
4.Users of the module only need
permissions to execute the module
itself; explicit permissions on the
referenced objects are not
required_x000D_
5.Users of the module need explicit
permissions on the referenced objects
thereby
What aremaking it more secure
the limitations of Ownership
chaining?_x000D_ 1&2&4 2&3&4
1.Applies only to DML statements:
SELECT, INSERT, UPDATE, and
DELETE_x000D_
2.The owners of the calling and the
called objects must be the
same_x000D_
3.The owners of the calling and the
called objects must be
different_x000D_
4.Does not apply to dynamic queries
inside the module
1&3&4 2&3&5
Please select all the relevant options;
The change in execution context
remains in effect until: _x000D_
1.Another EXECUTE AS statement is
run_x000D_
2.A REVERT statement is run_x000D_
3.An Update statement is run_x000D_
4.A New session is created_x000D_
5.The session is dropped
2&4 1&3&5
What all steps are involved in creating
CLR functions?_x000D_
1.Define the function as a static
method of a class in a language
supported by the .NET
Framework_x000D_
2.Define the function as a protected
method of a class in a language
supported by the .NET
Framework_x000D_
3.Create the assembly in SQL Server
by using the CREATE ASSEMBLY
statement_x000D_
4.Register the assembly in SQL Server
by using the CREATE ASSEMBLY
statement_x000D_
5.Create the function that references
the registered assembly by using the
CREATE FUNCTION statement
1&2 2&3

Which all statements are true about


the ability of SQL Server to execute
CLR code?_x000D_
1.The ability to execute CLR code is
enabled by default_x000D_
2.The ability to execute CLR code is
disabled by default_x000D_
3.References to create, alter, and drop
database objects that reference
managed code modules will not
execute in SQL Server unless CLR
execution is enabled_x000D_
4.References to create, alter, and drop
database objects that reference
managed code modules will get
executed automatically by SQL Server
1&2&4&5 1&3&5
Where all can CLR functions be used?
_x000D_
1.CLR functions can be used to access
external files_x000D_
2.CLR functions can be used to access
network resources_x000D_
3.CLR functions can be used to
configure the instance of SQL
server_x000D_
4.CLR functions can be used to access
Web Services_x000D_
5.CLR functions can be used to
connect to other databases _x000D_
2&4 1&3&5
What is the significance of clr enabled
option?_x000D_
1.It is used to specify whether user
assemblies can be run by SQL
Server_x000D_
2.The clr enabled option can be set to
value FALSE to denote that assembly
execution is not allowed on SQL
Server_x000D_
3.The clr enabled option can be set to
value TRUE to denote that assembly
execution is allowed on SQL
Server_x000D_
4.The clr enabled option can be set to
value 0 to denote that assembly
execution is not allowed on SQL
Server_x000D_
5.The clr enabled option can be set to
value 1 to denote that assembly
execution is allowed on SQL Server
1&2&3 1&3
How do you determine the set of code
access security permissions granted to
assemblies by the SQL Server host
policy level?_x000D_
1.SAFE permission set_x000D_
2.EXTERNAL_ACCESS permission
set_x000D_
3.MANAGED permission set_x000D_
4.UNSAFE permission set
2&4&5 1&3&5
Which statements are true about
disabling CLR integration in SQL
Server?_x000D_
1.You can disable CLR integration by
setting the clr enabled option to
FALSE_x000D_
2.You can disable CLR integration by
setting the clr enabled option to
0_x000D_
3.When you disable CLR integration,
SQL Server unloads all CLR
routines_x000D_
4.When you disable CLR integration,
SQL Server stops executing all CLR
routines_x000D_
5.When you disable CLR integration,
SQL Server unloads all application
domains
How does EXTERNAL_ACCESS 1&4 2&3&4
permission set work?_x000D_
1.Allows access only to external
assemblies with minimal access to
internal computation_x000D_
2.Allows access to internal
computations_x000D_
3.Allows access to external system
resources such as files, networks &
environment variables_x000D_
4.Allows access to Registry
What are the conditions for 1&3&4 2&3
assemblies created by using
EXTERNAL ACCESS permission sets?
_x000D_
1.The assembly code should be type-
safe_x000D_
2.The assembly should contain only
static data members in its classes
unless they are marked as read-
only_x000D_
3.The classes in the assembly must
contain finalizer methods_x000D_
4.The classes or methods of the
assembly should be annotated only
with allowed code attributes
What happens if you specify the 1&3 2&3&4
ENCRYPTION option in CREATE
FUNCTION statement?_x000D_
1.The SQL Statements used to define
the function are encrypted_x000D_
2.The statements are encrypted into a
.NET assembly_x000D_
3.The statements are encrypted in the
syscomments table_x000D_
4.The statements are encrypted in the
master table
What happens if the SCHEMABINDING 1&2&3 1&3
option is used in CREATE FUNCTION
statement?_x000D_
1.The User-defined function cannot be
deleted unless the database is
dropped_x000D_
2.The User-defined function cannot be
modified unless the database is
dropped_x000D_
3.The database objects that the
function references cannot be altered
or dropped unless the function is
dropped first_x000D_
4.The database objects that the
function references cannot be altered
or dropped unless the schema binding
of the function is removed

Which statements are true about 1&2 1&3&4


parameters to user-defined functions?
_x000D_
1.User-defined functions take zero or
more input parameters and return
either a scalar value or a
table_x000D_
2.User-defined functions take zero or
more input parameters and return
only an integer_x000D_
3.A function can have a maximum of
1024 input parameters_x000D_
4.When a parameter of the function
has a default value, the keyword
DEFAULT must be specified when
calling the function to get the default
value
How are User-defined functions 2&4 1&3&4
different from User-defined Stored
Procedures?_x000D_
1.In User-defined function the default
parameter is specified with a DEFAULT
keyword _x000D_
2.In User-defined function omitting
the parameter also implies default
value_x000D_
3.User-defined functions do not
support output parameters_x000D_
4.User-defined functions do support
output parameters

When you execute user-defined 2&3&4 1&2&3&4


functions that return scalar values,
how are the parameters specified?
_x000D_
1.The argument values are enclosed in
parentheses_x000D_
2.The argument values are not
enclosed in parentheses_x000D_
3.Parameter names can be
specified_x000D_
4.If parameter names are specified,
the argument values do not have to
be in the same sequence as the
parameters
Which are the different types of scalar 1&4 2&3
valued functions?_x000D_
1.Internal_x000D_
2.External_x000D_
3.Deterministic_x000D_
4.Nondeterministic

Which all data types cannot be return 1&2&3&4 2&4&5


types of a scalar function?_x000D_
1.text_x000D_
2.ntext_x000D_
3.integer_x000D_
4.image_x000D_
5.Cursor
Which statements are true about an 1&2&4 1&3
Inline scalar function?_x000D_
1.There is no function body_x000D_
2.The function body defined in
BEGIN…END block contains a series of
T-SQL statements _x000D_
3.The scalar value is a result of a single
statement_x000D_
4.The scalar value is a result of all the
statements in the BEGIN…END block

1&3&4 2&3
Which statements are true about a
multistatement scalar function?
_x000D_
1.There is no function body_x000D_
2.The function body defined in
BEGIN…END block contains a series of
T-SQL statements _x000D_
3.The scalar value is a result of a single
statement_x000D_
4.The scalar value is a result of all the
statements in the BEGIN…END block
1&2&4 2&4

Which statements are true about


return types of CLR Scalar values
functions?_x000D_
1.The type returned from a scalar
valued function can be any of the
scalar data types supported by SQL
Server, except varchar, char,
rowversion, text, ntext, image,
timestamp, table, or cursor_x000D_
2.The type returned from a scalar
valued function should be from the
following list varchar, char,
rowversion, text, ntext, image,
timestamp, table, or cursor_x000D_
3.Scalar valued functions must ensure
a match between the SQL Server data
type and the return data type of the
implementation method_x000D_
4.Scalar valued functions must ensure
that the return type is a recordset
2&3 1&2

What is the difference between


deterministic & non-deterministic
scalar-valued function?_x000D_
1.A non-deterministic function always
returns the same result when it is
called with a specific set of input
parameters_x000D_
2.A deterministic function always
returns the same result when it is
called with a specific set of input
parameters_x000D_
3.A non-deterministic function may
return different results when it is
called with a specific set of input
parameters_x000D_
4.A deterministic function may return
different results when it is called with
a specific set of input parameters
2&4 1&3&4

Which statements are true about an


inline table-valued function?_x000D_
1.There is no function body_x000D_
2.The function body defined in
BEGIN…END block contains a series of
T-SQL statements _x000D_
3.The table is the result set of a single
SELECT statement_x000D_
4.The table is the result set of a
multiple SELECT statements
1&3&4 2&4

Which statements are true about


multistatement table-valued function?
_x000D_
1.There is no function body_x000D_
2.The function body defined in
BEGIN…END block contains a series of
Transact-SQL statements that build
and insert rows into the table that will
be returned_x000D_
3.The table is the result set of a single
SELECT statement_x000D_
4.The table is the result set of a
multiple SELECT statements
1&2&3 3&4

Which of the following statements are


applicable to built-in table-valued
functions?_x000D_
1.The invocation of built-in user-
defined functions is always qualified
with the sys schema qualifier_x000D_
2.The invocation of built-in user-
defined functions can be either
unqualified or can use the sys schema
qualifier_x000D_
3.You should use the sys schema
qualifier because it prevents conflicts
with user-defined functions of the
same name_x000D_
4.You should use the sys schema
qualifier because it suppresses user-
defined functions of the same name
1&2&4 1&3&4

How do you implement CLR table-


valued functions?_x000D_
1.They are implemented as methods
on a class in a Microsoft .NET
Framework assembly_x000D_
2.IEnumerable interface has to be
implemented_x000D_
3.A custom interface has to be
implemented_x000D_
4.A collection or an array is converted
to a result set
1&3&4 1&4

Which statements are true about


Table-valued parameters?_x000D_
1.They are user-defined scalar values
that are passed into a procedure or
function_x000D_
2.They are user-defined table types
that are passed into a procedure or
function_x000D_
3.They provide an efficient way to
pass multiple rows of data to the
server_x000D_
4.They provide an efficient way to
pass a connection to the server
2&3 1&4

How is the information returned from


table-valued functions?_x000D_
1.Information may be returned from
table-valued functions using output
parameters_x000D_
2.Information may be returned from
table-valued functions using return
statements_x000D_
3.You must specify the parameters by
value_x000D_
4.You must specify the parameters by
reference
2&4 3&4
Which statements are true about a
multistatement scalar function?
_x000D_
1.There is no function body, no
declaration_x000D_
2.The function body defined in
BEGIN…END block contains a series of
T-SQL statements _x000D_
3.The scalar value is a result of a single
statement with multi value_x000D_
4.The scalar value is a result of all the
statements in the BEGIN…END block
What is the significance of the Results 1&2&3&4 2&3&5
pane of the Query designer?_x000D_
1.It shows a grid with data retrieved
by the query or view_x000D_
2.It shows the results of the most
recently executed SELECT
query_x000D_
3.It shows the query syntax_x000D_
4.You can modify the database by
editing values in the cells of the
grid_x000D_
5.You can add or delete rows
1&2 3&4

Which statements are true about the


DATABASE argument of the CREATE
TRIGGER statement?_x000D_
1.Applies the scope of a DDL trigger to
the current database_x000D_
2.The trigger fires whenever
event_type or event_group occurs in
the current database_x000D_
3.The trigger fires whenever a new
record is inserted in tables of the
current database_x000D_
4.The trigger fires whenever a records
are deleted from the tables in the
current database
3&4 1&2&3

What is the significance of INSTEAD


OF argument of the CREATE TRIGGER
statement?_x000D_
1.Specifies that the DML trigger is
executed instead of the triggering SQL
statement_x000D_
2.It overrides the actions of the
triggering statements_x000D_
3.It can be specified for DDL or logon
triggers_x000D_
4.It cannot be specified for DDL or
logon triggers
2&4 1&3&5

Which statements are true about


trigger creation?_x000D_
1.CREATE TRIGGER must be the first
statement in the batch _x000D_
2.CREATE TRIGGER must be the last
statement in the batch _x000D_
3.CREATE TRIGGER can apply to only
one table_x000D_
4.CREATE TRIGGER can apply to
multiple tables_x000D_
5.A trigger is created only in the
current database; however, a trigger
can reference objects outside the
current database
3&4 1&2&4
Which of the following T-SQL
statements are not allowed in a DML
trigger?_x000D_
1.ALTER DATABASE_x000D_
2.LOAD DATABASE_x000D_
3.CREATE_x000D_
4.UPDATE_x000D_
5.CREATE DATABASE
1&3&5 2&3&4
Which statements are true about
AFTER trigger?_x000D_
1.AFTER trigger executes after the
statement that triggered it
completes_x000D_
2.AFTER trigger executes after the last
trigger in the queue_x000D_
3.If the statement fails with an error
the trigger is not executed_x000D_
4.AFTER triggers cannot be specified
for tables, they can only be specified
for views_x000D_
5.AFTER triggers cannot be specified
for views, they can only be specified
for tables
Identify types of indexes from the 1&4 1&2&4&5
list._x000D_
1.Clustered_x000D_
2.Unique_x000D_
3.Variable_x000D_
4.Spatial_x000D_
5.Filtered
2&3&4 1&4

Which statements are true about


Clustered index?_x000D_
1.A clustered index sorts and stores
the data rows of the table or view in
order based on the clustered index
key_x000D_
2.A clustered index sorts and stores
the data columns of the table or view
in order based on the clustered index
key_x000D_
3.A clustered index is implemented as
a B-tree index structure_x000D_
4.A clustered index is implemented as
a Linked-list structure
2&3 1&4
What are the benefits of using a
Unique index?_x000D_
1.It is less error prone_x000D_
2.Data integrity of the defined
columns is ensured_x000D_
3.Additional information helpful to
the query optimizer is
provided_x000D_
4.The performance is not degraded
3&4&5 2&5
Which all index options can be set
without rebuilding the index?_x000D_
1.ALLOW_PAGE_LOCKS_x000D_
2.ALLOW_ROW_LOCKS_x000D_
3.IGNORE_DUP_KEY_x000D_
4.DATA_COMPRESSION_x000D_
5.STATISTICS_NORECOMPUTE
2&4 1&3
What is the impact of disabling an
index for clustered indexes?_x000D_
1.Prevents user access to the
index_x000D_
2.Prevents user access to all the
indexes_x000D_
3.Prevents user access to the
underlying table data_x000D_
4.Prevents user access to the
underlying database
Which are the conditions when
indexes of views can provide 1&2&4 2&5
significant performance advantages?
_x000D_
1.When the view contains
aggregations_x000D_
2.When the view contains
compositions_x000D_
3.When the view contains table
joins_x000D_
4.When the view contains a
combination of aggregations &
joins_x000D_
5.When the view contains locks
1&4 2&3&4&5
Which all columns cannot be specified
as index key columns?_x000D_
1.integer_x000D_
2.ntext_x000D_
3.text_x000D_
4.image_x000D_
5.varchar(max)
2&3&4 1&4&5

Where all clustered indexes are


useful?_x000D_
1.For remotely used queries_x000D_
2.For frequently used queries_x000D_
3.For providing a high degree of
uniqueness_x000D_
4.Where the requirement is for range
queries_x000D_
5.For providing high degree of
efficiency
2&4 1&3

What are the query considerations for


using clustered indexes?_x000D_
1.Use clustered index when a query
returns a range of values by using
operators such as BETWEEN, >, >=, <,
<=_x000D_
2.Use clustered index when a query
returns large resultsets_x000D_
3.Use clustered index when a query
needs to handle Null values_x000D_
4.Use clustered index when a query
uses JOIN clauses_x000D_
5.Use clustered index when a query
uses GROUP BY or ORDER BY clauses
2&3&4 1&3
What are the column considerations
for using clustered indexes?_x000D_
1.Columns are unique or contain
distinct values_x000D_
2.Columns change frequently_x000D_
3.Columns are accessed
sequentially_x000D_
4.Column is used frequently to sort
data retrieved from a table
For which attributes of columns are
clustered indexes not advisable? 1&3&4 2&4
_x000D_
1.Columns are unique or contain
distinct values_x000D_
2.Columns change frequently_x000D_
3.Columns are accessed
sequentially_x000D_
4.When there are Wide keys
Which are the different mechanisms 1&4 2&4
of creating Nonclustered indexes?
_x000D_
1.Implicitly with PRIMARY KEY &
UNIQUE constraints_x000D_
2.Explicitly with PRIMARY KEY &
UNIQUE constraints_x000D_
3.Implicitly with CREATE
INDEX_x000D_
4.Explicitly with CREATE INDEX
3&4 1&2&4
How are Nonclustered indexes
different from Clustered indexes?
_x000D_
1.The data columns of the underlying
table are not sorted and stored in
order based on their nonclustered
keys_x000D_
2.The data rows of the underlying
table are sorted and stored in order
based on their nonclustered
keys_x000D_
3.The leaf layer of a nonclustered
index is made up of index pages
instead of data pages_x000D_
4.The leaf layer of a nonclustered
index is made up of data pages
instead of index pages
Which statements are true about 1&2&3 2&3&4
nonclustered indexes with respect to
partitions?_x000D_
1.Nonclustered indexes have one row
in sys.partitions with index_id >0 for
each partition used by the
index_x000D_
2.Nonclustered indexes have one
column in sys.partitions with index_id
>0 for each partition used by the
index_x000D_
3.By default, a nonclustered index has
a single partition_x000D_
4.By default, a nonclustered index has
multiple partitions_x000D_
5.Each partition has a B-tree structure
that contains the index rows for that
specific partition
On what conditions does the SQL 1&2 1&3&4
Server query optimizer not use a
parallel execution plan for a query?
_x000D_
1.The serial execution cost of the
query is not high enough to consider
an alternative, parallel execution
plan_x000D_
2.The parallel execution cost of the
query is not high enough to consider
an alternative serial execution
plan_x000D_
3.A serial execution plan is considered
faster than any possible parallel
execution plan for the particular
query_x000D_
4.The query contains scalar or
relational operators that cannot be
run
Howincan
parallel
the execution plans of 1&2 2&3
queries on partitioned tables and
indexes be examined?_x000D_
1.By using the Transact-SQL SET
SHOWPLAN_XML_x000D_
2.By using the Transact-SQL SET
STATISTICS_XML_x000D_
3.By using the Transact-SQL SET
PARTITION_XML_x000D_
4.By using the Transact-SQL SET
INDEX_XML_x000D_

What does the Query execution plan 1&4 2&3


define?_x000D_
1.The sequence in which the source
tables are accessed_x000D_
2.The sequence in which the rows are
accessed_x000D_
3.The methods used to extract data
from each table_x000D_
4.The methods used to arrange data
in each table
What does the input to Query 3&4 1&2&4
Optimizer consist of?_x000D_
1.The query_x000D_
2.The database schema_x000D_
3.The database statistics_x000D_
4.The selected rows

How does SQL server execute a stored 2&4&5 1&3


procedure or a trigger?_x000D_
1.SQL Server stores only the source
for stored procedures and
triggers_x000D_
2.SQL Server keeps the stored
procedures & triggers in compiled
form for future execution_x000D_
3.When a stored procedure or trigger
is first executed, the source is
compiled into an execution
plan_x000D_
4.If the stored procedure or trigger is
again executed before the execution
plan is aged from memory, the
relational engine detects the existing
plan and reuses it_x000D_
5.If the execution plan has aged out of
memory, a new plan is built
What does the SELECT statement 1&2&5 2&3&4&5
define?_x000D_
1.The format of the database_x000D_
2.The format of the result set. This is
specified mostly in the select
list_x000D_
3.The tables that contain the source
data. This is specified in the FROM
clause_x000D_
4.How the tables are logically related
for the purposes of the SELECT
statement. This is defined in the join
specifications, which may appear in
the WHERE clause or in an ON clause
following FROM_x000D_
5.The conditions that the rows in the
source tables must satisfy to qualify
for the SELECT statement. These are
specified in the WHERE and HAVING
clauses

How does SQL server handle Parallel 1&2&3 1&3&4


query processing?_x000D_
1.During query optimization, SQL
Server looks for queries or index
operations that might benefit from
parallel execution_x000D_
2.SQL Server inserts exchange
operators into the query execution
plan to prepare the query for parallel
execution_x000D_
3.After exchange operators are
inserted, the result is a parallel-query
execution plan which can use more
than one thread _x000D_
4.After exchange operators are
inserted, the queries are compiled
into an executable
How is the support for XML integrated 1&3&4 2&4
into SQL Server?_x000D_
1.Support for the xml data
type_x000D_
2.Ability to specify an XQuery query
against XML data stored in columns
and variables of the xml type_x000D_
3.Ability to handle bulk loading of XML
data_x000D_
4.Ability to merge XML

What kind of data does the XML 1&2&4 1&4


datatype store in SQL Server?
_x000D_
1.Office documents_x000D_
2.Memory maps_x000D_
3.XML documents_x000D_
4.Fragments
Please select all the relevant 1&4 2&3
options_x000D_
CREATE TABLE T1(Col1 int primary
key, Col2 xml) _x000D_
1.It creates a row in a table_x000D_
2.It creates a column of type int in the
table & sets it as a primary
key_x000D_
3.It creates a column of type
xml_x000D_
4.It creates an empty table
1&2&3&5 1&2&4

What all features are supported by


SQLXML in SQL Server?_x000D_
1.Ability to transform the result of a
query into XML on the client
side_x000D_
2.Ability to create an XML view of
relational data by using an annotated
XSD mapping schema file_x000D_
3.Ability to access SQL Server using
HTTP_x000D_
4.Ability to access SQL Server using
TCP/IP_x000D_
5.Ability to expose functionality
offered by stored procedures, user-
defined functions, and template
queries as SOAP-based Web services
1&3&5 2&5

Which statements are true about


Primary XML index?_x000D_
1.It is a shredded and persisted
representation of the XML BLOBs in
the xml data type column_x000D_
2.For each XML binary large object
(BLOB) in the column, the index
creates several rows of data_x000D_
3.For each XML binary large object
(BLOB) in the row, the index creates
several columns of data_x000D_
4.The number of rows in the index is
approximately equal to the number of
nodes in the XML binary large
object_x000D_
5.The number of columns in the index
is approximately equal to the number
of nodes in the XML binary large
object
1&3 1&2&3
Which statements are true about
Secondary XML index?_x000D_
1.To enhance search performance,
you can create secondary XML
indexes_x000D_
2.Search performance is slightly
reduced but it is easier to
manage_x000D_
3.A secondary XML index can be
created independent of a primary
XML index_x000D_
4.A primary XML index must first exist
before you can create secondary
indexes
Which are the different types of 2&3 1&4
Secondary XML index?_x000D_
1.PATH Secondary XML index_x000D_
2.FILE Secondary XML index_x000D_
3.VALUE Secondary XML
index_x000D_
4.PROPERTY Secondary XML index
1&4 2&3&4
XPath consists of which of the
following _x000D_
three types of files?_x000D_
1.integer_x000D_
2.string_x000D_
3.number_x000D_
4.boolean
Which are the categories that the 1&2&4&5 1&3&4
XPath operators are divided into?
_x000D_
1.Boolean operators_x000D_
2.Relational operators_x000D_
3.Logical operators_x000D_
4.Equality operators_x000D_
5.Arithmetic operators
1&3 2&4
Which are the different ways of
storing an XML value to a XML
column, parameter or variable?
_x000D_
1.As a number is implicitly converted
to XML data type number_x000D_
2.As a character or binary SQL type
that is implicitly converted to XML
data type_x000D_
3.As the content of a file_x000D_
4.As the output of the XML publishing
mechanism FOR XML with the TYPE
directive that generates an XML data
type instance
2&3 1&2

You might want to write queries that


combine relational and XML data
processing;How do you write such
cross-domain queries?_x000D_
1.Apply the value of a SQL variable in
your XQuery or XML DML expression
using sql:variable()_x000D_
2.Apply the value of a SQL variable in
your XQuery or XML DML expression
using sql:column()_x000D_
3.Use the values from a relational
column in XQuery or XML DML
context with sql:variable()_x000D_
4.Use the values from a relational
column in XQuery or XML DML
context with sql:column()
1&2 2&3

CREATE TRIGGER trgmagic ON


empdepthistory _x000D_
AFTER UPDATE AS _x000D_
BEGIN _x000D_
SELECT * FROM deleted_x000D_
SELECT * FROM inserted_x000D_
END _x000D_
_x000D_
What action does the above query
perform? _x000D_
1.creates an AFTER UPDATE trigger
on the empdepthistory table.
_x000D_
2.whenever an UPDATE STATEMENT
is fired the trgMagic trigger is
executed and displays the previous
values in the table as well as the
updated values._x000D_
3.creates an BEFORE UPDATE trigger
on the empdepthistory table.
_x000D_
4.whenever an DELETE STATEMENT is
fired the trgMagic trigger is executed
and displays the previous values in the
table as well as the updated values.
I & II I, II & IV

Which of the following statements are


TRUE about the .NET CLR? _x000D_
_x000D_
I: It provides a language-neutral
development & execution
environment. _x000D_
_x000D_
II: It ensures that an application would
not be able to access memory that it is
not authorized to access._x000D_
_x000D_
III: It provides services to run
"managed" applications. _x000D_
_x000D_
IV: The resources are garbage
collected. _x000D_
_x000D_
V: It provides services to run
"unmanaged" applications. _x000D_

I & II I, II & IV
Which of the following are valid .NET
CLR JIT performance counters?
_x000D_
_x000D_
I: Total memory used for JIT
compilation _x000D_
_x000D_
II: Average memory used for JIT
compilation _x000D_
_x000D_
III: Number of methods that failed to
compile with the standard JIT
_x000D_
_x000D_
IV: Percentage of processor time
spent performing JIT compilation
_x000D_
_x000D_
V: Percentage of memory currently
dedicated for JIT compilation _x000D_
_x000D_
.NET class libraries Common
Which of the following components of Language Runtime
the .NET framework provide an
extensible set of classes that can be
used by any .NET compliant
programming language?
Common Language CLR
Which of the following .NET Infrastructure
components can be used to remove
unused references from the managed
heap?
1&2&5 2&3
Which of the following constitutes the
.NET Framework?_x000D_
1.ASP.NET Applications _x000D_
2.CLR_x000D_
3.Frame Work Class Library_x000D_
4.WinForm Applications_x000D_
5.Windows Services
Which of the following assemblies can Private Assemblies Friend Assemblies
be stored in Global Assembly Cache?
Code that targets the Common Unmanaged Distributed
Language Runtime is known as:
Which of the following statements is .NET Framework uses .NET Framework is
correct about the .NET Framework? DCOM for achieving built on the DCOM
language technology.
interoperability.

Which of the following is the root of System.Object System.Type


the .NET type hierarchy?
Which of the following are parts of
the .NET Framework?_x000D_ 3&4 1&2&3
1.The Common Language
Runtime(CLR)_x000D_
2.The Framework Class
Libraries_x000D_
3.Microsoft Published
Webservices_x000D_
4.Mobile Applications
What is wrong in the following code? every case should case 3 should not
_x000D_ have a 'break' have a 'break'
int choice=3_x000D_ statement statement
switch (choice)_x000D_
{_x000D_
case 1:_x000D_
MessageBox.Show(“One”);_x000D_
case 2:_x000D_
MessageBox.Show(“Two”);_x000D_
case 3:_x000D_
MessageBox.Show(“Three”);_x000D_
break;_x000D_
}

What does following code denote, 1&2&3 3&4


choose multiple if applicable?_x000D_
string strVal = “Y”;_x000D_
while (strVal == “Y”);_x000D_
1.Conditional statement_x000D_
2.looping statement_x000D_
3.unending loop_x000D_
4.unreachable loop

What are your observations on the while loop will get while loop will
following code?_x000D_ executed 2 times never get
int choice=3;_x000D_ executed
while (choice == 2) ;_x000D_
MessageBox.Show("Entered");

What are your observation on the 1&3&4 2&4


following syntax?_x000D_
for (Boolean expression; initializer;
modifier)_x000D_
[{]_x000D_
statement(s)_x000D_
[}]_x000D_
1.The syntax is correct_x000D_
2.initializer should be the first
statement_x000D_
3.initializer should be the last
statement_x000D_
4.boolean expression should be the
second statement
Which all values can a bool type have? 1&4 2&3
_x000D_
1.TRUE_x000D_
2.FALSE_x000D_
3.0_x000D_
4.1
What is the result of the following Value ‘\x0041’ will be Value ‘41’ will be
code snippet?_x000D_ assigned to variable assigned to
char examGrade = ‘\x0041’; examGrade of type variable
char examGrade of
type char

Please Identify values that sbyte can 1&2&4 2&3&4


hold._x000D_
1.-128_x000D_
2.128_x000D_
3.127_x000D_
4.256

Identify statements that are true for 2&4 1&3


short type._x000D_
1.short type can hold 32 bits of
data_x000D_
2.short type can hold 16 bits of
data_x000D_
3.short type can hold data from 0 to
65535_x000D_
4.short type can hold data from -
32768 to 32767
Which statements are true about unit 1&2&3 1&4
type?_x000D_
1.unit type can hold 32 bits of
data_x000D_
2.unit type can hold 16 bits of
data_x000D_
3.unit type can hold data from -
2147483648 to 2147483647_x000D_
4.unit type can hold data from 0 to
4294967295
Which data types are of size 64 bits? 1&2&3 2&4&5
_x000D_
1.int_x000D_
2.long_x000D_
3.ulong_x000D_
4.float_x000D_
5.Double
Which statements are true about Out 1&3&4 3&4
parameters?_x000D_
1.Out parameters must be definitely
assigned before calling the
method_x000D_
2.Out parameters don’t need to be
definitely assigned before calling the
method_x000D_
3.Out parameters must be definitely
assigned before the method
returns_x000D_
4.Out parameters value need not
change before the method returns
Please identify the different types of 3&4&5 1&2&3&5
method parameters._x000D_
1.Value_x000D_
2.ref_x000D_
3.out_x000D_
4.in_x000D_
5.params

What does the following code Following code is an Following code


denote?_x000D_ example of demonstrates
namespace MyMethods _x000D_ Inheritance Polymorphism
{_x000D_
_x000D_
public static class MyClass_x000D_
{_x000D_
public static int WordCount(this
String str)_x000D_
{_x000D_
return str.Split(new char[] { ' ',
'.', '?' }, _x000D_
StringSplitOptions.RemoveEmptyEntri
es).Length;_x000D_
}_x000D_
} _x000D_
_x000D_
}
Which statements are true about 2&3 1&3&4
Extension Methods?_x000D_
1.Extension methods are defined as
protected methods_x000D_
2.Extension methods are defined as
static methods_x000D_
3.Extension methods are called by
instance method syntax_x000D_
4.Extension methods are called like
static methods

Which of the following statements are 2&3 1&4


correct?_x000D_
1.An argument passed to a ref
parameter need not be initialized
first_x000D_
2.Variable passed as out arguments
need to be initialized prior to being
passed_x000D_
3.Argument that uses params
keyword must be the last argument of
variable argument list of a method.
_x000D_
4.Pass by reference eliminates the
overhead of copying large data items.
A function returns a value, whereas a T F
subroutine cannot return a
value._x000D_
State True or False.
Which of the following statements are 3&4 1&2&3
correct? _x000D_
1.C# allows a function to have
arguments with default values.
_x000D_
2.C# allows a function to have variable
number of arguments._x000D_
3.Omitting the return value type in
method definition results into an
exception._x000D_
4.params is used to specify the syntax
for a function with variable number of
arguments.
How many values is a function capable 1 0
of returning?

Which of the following CANNOT occur namespace Entrypoint


multiple number of times in a
program?
Which of the following statements are 1&3&4 2&3&4
correct about subroutines used in
C#.NET? _x000D_
1.If we do not return a value from a
subroutine then a value -1 gets
returned._x000D_
2.Subroutine definitions cannot be
nested._x000D_
3.Subroutine can be called recursively.
_x000D_
4.Subroutine calls can be nested.
1&2 2&3

What does the following code do?


_x000D_
enum Month: byte_x000D_
{_x000D_
January,_x000D_
February,_x000D_
March,_x000D_
April,_x000D_
May,_x000D_
June,_x000D_
July,_x000D_
August,_x000D_
September,_x000D_
October,_x000D_
November,_x000D_
December_x000D_
};_x000D_
1.Declares an enum_x000D_
2.Change the integral type for each
member from int to byte_x000D_
3.Inherit enum from type
byte_x000D_
4.Generates an error
In the code below, what will be the 0 6
value of enum member
Sunday_x000D_
enum Weekday { Monday = 1,
Tuesday, Wednesday, Thursday,
Friday, Saturday = 10, Sunday }
2&3&4 1&2&5

What are your observations on the


following code?_x000D_
[Flag]_x000D_
[ Serializable]_x000D_
public enum ProblemStatus_x000D_
{_x000D_
Assigned = 0x0001,_x000D_
NoProblem = 0x0002,_x000D_
Open = 0x0004,_x000D_
Resolved = 0x0008_x000D_
}_x000D_
1.The code uses multiple
attributes_x000D_
2.Multiple attributes can also be
specified together_x000D_
3.Multiple attributes have to be
specified one after the other_x000D_
4.Multiple attributes can appear in
same square brackets separated by a
comma_x000D_
5.Multiple attributes can appear in
same square brackets separated by a
space
2&4 1&3

What all statements are true about


System.Enum struct?_x000D_
1.Using System.Enum struct you can
convert string to enum_x000D_
2.Using System.Enum struct you can
convert object to enum_x000D_
3.loop through a list of enum
members_x000D_
4.Using System.Enum struct you can
convert ArrayList to enum
Conversion of string Conversion of
What does the following code to enum types enum types to
denote?_x000D_ string
enum Weekday { Mon = 1, Tue, Wed,
Thu, Fri, Sat = 10, Sun }_x000D_
dayStr =
Enum.GetName(typeof(Weekday),
Weekday.Thu);
Conversion of string Conversion of
What does the following code to enum types enum types to
denote?_x000D_ string
enum Weekday { Mon = 1, Tue, Wed,
Thu, Fri, Sat = 10, Sun }_x000D_
Weekday Sunday =
(Weekday)Enum.ToObject(typeof(We
ekday), 11);
What does the following code Following code Following code
denote?_x000D_ iterates through an iterates through
foreach (var day in ArrayList an Array
Enum.GetValues(typeof(Weekday)))_x
000D_
{_x000D_
Console.WriteLine(day);_x000D_
}Which statements are true about
Structs?_x000D_ 1&3 2&4
1.Structs are value types_x000D_
2.Structs are reference
types_x000D_
3.Structs get created on stack
when instantiated_x000D_
4.Structs get created on heap
when instantiated
What are your observations on the
following code?_x000D_ 1&3&4 3&4
using System;_x000D_
struct SimpleStruct_x000D_
{_x000D_
private int xval;_x000D_
public int X_x000D_
{_x000D_
get _x000D_
{_x000D_
return xval;_x000D_
}_x000D_
set _x000D_
{_x000D_
if (value < 100)_x000D_
xval = value;_x000D_
}_x000D_
}_x000D_
public void DisplayX()_x000D_
{_x000D_
Console.WriteLine("The stored
value is: {0}", xval);_x000D_
}_x000D_
}_x000D_
1.Following code is an example of a
class_x000D_
2.Following code is an example of a
struct_x000D_
3.Struct has a property_x000D_
4.Struct
_x000D_has a Method
1.Structs cannot have 1&3 3&4
constructors_x000D_
2.Structs can have
constructors_x000D_
3.Constructors cannot have
parameters_x000D_
4.Constructors must take parameters
What are your observations on the 1&4 1&3
following code?_x000D_
interface IImage_x000D_
{_x000D_
void Paint();_x000D_
}_x000D_
_x000D_
struct Picture : IImage_x000D_
{_x000D_
public void Paint()_x000D_
{_x000D_
// painting code goes
here_x000D_
}_x000D_
private int x, y, z; // other struct
members_x000D_
}_x000D_
1.Following code is an example of a
class_x000D_
2.Following code is an example of a
struct_x000D_
3.Following code shows how struct
implements an interface_x000D_
4.Following code denotes
polymorphism

What all elements can a struct 1&3&5 2&4


contain?_x000D_
1.Constructors_x000D_
2.Constants_x000D_
3.Namespaces_x000D_
4.Fields_x000D_
5.Methods
What are your observations on the 2&4 1&3
following code?_x000D_
using System;_x000D_
struct SimpleStruct_x000D_
{_x000D_
protected int xval;_x000D_
public int X_x000D_
{_x000D_
get _x000D_
{_x000D_
return xval;_x000D_
}_x000D_
set _x000D_
{_x000D_
if (value < 100)_x000D_
xval = value;_x000D_
}_x000D_
}_x000D_
public void DisplayX()_x000D_
{_x000D_
Console.WriteLine("The stored
value is: {0}", xval);_x000D_
}_x000D_
}_x000D_
1.Following code is an example of a
class_x000D_
2.Following code is an example of a
struct_x000D_
3.Struct members can be
inherited_x000D_
The space required for structure T F
variables is allocated on
stack._x000D_
State True or False.
Creating empty structures is allowed F
in C#.NET._x000D_
State True or False.
Which of the following statements are 1&2 3&4
correct about an enum used
inC#.NET?_x000D_
1.To use the keyword enum, we
should either use [enum] or
System.Enum._x000D_
2.enum is a keyword._x000D_
3.Enum is class declared in
System.Type namespace._x000D_
4.Enum is a class declared in
System namespace.
An enum that is declared inside a T F
class, struct, namespace or interface is
treated as public._x000D_
State True or False.

Which of the following CANNOT be byte short


used as an underlying datatype for an
enum in C#.NET?
Which of the following statements is enum is a reference enum is a value
correct about an enum used in type. type.
C#.NET?

Which of the following statements are 1&2&4 3&4


correct about enum used in
C#.NET?_x000D_
1.Every enum is derived from an
Object class._x000D_
2.Every enum is a value
type._x000D_
3.There does not exist a way to
print an element of an enum as a
string._x000D_
4.The default underlying datatype
of an enum is int.
Which of the following are Object 2&3 1&3&4
Members?_x000D_
1.Namespaces_x000D_
2.Constructors_x000D_
3.Fields_x000D_
4.Nested Objects_x000D_
5.Projects

Which of the statements are true 1&2&4 1&4


about Fields?_x000D_
1.Fields represent the Data portion of
the class_x000D_
2.Fields are declared in
methods_x000D_
3.They are the state of an
object_x000D_
4.They are the members of the class
Which of the statements are true for 2&3 3&4
Constant fields?_x000D_
1.Constant fields cannot be changed
during program execution_x000D_
2.Constant fields can be read as many
times as needed_x000D_
3.Constant fields have to be declared
at namespace level_x000D_
4.Constant fields are initialized during
runtime

Which of the statements are true for 2&4 1&3&4


Read-Only fields?_x000D_
1.Read-Only fields cannot be changed
during program execution_x000D_
2.Read-Only fields have to be declared
at the namespace level_x000D_
3.Read-Only fields are initialized
during runtime_x000D_
4.Read-Only fields can be read as
many times as needed
What does the following code Usage of a Property Usage of an Array
denote?_x000D_
public string this[int i]_x000D_
{_x000D_
get_x000D_
{ _x000D_
if (i >= 5 && i < 25)_x000D_
{_x000D_
return customerNames [i];_x000D_
}_x000D_
return null;_x000D_
}_x000D_
_x000D_
set_x000D_
{_x000D_
if (i >= 5 && i < 25)_x000D_
{_x000D_
customerNames [i] = value;_x000D_
}_x000D_
}_x000D_
}

Which statements are true about 1&2&4 3&4


Indexers?_x000D_
1.Indexers like Properties have get
and set accessors_x000D_
2.Indexers like Arrays use square
bracket syntax to access
members_x000D_
3.Indexers are Read-Only_x000D_
4.Indexers like Methods can have
parameters
Which all statements are true about 1&2&3 1&4
Properties?_x000D_
1.Properties encapsulate access to
public fields_x000D_
2.Properties encapsulate access to
private fields_x000D_
3.With Properties even if the
implementation of private state
changes, the implementation is not
broken_x000D_
4.With Properties even the
implementation of private state
cannot change

Which all are the main features of 2&4 1&3


Static classes?_x000D_
1.They only contain static
members_x000D_
2.They cannot be instantiated_x000D_
3.They have to be instantiated
_x000D_
4.They can be inherited_x000D_
5.They are sealed
Which of the following statements is Contents of s1 and The two objects
correct about the C#.NET code snippet s2 will be exactly will get created on
given below? class Student s1, s2; // same. the stack.
Here 'Student' is a user-defined
class._x000D_
s1 = new Student(); _x000D_
s2 = new Student();
Which of the following statements is j cannot be declared DisplayData()
correct about the C#.NET code snippet as public. cannot be
given below? class Sample_x000D_ declared as
{_x000D_ private.
private int i;_x000D_
public Single j;_x000D_
private void DisplayData()_x000D_
{_x000D_
Console.WriteLine(i + " " +
j);_x000D_
}_x000D_
public void ShowData()_x000D_
{_x000D_
Console.WriteLine(i + " " +
j);_x000D_
}_x000D_
}

Which of the following statements is Procedural Object Oriented


correct? Programming Programming
paradigm is different paradigm stresses
than structured on dividing the
programming logic into smaller
paradigm. parts and writing
procedures for
each part.

Which of the following statements is Class is a value type. Since objects are
correct about classes and objects in typically big in
C#.NET? size, they are
created on the
stack.
Which of the following statements are 1&3&4 2&3
correct?_x000D_
1.Instance members of a class can be
accessed only through an object of
that class._x000D_
2.A class can contain only instance
data and instance member
function._x000D_
3.All objects created from a class will
occupy equal number of bytes in
memory._x000D_
4.A class is a blueprint or a template
according to which objects are
created.

Which of the following is the correct 2&4 1&3


way to create an object of the class
Sample?_x000D_
1.Sample s = new
Sample();_x000D_
2.Sample s;_x000D_
3.Sample s; s = new
Sample();_x000D_
A variable which is declared inside a Serial Local
method is called a________variable.
Which of the following is the feature It can be used It must accept a
of a local variable? anywhere in the class
program
Which of the following method is Over Loading Loading
available in same name but with
different parameters?
What is the output of the code public Errors It defines the class
class B : A { }? that inherit the
properties of the
Class A

An instance variable: is an object of a class represents an


attribute of an
object
What you have understood from the Creates the class Test Creates the class
following code? class Test: Form { } : Form Test that inherits
the class Form
Creates the class Test Creates the class
: Form Test that inherits
What you have understood from the the class Form
following code? class Test: Form { }
denote?_x000D_
_x000D_ Encapsulation Inheritance
public class Contact_x000D_
{_x000D_
public string Name { get;
set; }_x000D_
public string Email { get;
set; }_x000D_
public string Address { get;
set; }_x000D_
}_x000D_
_x000D_
class Customer : Contact_x000D_
{_x000D_
public string Gender { get;
set; }_x000D_
public decimal Income { get;
set; }_x000D_
}_x000D_
How can you call Base class members
from a derived class?_x000D_ 1&2 3&4
1.By declaring them as
private_x000D_
2.By declaring them as public_x000D_
3.By declaring them as
protected_x000D_
4.By declaring them as static
{_x000D_
public string FullAddress()_x000D_ 2&4 1&3
{_x000D_
// some code_x000D_
}_x000D_
}_x000D_
_x000D_
class WebSite_x000D_
{_x000D_
// members_x000D_
}_x000D_
_x000D_
public class SiteOwner :
Contact_x000D_
{_x000D_
WebSite mySite = new
WebSite();_x000D_
public new string
FullAddress()_x000D_
{_x000D_
string fullAddress =
mySite.ToString();_x000D_
// create an address..._x000D_
return fullAddress;_x000D_
}_x000D_
}_x000D_
1.It denotes Inheritance_x000D_
2.It denotes Encapsulation_x000D_
3.It denotes Versioning_x000D_
4.It denotes Overriding
{_x000D_ 3&4 1&2
public bool Gender { get;
set; }_x000D_
public int NumberOfVisits { get;
set; }_x000D_
public string Name { get;
set; }_x000D_
}_x000D_
_x000D_
class Patient_x000D_
{_x000D_
public PatientStats Stats { get;
set; }_x000D_
}_x000D_
1.It is an example of
inheritance_x000D_
2.It is an example of
polymorphism_x000D_
3.It is an example of sealed
class_x000D_
4.One class is used as an encapsulated
object in another class
public string Address { get;
set; }_x000D_ 1&2 1&3&4
public string City { get; set; }_x000D_
_x000D_
protected string
FullAddress()_x000D_
{_x000D_
return Address + ‘ ’ + City;_x000D_
}_x000D_
}_x000D_
_x000D_
class Customer : Contact_x000D_
{_x000D_
public string FullAddress()_x000D_
{_x000D_
string fullAddress = ““;_x000D_
// Some statements_x000D_
_x000D_
return fullAddress;_x000D_
}_x000D_
}_x000D_
1.It is an example of
inheritance_x000D_
2.It shows how a method in base class
can be used in the derived
class_x000D_
3.It shows how a method in base class
is hidden from the user_x000D_
4.It shows how polymorphism is
implemented
public string City { get; set; }_x000D_
_x000D_ 1&3 1&2&4
protected string
FullAddress()_x000D_
{_x000D_
return Address + ‘ ’ + City;_x000D_
}_x000D_
}_x000D_
_x000D_
class Customer : Contact_x000D_
{_x000D_
public string
GetAddressDetails()_x000D_
{_x000D_
_x000D_
string fullAddress =
FullAddress();_x000D_
// Some statements_x000D_
_x000D_
return fullAddress;_x000D_
}_x000D_
}_x000D_
1.It is an example of
polymorphism_x000D_
2.It shows how a method in base class
can be used in the derived
class_x000D_
3.It shows how a method in base class
is hidden from the user_x000D_
4.It is an example of inheritance
Which statements are true about the 1&3&4 1&2&3
following code?_x000D_
class Contact_x000D_
{_x000D_
protected internal bool Active { get;
set; }_x000D_
}_x000D_
_x000D_
sealed class
CustomerStats:Contact_x000D_
{_x000D_
internal bool Gender { get;
set; }_x000D_
internal decimal Income { get;
set; }_x000D_
internal int NumberOfVisits { get;
set; }_x000D_
}_x000D_
1.Objects in the same assembly have
access to the protected internal
member Active_x000D_
2.Derived classes inside the assembly
have access to protected internal
member Active_x000D_
3.Derived classes outside the
assembly have access to protected
internal member Active_x000D_
4.Derived classes do not have access
to protected internal members
1&3 1&2&4

Which all statements are true for


static methods?_x000D_
1.Static methods do not depend on
any object state_x000D_
2.Static methods depend on an object
state_x000D_
3.Static methods eliminate the
overhead of creating an object
instance_x000D_
4.Static methods are same as public
methods
2&4 1&2&4

Which of the following statements are


true for Protected Access?_x000D_
1.Protected members can be accessed
by all the code_x000D_
2.Protected members can be accessed
only by members of the same class or
through inheritance_x000D_
3.Protected access is less restrictive
than private access but more
restrictive than public access_x000D_
4.Protected access is more restrictive
than private access but less restrictive
than public access
3&4 1&2&3
Which of the modifiers are applicable
to Objects?_x000D_
1.Public_x000D_
2.Private_x000D_
3.Protected_x000D_
4.Internal
2&3&4 1&3

Which of the following statements are


true for Protected Internal Access?
_x000D_
1.Protected Internal members can be
accessed by objects in the same
assembly_x000D_
2.Protected Internal members are
exactly same as private members in
the same assembly_x000D_
3.Protected Internal members can be
accessed by derived classes inside and
outside the assembly_x000D_
4.Protected Internal members are
exactly same as internal members in
the same assembly_x000D_
2&4 1&3

Which of the following statements are


true for Private Access?_x000D_
1.Private access is the least restrictive
access_x000D_
2.Private access is the most restrictive
access_x000D_
3.Only members within an object may
access another member marked as
private_x000D_
4.Members outside an object can
access another members marked as
private
1&3&4 2&3&4
Which of the following can be
declared in an interface?_x000D_
1.Properties_x000D_
2.Methods_x000D_
3.Enumerations_x000D_
4.Events
12 bytes 24 bytes
A class implements two interfaces
each containing three methods. The
class contains no instance data. Which
of the following correctly indicate the
size of the object created from this
class?
One class can In a program if
implement only one one class
interface. implements an
interface then no
other class in the
same program can
implement this
Which of the following statements is interface.
correct about an interface used in
C#.NET?
All interfaces are Interfaces can be
derived from an inherited.
Which of the following statements is Object class.
correct about Interfaces used in
C#.NET?
If a class implements A class cannot
an interface partially, implement an
Which of the following statements is then it becomes an interface partially.
correct about an interface used in abstract class.
C#.NET?
One interface can be An interface can
implemented in be implemented
another interface. by multiple classes
in the same
program.

Which of the following statements is


correct about an interface?
Which of the following statements is When a class inherits An interface
correct? an interface it cannot contain
inherits member the signature of
definitions as well as an indexer.
its implementations.

1&3&4 2&4
Which of the following can implement
an interface?_x000D_
1.Data_x000D_
2.Class_x000D_
3.Enum_x000D_
4.Structure_x000D_

Which all are non-generic collections 1&5 2&3&5


from the list?_x000D_
1.ArrayList_x000D_
2.Dictionaries_x000D_
3.Lists_x000D_
4.Stacks_x000D_
5.Hashtable

Which are the different mechanisms 2&3 1&4


to handle collections of objects?
_x000D_
1.Arrays_x000D_
2.Enums_x000D_
3.ArrayLists_x000D_
4.Generics
How is ArrayList different from Array? 1&3&4 1&2
_x000D_
1.Both are same_x000D_
2.ArrayList length can increase
automatically_x000D_
3.ArrayList can work generically with
any type_x000D_
4.Array can work generically with any
type
What are your observations on the The code has errors You cannot assign
following code?_x000D_ two different data
_x000D_ types to the same
int iEmpNo = 10;_x000D_ ArrayList
string strEmpName = "Johm
Miller";_x000D_
_x000D_
ArrayList arrlstValues=new
ArrayList();_x000D_
_x000D_
arrlstValues.Add(iEmpNo);_x000D_
arrlstValues.Add(strEmpName);
What are your comments on the 2&4 1&3
following code?_x000D_
Hashtable openWith = new
Hashtable();_x000D_
_x000D_
openWith.Add("txt",
"notepad.exe");_x000D_
openWith.Add("bmp",
"paint.exe");_x000D_
openWith.Add("bmp",
"paint.exe");_x000D_
openWith.Add("rtf",
"wordpad.exe");_x000D_
1.It is an example of
Hashtable_x000D_
2.It is an example of ArrayList_x000D_
3.HashTable cannot have duplicate
keys_x000D_
4.HashTable cannot have duplicate
Which statements are true about 2&3 1&3&4
HashTables?_x000D_
1.The key can be the null
reference_x000D_
2.The key cannot be the null
reference_x000D_
3.The value can be the null
reference_x000D_
4.The value cannot be the null
Which all collections can be 1&3&4 1&2
implemented using Generics?_x000D_
1.Arrays_x000D_
2.Dictionaries_x000D_
3.Lists_x000D_
4.Stacks

Which of the following problems of 1&3 1&2&3


non-generic collection does generics
solve?_x000D_
1.Lack of flexibility_x000D_
2.Lack of type safety_x000D_
3.Lack of security_x000D_
4.Lack of performance while using
value types

What does the generics constraint of 1&4 2&3


type Interface do?_x000D_
1.Forces type parameter to inherit the
base class defined by the
constraint_x000D_
2.Forces type parameter to inherit the
interfaces defined by the
constraint_x000D_
3.Ensures that the object passed as a
parameter implements specific
members_x000D_
4.Forces type parameter to be a
reference type object
Which all statements are true about 1&4 2&3
Base class Generics constraints?
_x000D_
1.Force type parameter to inherit the
base class defined by the
constraint_x000D_
2.Force type parameter to inherit the
interfaces defined by the
constraint_x000D_
3.Ensure that the object passed as a
parameter implements specific
members_x000D_
4.Ensure that a parameter inherits the
specified base class 1&3&4 2&4

What are your observations on the


following code?_x000D_
private void
CheckForReferenceType<T>(T type)
where T : class, IHoldVal_x000D_
{_x000D_
type.Val = 5;_x000D_
}_x000D_
1.Code denotes usage of Generics
Constraint_x000D_
2.Code denotes Base Class Generics
constraint_x000D_
3.Code denotes Interface Generics
constraint_x000D_
4.Code denotes Reference Type
Generics Constraint
2&3&4 1&2

What are your observations on the


following code?_x000D_
private void CheckForValueType<T>(T
type)_x000D_
where T : struct, IHoldVal_x000D_
{_x000D_
type.Val = 5;_x000D_
}_x000D_
1.Code denotes usage of Generics
Constraint_x000D_
2.Code denotes Base Class Generics
constraint_x000D_
3.Code denotes Value Type Generics
Constraint_x000D_
4.Code denotes Reference Type
Generics Constraint
2&3 1&4

What are your observations on the


following code?_x000D_
private void
PrintEnumerableValues<T, U>(T
myItems) where T :
IEnumerable<U>_x000D_
{_x000D_
foreach (U item in myItems)_x000D_
{_x000D_
Console.WriteLine(item);_x000D_
}_x000D_
}_x000D_
1.Code denotes usage of Generics
Constraint_x000D_
2.Code denotes Reference Type
Generics constraint_x000D_
3.Code denotes Base Class Generics
constraint_x000D_
4.Code denotes Interface Generics
constraint
A Class that derives A Class that
from an Indexer implements an
What does the following code Interface
denote?_x000D_
public class CustomerList :
List<Customer>_x000D_
{_x000D_
public int DistinctCities_x000D_
{_x000D_
get_x000D_
{_x000D_
// compute number of unique
cities_x000D_
// that customers live in_x000D_
return 7;_x000D_
}_x000D_
}_x000D_
}
Addition will produce Result of addition
result 1. is system-
dependent.
For the code snippet shown below,
which of the following statements are
valid? public class Generic<T>_x000D_
{_x000D_
public T Field; _x000D_
public void TestSub()_x000D_
{_x000D_
T i = Field + 1;_x000D_
}_x000D_
}_x000D_
class MyProgram_x000D_
{_x000D_
static void Main(string[]
args)_x000D_
{_x000D_
Generic<int> gen = new
Generic<int>();_x000D_
gen.TestSub();_x000D_
}_x000D_
}
2&3 1&3&4
Which of the following statements are
valid about generics in .NET
Framework?_x000D_
1.Generics is a language
feature._x000D_
2.We can create a generic class,
however, we cannot create a generic
interface in C#.NET._x000D_
3.Generics delegates are not allowed
in C#.NET._x000D_
4.Generics are useful in collection
classes in .NET framework.
Program will compile A non generic
and on execution will class Hello cannot
For the code snippet shown below, print: IndiaBIX 4.2 have generic
subroutine.
which of the following statements are
valid?_x000D_
_x000D_
public class TestIndiaBix_x000D_
{_x000D_
public void TestSub<M> (M
arg)_x000D_
{_x000D_
Console.Write(arg);_x000D_
}_x000D_
}_x000D_
class MyProgram_x000D_
{_x000D_
static void Main(string[]
args)_x000D_
{_x000D_
TestIndiaBix bix = new
TestIndiaBix();_x000D_
bix.TestSub("IndiaBIX ");_x000D_
bix.TestSub(4.2f);_x000D_
}_x000D_
}
It will print string Name Generic
"Hello" on the cannot be used
For the code snippet given below, console.
which of the following statements is as a class name
valid?_x000D_ because it's a
_x000D_ keyword.
public class Generic<T>_x000D_
{_x000D_
public T Field;_x000D_
}_x000D_
class Program_x000D_
{_x000D_
static void Main(string[ ]
args)_x000D_
{_x000D_
Generic<String> g = new
Generic<String>();_x000D_
g.Field = "Hello";_x000D_

Console.WriteLine(g.Field);_x000D_
}_x000D_
}
1&3 1&4

For the code snippet given below,


which of the following statements are
valid? public class MyContainer<T>
where T: IComparable_x000D_
{_x000D_
// Insert code here_x000D_
}_x000D_
1.Class MyContainer requires that it's
type argument must implement
IComparable interface._x000D_
2.Type argument of class MyContainer
must be IComparable._x000D_
3.Compiler will report an error for this
block of code._x000D_
4.This requirement on type argument
is called as constraint.
Which of the following statements is Generics shift the Generics require
valid about advantages of generics? burden of type safety use of explicit
to the programmer type casting.
rather than compiler.
Which all are the most severe 1&2&4 1&3
exceptions?_x000D_
1.ExecutionEngineException_x000D_
2.InvalidCastException_x000D_
3.StackOverflowException_x000D_
4.OutOfMemoryException

Which statements are true about 1&3 1&2


interop exceptions?_x000D_
1.Interop exceptions are derived from
ApplicationException_x000D_
2.Interop exceptions are derived from
SystemException_x000D_
3.Interop exceptions are extended by
ApplicationException_x000D_
4.Interop exceptions are extended by
ExternalException

Which all exceptions are derived from 1&2&4 2&3&4


SystemException?_x000D_
1.ApplicationException_x000D_
2.ExternalException_x000D_
3.ArguementException_x000D_
4.InvalidOperationException

Which of the following statements is It occurs during It occurs during


correct about an Exception? compilation. linking.
Which of the following statements is Value 44 will get It will output:
correct about the C#.NET program assigned to a[6]. Index out of
given below? using System;_x000D_ bounds
namespace
IndiabixConsoleApplication_x000D_
{_x000D_
class MyProgram_x000D_
{_x000D_
static void Main(string[]
args)_x000D_
{_x000D_
int index = 6;_x000D_
int val = 44;_x000D_
int[] a = new int[5];_x000D_
try_x000D_
{_x000D_
a[index] = val ;_x000D_
} _x000D_

catch(IndexOutOfRangeException
e)_x000D_
{_x000D_
Console.Write("Index out of
bounds ");_x000D_
}_x000D_
Console.Write("Remaining
program");_x000D_
}_x000D_
}_x000D_
}Which of the following statements are 2&4 1&3
correct about exception handling in
C#.NET?_x000D_
1.If an exception occurs then the
program terminates abruptly without
getting any chance to recover from
the exception._x000D_
2.No matter whether an exception
occurs or not, the statements in the
finally clause (if present) will get
executed._x000D_
3.A program can contain multiple
finally clauses._x000D_
4.finally clause is used to perform
clean up operations like closing the
network/database connections.
Which of the following statements are 2&4 1&3
correct about exception handling in
C#.NET?_x000D_
1.If our program does not catch an
exception then the .NET CLR catches
it._x000D_
2.It is possible to create user-defined
exceptions._x000D_
3.All types of exceptions can be
caught using the Exception
class._x000D_
4.CLRExceptions is the base class for
all exception classes.

Which of the following statements is It will output: Index It will output: Bad
correct about the C#.NET program out of bounds Format Remaining
given below if a value "6" is input to Remaining program program
it? using System;_x000D_
namespace
IndiabixConsoleApplication_x000D_
{_x000D_
class MyProgram_x000D_
{_x000D_
static void Main(string[]
args)_x000D_
{_x000D_
int index; _x000D_
int val = 44;_x000D_
int[] a = new int[5];_x000D_
try_x000D_
{_x000D_
Console.Write("Enter a
number:");_x000D_
index =
Convert.Tolnt32(Console.ReadLine());
_x000D_
a[index] = val;_x000D_
}_x000D_
catch(FormatException
e)_x000D_
{_x000D_
Console.Write("Bad
Format");_x000D_
}_x000D_
Which of the following statements are 1&2&3 3&4
correct about exception handling in
C#.NET? _x000D_
1.try blocks cannot be
nested._x000D_
2.In one function, there can be only
one try block._x000D_
3.All values set up in the exception
object are available in the catch
block._x000D_
4.While throwing a user-defined
exception multiple values can be set
in the exception object.
Which of the following statements is It will output: It will output:
correct about the C#.NET program Exception occurred Remaining
given below if a value "ABCD" is input program
to it? using System;_x000D_
namespace
IndiabixConsoleApplication_x000D_
{_x000D_
class MyProgram_x000D_
{_x000D_
static void Main(string[]
args)_x000D_
{_x000D_
int index; _x000D_
int vat = 88;_x000D_
int[] a = new int(5];_x000D_
try_x000D_
{_x000D_
Console.Write("Enter a
number: ");_x000D_
index =
Convert.Toint32(Console.ReadLine());
_x000D_
a[index] = val;_x000D_
}_x000D_
catch(Exception e)_x000D_
{_x000D_
Console.Write("Exception
occurred");_x000D_
}_x000D_
Which Console.Write("Remaining
of the following statements is Delegates are Delegates are
incorrect about delegate? reference types. object oriented.
In which of the following areas are I & II I&V
delegates commonly used? _x000D_
_x000D_
I: Remoting_x000D_
II: Serialization_x000D_
III: File Input/Output_x000D_
IV: Multithreading_x000D_
V: Event handling

Which of the following is the Class declaration Inheritance


necessary condition for implementing
delegates?
Which of the following statements are I & II I, II & III
correct about a delegate? _x000D_
_x000D_
I: Inheritance is a prerequisite for
using delegates. _x000D_
II: Delegates are type-safe._x000D_
III: Delegates provide wrappers for
function pointers._x000D_
IV: The declaration of a delegate must
match the signature of the method
that we intend to call using it.

Which of the following statements are Delegates cannot be Delegates cannot


correct about delegates? used to call a static be used to call
method of a class. procedures that
receive variable
number of
arguments.
Which of the following are the correct delegate d(int i, delegate void
ways to declare a delegate for calling Single j); d(int, Single);
the function func() defined in the
sample class given below? class
Sample_x000D_
{_x000D_
public int func(int i, Single
j)_x000D_
{_x000D_
/* Add code here. */_x000D_
}_x000D_
}
Suppose on pushing a button an Attribute Delegate
object is to be notified, but it is not
known until runtime which object
should be notified. Which of the
following programming constructs
should be used to implement this
idea?

Which of the following statements is A single delegate can Delegates can be


incorrect about a delegate? invoke more than shared.
one method.

Suppose a Generic class called Namespace Interface


SortObjects is to be made capable of
sorting objects of any type (Integer,
Single, Byte etc.). Which of the
following programming constructs
should be used to implement the
comparison function?

With which of the following can the 1&4 3&4


ref keyword be used?_x000D_
1.Static data_x000D_
2.Instance data_x000D_
3.Static function/subroutine_x000D_
4.Instance function/subroutine
Which all statements are true about 2&3 1&4
Entity Framework?_x000D_
1.It takes care of relational
databases_x000D_
2.It takes care of impedance
mismatch_x000D_
3.It allows applications to be written
against conceptual models and not
directly against the database_x000D_
4.It takes care of memory mismatch
1&3&5 2&3&4&5
What all services does an Entity
Framework provide?_x000D_
1.Query services_x000D_
2.ClientView services_x000D_
3.Remoting Services_x000D_
4.Persistence services_x000D_
5.Object services
2&3 1&3
The Entity Framework divides the data
model into three separate models
which are those?_x000D_
1.Conceptual_x000D_
2.Relational_x000D_
3.Logical_x000D_
4.Physical
_x000D_ 1&2&3&4 1&2&4&5
1.Entities have a known type_x000D_
2.Entities have properties, and these
properties can hold scalar
values_x000D_
3.Entity properties can hold
references to other entities_x000D_
4.Each entity has a distinct
identity_x000D_
5.Entities have primary keys that
uniquely identify the entity
1&2 1&4

Identify the benefits of implementing


EDM in data - intensive .NET
projects_x000D_
1.Generates a data access layer that
isolates the data domain from the
application domain_x000D_
2.Handles relational database vendor
or schema changes without the need
to alter C# or VB source code and
recompile the project_x000D_
3.Models relational database concepts
such as triggers & jobs_x000D_
4.Models object-oriented concepts
such as inheritance and hierarchical
(nested) or polymorphic resultsets,
which don’t fit the relational model
What is the significance of 1&4 1&2&4
ReferentialConstraint element?
_x000D_
1.This element specifies the value of a
reference_x000D_
2.This element specifies the direction
in a relationship_x000D_
3.This element ensures data
integrity_x000D_
4.This element specifies the value of
an element
1&2 2&3
In ADO.NET which objects are
involved in connected mode
operations?_x000D_
1.DataSet_x000D_
2.Data Reader_x000D_
3.Command_x000D_
4.Connection
In ADO.NET which objects enable 2&4 1&2&3
disconnected mode operations?
_x000D_
1.DataSet_x000D_
2.Data Reader_x000D_
3.Data Adapter_x000D_
4.Command
Instantiation a new Instantiation a
What does the following code SqlConnection object new Sql database
denote? var conn = new
SqlConnection(“Data
Source=INDIA;Initial
Catalog=Products;Integrated
Security=True”);
1&4 1&3
What does the following code
denote?_x000D_
var premium = from customer in
Customers where customer.Grade ==
“Premium” select
customer.Name;_x000D_
1.The following code is an example of
Database query_x000D_
2.The following code is an example of
LINQ query_x000D_
3.The following code shows the syntax
for Ordering data_x000D_
4.The following code shows the syntax
for Filtering data
1&2&3 1&3&4

What does the following code


denote?_x000D_
var orderedCustomers = from
customer in Customers where
customer.Grade == “Premium”
orderby customer.Name select
customer.Name;_x000D_
1.The following code is an example of
Database query_x000D_
2.The following code is an example of
LINQ query_x000D_
3.The following code shows the syntax
for Ordering data_x000D_
4.The following code shows the syntax
for Filtering data
1&2&3&5 2&3&4
What does the following code
denote?_x000D_
var orderedCustomers = from
customer in Customers orderby
customer.BusinessDone descending
select new
{customer.Name,customer.BusinessD
one};_x000D_
1.The following code is an example of
Database query_x000D_
2.The following code is an example of
LINQ query_x000D_
3.The following code shows the syntax
for Ordering data in ascending
order_x000D_
4.The following code shows the syntax
for Ordering data in descending
order_x000D_
5.The following code shows the syntax
for Filtering data
2&3 1&3&5

What does the following code


denote?_x000D_
var groupedCustomers = from
customer in Customers group
customer by customer.Grade into
customerGroup select
customerGroup.Key;_x000D_
1.The following code is an example of
Database query_x000D_
2.The following code is an example of
LINQ query_x000D_
3.The following code shows the syntax
for Grouping data_x000D_
4.The following code shows the syntax
for Ordering data_x000D_
5.The following code shows the syntax
for Filtering data
1&3&4&5 2&5

What does the following code


denote?_x000D_
List<Patient> patients = new
List<Patient>_x000D_
{_x000D_
new Patient { Doctor = “Michael”,
Name = “George” },_x000D_
new Patient { Doctor = “Simpson”,
Name = “Katy” },_x000D_
new Patient { Doctor = “Michael”,
Name = “Sara” }_x000D_
};_x000D_
var patientsAndDoctors = from doctor
in hospitalStaff join patient in patients
on doctor.Name equals patient.Doctor
select new { Doctor = doctor.Name,
Patient = patient.Name };_x000D_
1.The following code is an example of
Database query_x000D_
2.The following code is an example of
LINQ query_x000D_
3.The following code shows the syntax
for Ordering data_x000D_
4.The following code shows the syntax
for Grouping data_x000D_
5.The followin+A345g code shows the
syntax for Joining data
1&3&4 1&3

How can LINQ queries be performed


against multiple tables in a DataSet?
_x000D_
1.Cannot be performed_x000D_
2.By using Join operator_x000D_
3.By using GroupBy operator_x000D_
4.By using GroupJoin operator
How can you load data into a DataSet 2&4 1&4
so that it can be queried using LINQ?
_x000D_
1.By using DataAdapter Class_x000D_
2.By using LINQ to DataSet_x000D_
3.By Using LINQ to SQL_x000D_
4.By using LINQ to XML
1&2 2&3
What are the forms in which LINQ
queries can be created?_x000D_
1.Relational data syntax_x000D_
2.Intrinsic data syntax_x000D_
3.Query-Expression syntax_x000D_
4.Method-based query syntax
3&4 1&2

On which datasources do LINQ


queries work?_x000D_
1.Datasources that implement
IEnumerable<T> interface_x000D_
2.Datasources that implement
IQueryable interface_x000D_
3.Datasources that implement IQuery
interface_x000D_
4.Datasources that implement IAccess
interface
order.Field<DateTime>("OrderDate").
Month == 8_x000D_ 2&3 1&4
select new_x000D_
{_x000D_
SalesOrderID =_x000D_

order.Field<int>("SalesOrderID"),_x00
0D_
SalesOrderDetailID =_x000D_

detail.Field<int>("SalesOrderDetailID")
,_x000D_
OrderDate =_x000D_
order.Field<DateTime>("OrderDate"),
_x000D_
ProductID =_x000D_

detail.Field<int>("ProductID")_x000D_
};_x000D_
_x000D_
1.Following code is an example of
single table query using LINQ_x000D_
2.Following code is an example of
multiple table query using
LINQ_x000D_
3.AsEnumerable method of
DataTables is called_x000D_
4.AsEnumerable method of DataSets
is called
2&3 1&4

What does the following code


denote?_x000D_
var query = from o in orders_x000D_
where o.OnlineOrderFlag ==
true_x000D_
select new
{ o.SalesOrderID,_x000D_
o.OrderDate,_x000D_
o.SalesOrderNumber };_x000D_
1.Usage of LINQ to query
DataSets_x000D_
2.Usage of LINQ to query
Typed.DataSets_x000D_
3.Usage of LINQ to query Multiple
tables_x000D_
4.Usage of LINQ to query a Single
table
In a fully rendered control which class TextWriter HtmlTextWriter
is used to write the HTML content to
the browser?
1&3&5 2&3&4
Which are the different types of
controls that you can use in ASP.NET
Web pages?_x000D_
1.ActiveX OCX controls_x000D_
2.HTML Server controls_x000D_
3.Web Server controls_x000D_
4.Validation controls_x000D_
5.User controls
2&3 1&3&4

Which statements are true about


HTML server controls?_x000D_
1.Expose Form controls to the server
so that they can be accessed_x000D_
2.Expose HTML elements to the server
so that they can be
programmed_x000D_
3.Expose an object model that maps
very closely to the HTML elements
that they render_x000D_
4.Expose an object model that maps
very closely to the Forms collection
By adding an By adding an
attribute attribute
runat="server" in the runat="client" in
page the page
How do you convert an HTML element
on the page to a HTML server control?
By using the runat By assigning an id
"server" directive attribute to the
control
How can you reference a HTML
control as a member within your
code?
The following code The following
What does the following code shows how to code shows how
denote?_x000D_ declare a HTML to declare a Web
<input id="Name" type="text" element server control
size="40" runat="server" />_x000D_
<input type="submit" id="Enter"
value="Enter" runat="server" />
1&2&3 1&3&4
How are HTML server control classes
categorized in the HTML hierarchy?
_x000D_
1.The classes that mimic the HTML
<ref> tag_x000D_
2.The classes that mimic the HTML
<input> tag_x000D_
3.The classes that may act as
container classes_x000D_
4.The HtmlImage class
Which control can be used to ensure RequiredFieldValidat RangeValidator
that the user does not miss an entry? or
What does the following code Usage of Usage of
denote?_x000D_ RequiredFieldValidat RangeValidator
PHONENO: <asp:TextBox or
id="txtPinCode"
runat="SERVER"></asp:TextBox>_x00
0D_
<asp:RegularExpressionValidator
_x000D_
id="txtPhoneNumber_validation"
runat="SERVER" _x000D_

ControlToValidate="txtPhoneNumber"
_x000D_
ErrorMessage="Enter a valid
Phone number with area
code"_x000D_
ValidationExpression="\d{4}(-\
d{8})?">_x000D_
</asp:RegularExpressionValidator>
What does the following code Usage of Usage of
denote?_x000D_ RequiredFieldValidat RangeValidator
<table>_x000D_ or
<tr>_x000D_
<td>_x000D_
<asp:Textbox id="txtAge"
runat="server"></asp:Textbox>_x000
D_
</td>_x000D_
<td>_x000D_
<asp:CompareValidator
id="CompareFieldValidator1"
runat="server"_x000D_
ForeColor="Blue"_x000D_
ControlToValidate="txtAge"_x000D_
ValueToCompare="0"_x000D_
Type="Integer"_x000D_
Operator="GreaterThanEqual"_x000D
_
ErrorMessage="Please enter a
whole number zero or
greater.">_x000D_
</asp:CompareValidator >_x000D_
</td>_x000D_
</tr>_x000D_
</table>
denote?_x000D_ Usage of Usage of
<asp:Textbox id="txtFirstName" RequiredFieldValidat RangeValidator
runat="server"></asp:Textbox>_x000 or
D_
<asp:RequiredFieldValidator
id="RequiredFieldValidator1"
runat="server"_x000D_
ControlToValidate="txtFirstName"_x0
00D_
ErrorMessage="First name is a
required field."_x000D_
ForeColor="Blue">_x000D_
</
asp:RequiredFieldValidator>_x000D_
Which statements are true about 1&2&3 1&3&4
themes?_x000D_
1.Themes enable you to apply
consistent style to pages in your
website_x000D_
2.Themes can be used to control
navigation order between
pages_x000D_
3.Themes can be used to control the
appearance of HTML
elements_x000D_
4.Themes can be used to control the
appearance of ASP.NET controls
How are themes different from Themes allow you to Themes allow you
master pages? share content across to control the
multiple pages in a appearance of
web site contents

Please choose statements that are 2&3 1&2&4


true about creating themes._x000D_
1.Themes are created by adding a
folder in App_Themes folder_x000D_
2.Themes are created by adding a
folder in App_Directory
folder_x000D_
3.Each folder that you add to the
App_Directory folder represents a
different Theme_x000D_
4.Each folder that you add to the
App_Themes folder represents a
different Theme

Which statements are true about 1&3 1&2&4


Skins to Themes?_x000D_
1.A theme can contain only one
skin_x000D_
2.A theme can contain one or more
Skin files_x000D_
3.A skin enables you to modify any of
the events of an ASP.NET control that
get triggered on certain
conditions_x000D_
4.A skin enables you to modify any of
the properties of an ASP.NET control
that have an effect on its appearance
What does the following code snippet Usage of a Master Usage of a Named
denote?_x000D_ page skin
<asp:TextBox_x000D_
SkinID=”DashedTextBox”_x000D_
BorderStyle=”Dashed”_x000D_
BorderWidth=”5px”_x000D_
Runat=”Server” />

How can you override Skin properties? By applying a Theme By applying a


to a page with the Theme to a page
MasterPage attribute with the Skin
attribute

How can you prevent a skin from By setting By setting


being applied to a particular control? EnableTheming EnableTheming
property to_x000D_ property to false
_x000D_
true

What does the following listing Registring a Registring a


denote?_x000D_ StyleSheetTheme in theme in
<configuration>_x000D_ web.config web.config
<system.web>_x000D_
<pages theme=”Website” />_x000D_
</system.web>_x000D_
</configuration>

How can you expose properties & By declaring them as By declaring them
methods from a Master Page so that protected as private
they are modifiable from a particular
content page?
What are the similarities between 2&4 1&2&3
UserControl class & Page class?
_x000D_
1.Both derive from the base
TemplateControl class _x000D_
2.Both derive from the base Control
class _x000D_
3.Both share same property, methods
& events_x000D_
4.Both share same interfaces

What is the significance of the @ The directive is used The directive is


Register directive in a ASP.NET web to register a web used to register a
page? page user control

What attributes does the @ Register 1&2&4 3&4


contain?_x000D_
1.TagPrefix_x000D_
2.TagName_x000D_
3.Cntrl_x000D_
4.Src

What are the differences between a 1&2&3&4 1&2&5


user control & a page?_x000D_
1.The file name extension for the user
control is .ascx_x000D_
2.The user control contains an @
Control directive that defines
configuration and other
properties_x000D_
3.The user control contains an @ Page
directive that defines the page in
which it is embedded_x000D_
4.The user controls cannot run as
stand-alone file_x000D_
5.The user control does not have
html, body, or form elements in it.
These elements must be in the
hosting page

Which attribute of the @ Register TagPrefix TagName


directive indicates the name space
you want to associate with the user
control for the current page?
Which are the different mechanisms 2&4 1&3
of setting a property of a user control
once it is exposed?_x000D_
1.The property can be set
declaratively_x000D_
2.The property can be set in a config
file_x000D_
3.The property can be set
programmatically_x000D_
4.The property can be set dynamically

Which attribute of the @ Register TagPrefix TagName


directive indicates the name you want
to associate with the user control for
the current page?
Which all are the different mechanism 2&3 1&3&4
of registering a user control?_x000D_
1.By using a @ Register directive in
the web page_x000D_
2.By using @ RegisterControl directive
in the web page_x000D_
3.By manually installing the user
control_x000D_
4.By registering the user control in the
web.config file

How do you make the events raised By raising the events By writing a
by child controls in a user control of each child control delegate in the
available to the host page? host page

Which attribute of the @ Register TagPrefix TagName


directive indicates the virtual path to
the user control?
Which all controls in ASP.NET can be 2&3 1&4
used to display text in a page?
_x000D_
1.ListBox_x000D_
2.Label_x000D_
3.Literal_x000D_
4.CheckBoxList_x000D_

2&3&4 1&3&4
What statements are applicable to
Panel control?_x000D_
1.It can be used as a container to
other controls_x000D_
2.It is rendered as an HTML <span>
element_x000D_
3.It is rendered as an HTML <div>
element_x000D_
4.It displays a link to another page
1&3 2&4
Identify the statements that are
applicable to the Literal
control._x000D_
1.Literal control does not support
CssClass_x000D_
2.Literal control does not support
BackColor_x000D_
3.Contents of a Literal control are
contained in a <span> tag_x000D_
4.Contents of a Literal control are not
contained in a <span> tag
1&4 1&2&5
Which are the different values that
TextMode property of a TextBox
control can have?_x000D_
1.ReadOnly_x000D_
2.SingleLine_x000D_
3.MultiLine_x000D_
4.AutoFill_x000D_
5.Password
Check event is raised Check event is
at the client side raised on the
server
What happens when a Check box is
checked or unchecked by the user?
1&2&5 3&4&5
Which controls can be used to submit
form data to the server?_x000D_
1.CheckBox_x000D_
2.Button_x000D_
3.Image_x000D_
4.ImageButton_x000D_
5.LinkButton
1&3&4 2&3

Which all statements are true about


OnClientClick property?_x000D_
1.It is applicable to CheckBox control,
RadioButton controls_x000D_
2.It is applicable to Button, LinkButton
& ImageButton controls_x000D_
3.It executes a Javascript at the client
side on click of the control_x000D_
4.It executes a server-side script on
click of the control
By using the By using the
PostBackUrl property PostBack property
How can you post form data to
another page?
2&3 3&4
Identify statements that are
applicable to AutoPostBack
attribute._x000D_
1.It automatically submits form to the
server_x000D_
2.It submits form only on click of a
button_x000D_
3.It submits form on execution of a
client script_x000D_
4.Too many AutoPostBacks hamper
the overall performance
2&3&4 3&4

Which statements are applicable to


MultiView control?_x000D_
1.MultiView control enables you to
hide and display different areas of a
page_x000D_
2.MultiView is useful when you need
to create a tabbed page_x000D_
3.MultiView control contains one or
more View controls_x000D_
4.You can render multiple view
controls at any given time
Which all languages can be used to 3&4 1&2
develop a ASP.NET application?
_x000D_
1.C#_x000D_
2.Visual Basic .NET_x000D_
3.Visual Basic_x000D_
4.C Language
_x000D_
1.ASP.NET is Object oriented_x000D_ 1&3 2&4
2.ASP.NET is Procedure
oriented_x000D_
3.ASP.NET does not support
VBScript_x000D_
4.Scripts can be written in VBScript in
ASP.NET
Can we use components developed in Yes; at the assembly Yes; you can use
VB6.0 in ASP.NET? level components VB6.0
developed is VB6.0 components using
are same as Runtime Callable
components Wrapper (RCW)
developed in .NET,
hence they can be
used as any
other .NET
component
Can we use components developed Yes; at the assembly Yes; you can
in .NET in legacy applications like level components use .NET
VB6.0? developed is .NET are components in
same as components VB6.0 using
developed in VB6.0, Runtime Callable
hence they can be Wrapper (RCW)
used in VB6.0

How is the issue of DLL Hell taken care Through versioning Through COM
of in ASP.NET? of .NET assemblies interop

Why are ASP.NET applications slightly Because .NET Because on first


slower on first load? framework execution load ASP.NET files
is slower compared are compiled, if
to ASP necessary,
into .NET page
classes & then
executed

How is POST different from GET? POST does not send POST sends
any information information
back to the server embedded in the
URL

1&4 3&4
What are the different parts of an
ASP.NET web page?_x000D_
1.An aspx page consisting UI elements
(file name with
extension .aspx)_x000D_
2.A code behind file consisting of
corresponding code (file name with
same name as the aspx page & having
an extension .cs)_x000D_
3.A configuration file with .config
extension_x000D_
4.A resource file with .resx extension
Request Response
Which class enables ASP.NET to read
the HTTP values sent by a client during
a Web request?
Request Response
Which class encapsulates HTTP-
response information from an
ASP.NET operation?
1&2 3&4

Which statements are true about


Directives?_x000D_
1.A directive begins with a <%_x000D_
2.A directive ends with a %>_x000D_
3.Directives are used to directly
compile an ASP.NET page_x000D_
4.Directives are used primarily to
provide the compiler with the
information it needs to compile the
page
2&4 1&2&4
How does ASP.NET leverage on
the .NET framework?_x000D_
1.By using the Framework Class
Library (FCL) of .NET_x000D_
2.By using configuration files_x000D_
3.By taking advantage of Common
Language Runtime (CLR)_x000D_
4.By executing in web browsers
1&4 2&4

What happens when an ASP.NET


application is compiled?_x000D_
1.The application is compiled to
machine code_x000D_
2.The compiler compiles the
application to an intermediate
language (IL)_x000D_
3.The compiled application can be
directly executed_x000D_
4.When the application executes, the
intermediate code is compiled by Just-
in-time compiler & that too at method
level
The click event is The click event is
directly sent to the executed in the
server from the client browser at the
page client side

What all happens when a button on


an ASP.NET page is clicked?
IV, I, III, II I, II, III, IV
How does the server handle a page
request? Please arrange the steps in
right order_x000D_
_x000D_
I: If the class hasn't changed the
previously compiled code is
executed_x000D_
II: The class is recompiled from the
new source_x000D_
III: If the class has changed the old
code is deleted_x000D_
IV: The server checks whether the
requested page has changed
By using <% Page %> By using <%
directive Langauge %>
directive

How can you use multiple languages


in same ASP.NET page?
By declaring the By registering the
assembly public assembly in the
same folder as the
How do you make an assembly visible IIS root folder
to all the web applications instead of
just one?
System.Web System.Data
Which namespace has to be included
in the code if you want to use
DataSets or DataReaders?
F
Importing namespaces adds overhead
to my applications._x000D_
State True or False.
By checking the By checking the
PostBack property IsPostBack
How do you identify whether a page is property
posted back or not?
__________ is a network protocol LDAP UDP
used to deliver virtually all files and
other data, collectively called
resources, on the World Wide Web.
ASP.NET supports VBScript;_x000D_ F
State True or False.
____________ are small amounts of Objects Cookies
data sent by a program to the browser
and stored on the user's machine to
be retrieved later.
Which statement is true about session Session variables are Session variables
variables? used to store are used to store
information about information about
assemblies used in the entire
the current session application state

_____________ are cleared when the Session variables Local variables


server is restarted.
What can be used by the browser to Session variables Local variables
recognize a user who returns back to a
website after several hours?
______________ allows you to create CGI HTML
dynamically generated web pages
from the server side using a scripting
language such as VBScript or
JavaScript.
What is a Web Server? A server application A server
that runs on the web application that
runs on the client

What is a URL? A string that The response


represents a client from the server to
request for a a client request
resource on a server
___________ is a numerical label HTML XML
assigned to each device like a
computer, a printer etc. participating
in a computer network that uses the
Internet Protocol for communication.

____________is the process of Globalization Localization


customizing your application for a
given culture and locale.
Which two properties of a page class 1&3 2&3&4
have an effect on localization?
_x000D_
1.Culture_x000D_
2.Localize_x000D_
3.UICulture_x000D_
4.Globalize
The _____________ property is used Culture Localize
to specify which resource files are
loaded for the page.
What is the significance of Culture The Culture property The Culture
property of a page class? is used to specify property
which resource files determines how
are loaded for the strings such as
page dates,
numerals,and
currency amounts
are formatted

What is a Neutral culture? When you provide a When you do not


country/region code specify either the
but no culture name country/region
code or the
culture name

What is referred to as Specific If you provide only a If you provide only


Culture? language code but no a country/region
country/region code code but no
language code

Culture & UICulture properties of a T F


page class can have different culture
values._x000D_
State True or False.
What is the effect on the currency Currency symbol is Currency values
amount values by setting the Culture automatically placed are automatically
information? converted

How can you display dates with By modifying the By modifying the
language specific month names? Culture property UICulture
property
What does the following culture name It denotes that the It denotes that the
denote: en-GB? language is English & language is English
Country is United & Country is
Kingdom United States

1&2&3 1&2

Which are the different ways in which


you can separate code & content in
ASP.NET?_x000D_
1.By using code-behind files that are
pre-compiled modules written in
any .NET compliant languages_x000D_
2.By using resource files_x000D_
3.By creating user controls_x000D_
4.By moving business logic into
components that can run on the
server & calling those components
from server-side
partitioning an ASP.NET web page?
2&3 1&4
_x000D_
1.Individual members of the
development team can work on
separate, individually-owned
parts_x000D_
2.Developers can work within
environments that are
familiar_x000D_
3.Database administrators can create
database related tasks
independently_x000D_
4.Web Authors can use HTML
development tools to build the
interface
separating a ASP.NET web page? 1&2&3&5 1&2&4
_x000D_
1.Create a file for user
interface_x000D_
2.Create a file for database_x000D_
3.Create a file for interface
logic_x000D_
4.Use page directive to link the two
files_x000D_
5.Call procedures in the code-behind
page
2&4 3&4
Which are the basic steps to use a
user control?_x000D_
1.Include a User control in another
ASP.NET page using the register
directive_x000D_
2.Upload the user control in IIS
root_x000D_
3.Insert the user control like a server
control_x000D_
4.Set properties of the user control
2&3 1&4
What are the advantages of
using .NET components over
components developed in older
technologies?_x000D_
1.No registration required_x000D_
2.No restart required_x000D_
3.Components cannot be
deleted_x000D_
4.multiple version of components can
exist
Compiler omits the Compiler
code generates an error

What will happen if there is an


implementing partial without a
defining partial in a partial method?
1&3 2&3

Which all statements are true about


Partial Methods?_x000D_
1.Partial methods must be members
of partial types_x000D_
2.Partial methods must be in the same
file_x000D_
3.There are two parts to partial
methods: a defining part and
implementation part_x000D_
4.Partial methods have only the
implementation part
amount = value;_x000D_
AmountChanged(amount);_x000D_ 1&3 3&4
}_x000D_
}_x000D_
_x000D_
partial void AmountChanged(double
amount);_x000D_
}_x000D_
_x000D_
_x000D_
// File-B_x000D_
public partial struct
CurrencyDetails_x000D_
{_x000D_
partial void AmountChanged(double
amount)_x000D_
{_x000D_
MessageBox.Show(“Amount is “ +
amount.ToString());_x000D_
}_x000D_
}_x000D_
1.It is an example of sealed
class_x000D_
2.It is an example of Partial
Method_x000D_
3.AmountChanged method has only
defining partial_x000D_
4.AmountChanged method has
defining partial as well as
implementing partial
1&3&4 2&3

What are the advantages of partial


classes?_x000D_
1.When multiple deployments are
required_x000D_
2.When working on large projects,
spreading a class over separate files
allows multiple programmers to work
on it simultaneously_x000D_
3.When multiple versions of assembly
are required_x000D_
4.When working with automatically
generated source, code can be added
to the class without having to recreate
the source file
1&2&3 2&3&4

What are the rules to follow when


working with partial class definitions?
_x000D_
1.Partial definitions must span
multiple modules_x000D_
2.All partial-type definitions meant to
be parts of the same type must be
modified with partial_x000D_
3.The partial modifier can only appear
immediately before the keywords
class, struct, or interface_x000D_
4.All partial-type definitions meant to
be parts of the same type must be
defined in the same assembly and the
same module (.exe or .dll file). Partial
definitions cannot span multiple
modules
Which are the different security 1&3&5 1&2&3&4
mechanisms that are included in the
ASP.NET Framework?_x000D_
1.ASP.NET Authentication_x000D_
2.ASP.NET Authorization_x000D_
3.ASP.NET Membership_x000D_
4.ASP.NET Encryption_x000D_
5.Role Manager

Which are the different types of 1&3&4 2&3&4


authentication mechanisms that
ASP.NET framework supports?
_x000D_
1.Windows Authentication_x000D_
2.Identity Authentication_x000D_
3..NET Passport
Authentication_x000D_
4.Forms Authentication
Identify the statements that are 3&4 1&4
applicable to Windows
authentication._x000D_
1.Users are identified by entries in the
database_x000D_
2.Users are identified by their
Microsoft Windows account
names_x000D_
3.Roles correspond to Microsoft
Windows groups_x000D_
4.The responsibility of identifying
users is delegated to Internet
Information Server

Which statements are true about 2&4 1&3&4


Forms authentication?_x000D_
1.Users are identified by a
cookie_x000D_
2.Users are identified by their
Microsoft Windows account
names_x000D_
3.User and role information is stored
in a custom data store_x000D_
4.Roles correspond to Microsoft
Windows groups
Which Membership providers are 2&4 3&4
supported by ASP.NET framework?
_x000D_
1.FormsMembershipProvider_x000D_
2.WindowsMembershipProvider_x000
D_
3.SqlMembershipProvider_x000D_
4.ActiveDirectoryMembershipProvider
What does the Stores user Stores user
SqlMembershipProvider do? information in the information in SQL
config file Server database
What does the following code snippet It shows how the It shows how the
denote?_x000D_ config file is config file is
<configuration>_x000D_ configured to use configured to use
<connectionStrings>_x000D_ membership membership
<add name=”MyConnection” information from the information from
connectionString=”Data default SQL Server a database other
Source=MyServer;IntegratedSecurity= database than the default
_x000D_ SQL Server
True;Initial database
Catalog=MyDatabase”/>_x000D_
</connectionStrings>_x000D_
_x000D_
<system.web>_x000D_
<authentication mode=”Forms”
/>_x000D_
_x000D_
<membership
defaultProvider=”MyMembershipProv
ider” >_x000D_
<providers>_x000D_
<add_x000D_
name=”MyMembershipProvider”
_x000D_

type=”System.Web.Security.SqlMemb
ershipProvider”_x000D_

connectionStringName=”MyConnectio
n” />_x000D_
</providers>_x000D_
What steps should be completed if 1&3 1&4
you want to use ASP.NET Membership
with Active Directory Application
Mode?_x000D_
1.Create a SQLServer instance and
create the required classes_x000D_
2.Create an ADAM instance and
create the required classes_x000D_
3.Configure your application to use
the
ActiveDirectoryMembershipProvider
and connect to the ADAM
instance_x000D_
4.Configure your application to use
the SqlMembershipProvider and
connect to the ADAM instance
What does the following code snippet It shows how the It shows how the
denote?_x000D_ config file is config file is
<configuration>_x000D_ configured to use configured to use
<system.web>_x000D_ membership membership
<authentication mode=”Forms” information from the information from
/>_x000D_ default SQL Server a database other
<membership database than the default
defaultProvider=”OwnMembershipPr SQL Server
ovider”>_x000D_ database
<providers>_x000D_
_x000D_
<add_x000D_

name=”OwnMembershipProvider”_x0
00D_

type=”MembershipProvider.XmlOwn
MembershipProvider” _x000D_

dataFile=”~/App_Data/OwnMembers
hip.xml”_x000D_
requiresQuestionAndAnswer=”false”_
x000D_
enablePasswordRetrieval=”true”_x00
0D_

enablePasswordReset=”true”_x000D_
passwordFormat=”Clear”
Which Membership provider 1&3&4 2&4&5
attributes can be set to determine the
password policy?_x000D_
1.minRequiredPasswordLength_x000
D_
2.maxRequiredPasswordLength_x000
D_
3.minRequiredAlphanumericCharacter
s_x000D_
4.minRequiredNonalphanumericChara
cters_x000D_
5.passwordStrengthRegularExpression
_x000D_
provided by ASP.NET framework?
_x000D_ 2&3 1&4
1.SqlRoleProvider_x000D_
2.ActiveDirectoryRoleProvider_x000D
_
3.WindowsTokenRoleProvider_x000D
_
4.AuthorizationStoreRoleProvide
Enables you to use Enables you to use
ActiveDirectory to Microsoft
represent role Windows groups
information to represent role
information
What does
WindowsTokenRoleProvider do?
What does Enables you to use Enables you to use
AuthorizationStoreRoleProvider do? ActiveDirectory to Microsoft
represent role Windows groups
information to represent role
information

What does the following code snippet It enables It enables


do?_x000D_ SqlRoleProvider WindowsTokenRol
<configuration>_x000D_ eProvider
<system.web>_x000D_
<roleManager enabled=”true”
/>_x000D_
<authentication mode=”Forms”
/>_x000D_
</system.web>_x000D_
</configuration>
The configuration file The configuration
authorizes every file authorizes
What does the following code snippet website user everyone except
do?_x000D_ Accounts
<configuration>_x000D_
<system.web>_x000D_
<authorization>_x000D_
<allow roles=”Accounts”/>_x000D_
<deny users=”*”/>_x000D_
</authorization>_x000D_
</system.web>_x000D_
</configuration>
The configuration file The configuration
configures the file configures the
SqlRoleProvideras WindowsTokenRol
What does the following code snippet the default provider eProvider as the
do?_x000D_ default provider
<configuration>_x000D_
<system.web>_x000D_
<authentication
mode=”Windows” />_x000D_
<roleManager enabled=”true”
defaultProvider=”MyRoleProvider”>_x
000D_
<providers>_x000D_
<add_x000D_
name=”MyRoleProvider”_x000D_
type=”System.Web.Security.Windows
TokenRoleProvider” />_x000D_
</providers>_x000D_
</roleManager>_x000D_
</system.web>_x000D_
</configuration>
The settings enable The settings
What do the settings in the following role verification enable caching
web.config do?_x000D_ roles in a browser
<configuration>_x000D_ cookie
<system.web>_x000D_
<roleManager_x000D_
enabled=”true”_x000D_
cacheRolesInCookie=”true”_x000D_
createPersistentCookie=”true”
/>_x000D_
</system.web>_x000D_
</configuration>
AddUsersToRole AddUsersToRoles
Which method of the Role class will
enable you to add an array of users to
a role?
AddUsersToRole GetUsersInRole
Which method enables you to return
a list of users in a role that has a
particular username?
By using the By using the
PersistentCookie CreatePersistentC
attribute of the Role ookie attribute of
Manager the Role Manager
How do you create a persistent
cookie?
3&4 1&2
How does ASP.NET react when a page
is requested by the user?_x000D_
1.ASP.NET directly displays the
page_x000D_
2.ASP.NET automatically compiles the
page_x000D_
3.ASP.NET determines whether the
page needs to be parsed and
compiled _x000D_
4.ASP.NET determines whether a
cached version of the page can be
sent in response without running the
page
Start stage of the page life cycle? 2&3&4 1&2
_x000D_
1.Request and Response page
properties are set_x000D_
2.The page determines whether the
request is a postback or a new
request_x000D_
3.The page_load event is
called_x000D_
4.The page sets the IsPostBack
property
2&4 1&2

What all activities happen during the


Initialization stage of the page life
cycle?_x000D_
1.Each control's UniqueID property is
set_x000D_
2.Postback data is loaded_x000D_
3.A master page and themes are
applied to the page_x000D_
4.Control property values are restored
to the values from view state
Controls are Control properties
registered are set to Null

What all happens during page load?


How is the Postback event handling 2&3&4 1&3
done during a page life cycle?_x000D_
1.Control event handlers are
called_x000D_
2.Page Load event is
triggered_x000D_
3.The Validate method of all validator
controls is called_x000D_
4.The IsValid property of individual
validator controls is set
1&3 2&4

What all happens before & during the


Rendering stage of the page life cycle?
_x000D_
1.Page load event is triggered_x000D_
2.View state is saved for the page and
all controls_x000D_
3.Control properties are loaded with
information recovered from view
state and control state_x000D_
4.The Render method for each control
is called by the page
2&3&4 1&2&4
Which statements are true about the
unload event of the page life cycle?
_x000D_
1.Event is raised before the page has
been fully rendered, sent to the client,
and is ready to be discarded_x000D_
2.Event is raised after the page has
been fully rendered, sent to the client,
and is ready to be discarded_x000D_
3.Page properties such as Response &
Request are unloaded_x000D_
4.Cleanup is performed
PreInit Init
Which event is raised after the start
stage is complete and before the
initialization stage begins in a page life
cycle?
PreInit Init
Which event is raised after the page
loads view state for itself and all
controls, and after it processes
postback data that is included with
the Request instance?
Init InitComplete
Which event is raised at the end of
the event-handling stage of the page
life cycle?
How do you separate ASP.NET code Using ASP.NET web Using Code-
from the user interface? pages Behind forms
How do you implement code behind? 1&3 2&3&4
_x000D_
1.All the user interface related code is
written in a .aspx file_x000D_
2.All the user interface related code is
written in a .cs or .vb file_x000D_
3.All the business logic is written in
a .cs or .vb file_x000D_
4.All the business logic is written in
a .aspx file
What does following directive 1&3&4 2&4
denote?_x000D_
<%@ Page Language="C#"
AutoEventWireup="true"
CodeFile="Default.aspx.cs"
Inherits="_Default" %>_x000D_
1.It denotes that the html details of
the page are in
Default.aspx.cs_x000D_
2.It denotes that the .NET code of the
page is in Default.aspx.cs_x000D_
3.It denotes that the language used
for coding is C#_x000D_
4.It denotes that C# code blocks are
embedded in the html elements

In ASP.NET which class does the code System.Web.UI.Contr System.Web.UI.W


behind page inherit from? ol ebControl
What are the implications of inheriting 1&3&4 2&4
the code-behind page from a Page
class in an ASP.NET application?
_x000D_
1.Inheriting from the Page class gives
the code-behind page access to the
HTML elements in the web
page_x000D_
2.Inheriting from the Page class gives
the code-behind page access to the
ASP.NET intrinsic objects, such as
Request and Response_x000D_
3.Inheriting from the Page class
provides a framework for handling
events for controls within the ASP.NET
page_x000D_
4.Inheriting from the Page class
provides a framework for handling
application configuration issues
What does the following code It denotes a config It denotes an aspx
denote?_x000D_ file page
<%@ Page Language="C#"
Inherits="MyStuff.MyClass"
%>_x000D_
<HTML>_x000D_
<body>_x000D_
<form id="MyForm"
runat="server">_x000D_
<asp:textbox id="MyTextBox"
text="Hello World"
runat="server"></asp:textbox>_x000
D_
<asp:button id="MyButton"
text="Echo Input"
Onclick="MyButton_Click"
runat="server"></asp:button>_x000D
_
<asp:label id="MyLabel"
runat="server" />_x000D_
</form>_x000D_
</body>_x000D_
</HTML>
What does the following code It denotes a user It denotes an aspx
denote?_x000D_ control page
using System;_x000D_
using System.Web;_x000D_
using System.Web.UI;_x000D_
using
System.Web.UI.WebControls;_x000D_
_x000D_
namespace MyStuff_x000D_
{_x000D_
public class MyClass : Page_x000D_
{_x000D_
protected
System.Web.UI.WebControls.Label
MyLabel;_x000D_
protected
System.Web.UI.WebControls.Button
MyButton;_x000D_
protected
System.Web.UI.WebControls.TextBox
MyTextBox;_x000D_
_x000D_
public void
MyButton_Click(Object sender,
EventArgs e)_x000D_
{_x000D_
MyLabel.Text =
MyTextBox.Text.ToString();_x000D_
}_x000D_
}_x000D_
What is the significance of @ Control 3&4 2&4
directive in a aspx page?_x000D_
1.It defines page-specific attributes
used by the ASP.NET page parser and
compiler_x000D_
2.It defines control-specific attributes
used by the ASP.NET page parser and
compiler_x000D_
3.It can be included only in .aspx
files._x000D_
4.It can be included only in .ascx files
What does the @ Import directive do? Defines page-specific Defines control-
attributes used by specific attributes
the ASP.NET page used by the
parser and compiler ASP.NET page
parser and
compiler

What does the following culture name It denotes that the It denotes that the
denote: en-GB? language is English & language is English
Country is United & Country is
Kingdom United States

How do you set the culture By setting the By setting the


information manually? UICulture & Culture UICulture &
property of the <%@ Culture property
Page %> directive in of the <%@
the aspx Culture %>
directive in the
aspx

How do you access culture names By accessing the By calling the


programmatically? culture information GetCultures
from web.config method of the
CultureInfo class

How do you automatically detect a By checking the ini By checking the


user's culture? file registry settings

Whenever a browser makes a request Language Accept-Language


for a web page, the browser sends
_________ header.
How can you retrieve the value of By using the settings By calling the
Accept_Language header? in web.config GetCultures
method of the
CultureInfo class
How do you set the Culture or By using the settings By calling the
UICulture properties automatically? in web.config GetCultures
method of the
CultureInfo class

How do you set the Culture or By setting the values By calling the
UICulture properties once for the in web.config GetCultures
entire application instead of each method of the
page? CultureInfo class
What does the following code snippet 2&4 1&3&4
denote?_x000D_
<%@ Page Language=”C#”
Culture=”en-GB” UICulture=”en-GB”
%>_x000D_
1.How to set the Culture property
manually_x000D_
2.How to set the Culture property
dynamically_x000D_
3.How to set the UICulture property
manually_x000D_
4.How to set the UICulture property
dynamically

What does the Accept_Language Contains information Contains


header contain? of the default information of the
language basic language
The value of the Culture property T F
automatically has an effect on the
rendering behavior of ASP.NET
controls; State True or False.
Enables you to Enables you to
retrieve an unsorted retrieve a sorted
hashtable of cultures hashtable of
of type CultureInfo cultures of type
What does the GetCultures method of CultureInfo
the CultureInfo class do?
1&2&3 1&4
Which statements are true about
App_LocalResources folder?_x000D_
1.All the resource files to be
associated with a page must be added
to App_LocalResources folder_x000D_
2.App_LocalResources folder must
contain the application config
file_x000D_
3.The application config file must
contain details of the
App_LocalResources folder_x000D_
4.App_LocalResources folder is
created in the same folder as the page
you want to localize
2&3&4 1&2&3
Identify from the list the localization
resource files that can be associated
with a page called MyPage.aspx which
is constructed for US English._x000D_
1.MyPage.resx_x000D_
2.MyPage.aspx.resx_x000D_
3.MyPage.aspx.en-US.resx_x000D_
4.MyPage.aspx.en.resx
2&3&4 1&2
What types of resource files does
ASP.NET framework support?_x000D_
1.Local_x000D_
2.Private_x000D_
3.Protected_x000D_
4.Global
When a user When a user
requests the page, a requests the page,
resource file that a resource file
matches the settings that matches the
in the config file is Culture property
loaded automatically of the page
directive is loaded
automatically

What happens when the value of


UICulture attribute in the <%@ Page >
directive is set to value auto?
By using explicit By using implicit
localization localization
expression expression

How do you localize multiple control


properties with one resource key?
It represents a local It represents a
What does the meta:resourcekey resource file name value from a local
property in the code denote?_x000D_ resource file
<asp:Button_x000D_
id=”btnSubmit”_x000D_
meta:resourceKey=”btnSubmit”_x000
D_
Text=”Save Data”_x000D_
ToolTip=”Click to Save data”_x000D_
OnClick=”btnSubmit_Click”_x000D_
Runat=”server” />
By using the By using the
GetResource method GetObject method
How do you retrieve Local resources
programmatically?
1&4 2&3
Which statements are true about
App_GlobalResources folder?_x000D_
1.All the resource files to be
associated with the entire application
must be added to
App_GlobalResources folder_x000D_
2.App_GlobalResources folder must
contain the application config
file_x000D_
3.The application config file must
contain details of the
App_GlobalResources folder_x000D_
4.App_GlobalResources folder must
be located in the root of the
application
By using the By using the
GetResource method GetObject method
How can you retrieve Global resources
programmatically?
Globalization Localization
____________is the process of
customizing your application for a
given culture and locale.
Which two properties of a page class 2&4 1&2
have an effect on localization?
_x000D_
1.Culture_x000D_
2.Localize_x000D_
3.UICulture_x000D_
4.Globalize
Culture Localize
The _____________ property is used
to specify which resource files are
loaded for the page.
What is the significance of Culture The Culture property The Culture
property of a page class? is used to specify property
which resource files determines how
are loaded for the strings such as
page dates,
numerals,and
currency amounts
are formatted

What is a Neutral culture? When you provide a When you do not


country/region code specify either the
but no culture name country/region
code or the
culture name

What is referred to as Specific If you provide only a If you provide only


Culture? language code but no a country/region
country/region code code but no
language code

T F
Culture & UICulture properties of a
page class can have different culture
values. State True or False.
What is the effect on the currency Currency symbol is Currency values
amount values by setting the Culture automatically placed are automatically
information? converted
How can you display dates with By modifying the By modifying the
language specific month names? Culture property UICulture
property
How does SOAP enable creation & 1&2&3 1&3&4
usage of Web services?_x000D_
1.Enables messaging over
HTTP_x000D_
2.Uses proprietary means of
describing data_x000D_
3.Uses standard means of describing
data_x000D_
4.Provides a robust mechanism to
send data & structure over the web
Which statements are applicable to
Web services?_x000D_ 1&2&4 1&3&4
1.Web services are built on
DCOM_x000D_
2.The data transfer is XML
based_x000D_
3.The communication protocol most
often used for Web services is
SOAP_x000D_
4.The information is passed back &
forth through TCP/IP_x000D_
5.The information is passed back &
forth through HTTP
It is an example of a It is an example of
What does the following code remoting client a web method of
denote?_x000D_ an aspx page
public class Sample_x000D_
{_x000D_
[WebMethod]_x000D_
public string
CompanyName()_x000D_
{_x000D_
return "Cognizant";_x000D_
}_x000D_
}
How is a web service different from an 1&2&4&5 2&3&4
aspx page?_x000D_
1.A web service runs on the
server_x000D_
2.A web service is based on XML data
transfer_x000D_
3.A web service file extension
is .asmx_x000D_
4.Methods of a web service are
tagged as web methods_x000D_
5.A web service is same as an aspx
page
System.Web.UI.Page System.Web.UI.Co
ntrol
What is a web service class derived
from?
2&4 1&2&3

What are your observations on the


following code?_x000D_
public class Sample_x000D_
{_x000D_
[WebMethod]_x000D_
public long CalculateAmount(int
itemQty)_x000D_
{_x000D_
long totalAmount = itemQty *
150;_x000D_
_x000D_
MessageBox.Show(totalAmount.ToStri
ng()); _x000D_
}_x000D_
}_x000D_
1.It is an example of a web method of
a web service_x000D_
2.It is an example of a web method of
an aspx page_x000D_
3.It will generate a compile time
error_x000D_
4.It will generate a runtime time
error+A517
What enables clients to interact with WSDL UDDI
UDDI directories & Web services?
What is the significance of a SOAP SOAP Envelope SOAP Envelope
Envelope? defines the Text defines the XML
document as a SOAP document as a
message SOAP message

1&2&4 3&4&5
Which are the different elements of a
WSDL?_x000D_
1.types_x000D_
2.enumerators_x000D_
3.message_x000D_
4.portType_x000D_
5.binding
1&4 2&3
What happens when a web service is
created on the server?_x000D_
1..NET framework creates a WSDL
proxy on the server hosting the
service_x000D_
2..NET framework creates a WSDL file
on the server hosting the
service_x000D_
3.WSDL describes the web service
interface_x000D_
4.Web service proxies are
automatically created on client
computers
A WSDL proxy is .NET framework
created on the client creates a WSDL
that consumes the file on the server
web service hosting the
What happens when a web service is service
consumed by a client?
1&2&3&4 3&5
Which all statements are true about
SOAP Header element?_x000D_
1.SOAP Header element contains
verbose description of a
message_x000D_
2.The SOAP Header element contains
application-specific information, like
authentication, payment, etc, about
the SOAP message_x000D_
3.SOAP Header is optional_x000D_
4.SOAP Header is mandatory_x000D_
5.SOAP Header element must be the
first child element of the Envelope
element
How do you create a Client proxy class wsdl wsdl
in C# for XML web service using the http://hostServer/W http://hostServer/
wsdl tool? ebserviceRoot/WebS WebserviceRoot/
erviceName.asmx WebServiceName.
asmx?WSDL
1&2&3 3&4
Which statements are true when a
web method returns a dataset?
_x000D_
1.The web method can be used in
Windows clients_x000D_
2.The web method can be used in
Web applications_x000D_
3.The web method can be used in Java
applications_x000D_
4.The web method cannot be used
directly in Java applications
It contains the It consists of the
classes needed to classes that
describe a Web enable Web
Service Service consumers
to locate available
Web Services

What is the significance of


System.Web.Services.Description
namespace?
What is the significance of It contains the It consists of the
System.Web.Services.Discovery classes needed to classes that
namespace? describe a Web enable Web
Service Service consumers
to locate available
Web Services
What is the significance of It contains the It consists of the
System.Web.Services.Protocols classes needed to classes that
namespace? describe a Web enable Web
Service Service consumers
to locate available
Web Services

Type marshalling is Type marshalling


consuming of types is the mapping of
from Web Service Web Service
method calls method calls to
SOAP datatypes

What is Type marshalling?


Yes, by adding Yes, by using the
reference to the web SOAP toolkit
service in the ASP
Can you access a Web Service from a application
standard ASP page?
UpdatePanel control Update control
Which control enables you to update
a portion of page without updating
the entire page?
Which control manages client script UpdatePanel control Update control
for AJAX-enabled ASP.NET Web pages
1&3 2&3&4

How do you convert an existing aspx


page with two drop-down list boxes to
become Ajax compliant?_x000D_
1.By rewriting the page to implement
Ajax_x000D_
2.By wrapping the controls in a
ScriptManager control_x000D_
3.By wrapping the controls in
UpdatePanel control_x000D_
4.By adding ScriptManager control to
the page
ChildrenAsTriggers ContentTemplate
Which property of UpdatePanel Container
control gets or sets a Boolean value
that indicates whether child controls
should trigger an asynchronous
postback automatically?
What happens when a button placed 1&2 3&4
in the UpdatePanel control is clicked?
_x000D_
1.The page is posted back to the
server_x000D_
2.UpdatePanel sends the details of
button_click event to the server via
postback_x000D_
3.UpdatePanel hijacks the
button_click event_x000D_
4.UpdatePanel performs a Ajax call
instead of normal postback

1&3 1&2&4
Which are the triggers supported by
UpdatePanel control?_x000D_
1.AsyncTrigger_x000D_
2.AsyncPostBackTrigger_x000D_
3.PostBack_x000D_
4.PostBackTrigger
By using By using
How do you control refresh of only a AsyncTrigger AsyncPostBackTrig
certain portion of the page during an ger
asynchronous postback?
RegisterArrayDeclara RegisterClientScri
Which method enables you to add an tion ptBlock
inline JavaScript right after the
opening <form> tag?
RegisterArrayDeclara RegisterClientScri
Which method enables you to add a tion ptBlock
reference to a JavaScript file
embedded in an assembly?
How can you explicitly abort a By using By using
previous asynchronous postback? PageRequestManage PageRequestMana
r abortPostBack() ger
method abortAsyncPostBa
ck() method
ScriptManager UpdatePanel
Which control lets you display a control control
progress indicator while an
UpdatePanel is updating its content?
What does the TargetControlID It contains the ID of It contains the ID
property of the DragPanel extender the Panel control on of the Panel
control contain? which the other control to drag
control will be
dragged

How is an error handled by default The application The web server


during an asynchronous postback? crashes transmits an error
message

Animation loads Animation plays


when you hover your when you hover
mouse over the your mouse over
target the target
How does the Animation control react
to OnHoverOver event?
Animation UpdatePanelAnim
Which control enables you to display ation
an animation while the UpdatePanel is
performing an asynchronous postback
Microsoft.js Ajax.js
Where is the supporting code for
client-side Microsoft AJAX Framework
present?
Javascript.js Ajax.js
Which file contains the JavaScript
code for supporting the UpdatePanel
control?
It redirects the user It redirects the
to login page on user to an error
unsuccessful login page on
attempt unsuccessful login
What does the redirectUrl parameter attempt
of AuthenticationService.Login
method do?
To use Role service, you need to do 1&3 2&4
which of the folllowing 2 configuration
changes to your web.config?_x000D_
1.enabling the role service by adding
<roleService> element to the
<system.web.extensions> section of
your web.config file_x000D_
2.enabling the role service by adding
<role> element to the
<system.web.extensions> section of
your web.config file_x000D_
3.enabling the roles by adding
<roleManager enabled=”true” />
element to the <system.web> section
of your web.config file_x000D_
4.enabling the roles by adding <role
enabled=”true” /> element to the
<system.web> section of your
web.config file

It shows user profiles It enables you to


load information
associated with a
user across
multiple visits to a
web application

What does the Profile service do?


Which mechanism did HTML use to Hypertexts Hyperjoins
facilitate exchange of information &
documents between the researchers?
What is the significance of Document 1&2&3&4 2&3&4&5
Type Definition (DTD)? _x000D_
1.Is a set of markup declarations that
define a document type_x000D_
2.It's syntax declares precisely which
elements and references may appear
where in the document_x000D_
3.It declares precisely the
programming logic used for each
element in the document_x000D_
4.It declares entities which may be
used in the HTML document_x000D_
5.It declares what the contents and
attributes are for each element

Which tag is designed to be used for <banner> <heading>


putting in the top banner of a
window?
What are your observations on the 1&3&4&5 1&3&4
following example?_x000D_
<title>Sample</title>_x000D_
<h1>Chocolate</h1>_x000D_
Chocolate is made up of_x000D_
<a href=WhatIs.html>cocoa</a> and
milk_x000D_
1.It is an example of HTML_x000D_
2.It is an example of HTTP_x000D_
3.It sets the title of the page_x000D_
4.It has an anchor link_x000D_
5.It has a value reference

Which mechanism was introduced in Headers XML Documents


HTML 4.0 to define the presentation
of HTML pages?
Please select all the answers that are 2&3&4&5 1&2&3&4
applicable to HTML_x000D_
1.Stands for Hyper Text Management
Language_x000D_
2.Stands for Hyper Text Markup
Language_x000D_
3.Authoring language to create
documents on the world wide
web_x000D_
4.Defines the structure & layout of a
web page_x000D_
5.Has Tags with attributes

What are the features of Standard 2&4 1&3


Generalized Mark-up Language
(SGML)?_x000D_
1.It is a method for marking up text
into structural units like headings,
paragraphs, list items etc._x000D_
2.Can be implemented on any
computer_x000D_
3.The language is dependent on the
formatter (browser) which actually
displays the text on the
screen_x000D_
4.The language is independent of the
formatter (browser) which actually
displays the text on the screen
Which statements are true about 2&3&4 1&2&4&5
HyperText Transfer Protocol (HTTP)?
_x000D_
1.Is the foundation of data
communication for the World Wide
Web_x000D_
2.Is a networking protocol for
distributed, collaborative, hypermedia
information systems_x000D_
3.Is a networking protocol for
monolithic applications_x000D_
4.The client submits an HTTP request
message to the server & the server
returns a response message to the
client_x000D_
5.The server submits a request to the
client & the client returns a response
message to the server

What is the significance of Document 1&2&3&4 1&3&4


Type Definition (DTD)? Please select
all the relevant options?_x000D_
1.Is a set of markup declarations that
define a document type_x000D_
2.It's syntax declares precisely which
elements and references may appear
where in the document_x000D_
3.It declares precisely the
programming logic used for each
element in the document_x000D_
4.It declares entities which may be
used in the HTML document_x000D_
5.It declares what the contents and
attributes are for each element

Which of the tags from the list were 1&2&4 1&2&3


inherited from SGML into HTML?
_x000D_
1.a_x000D_
2.title_x000D_
3.p_x000D_
4.ol
What are your observations on the 1&2&4 2&3
following code?_x000D_
<SCRIPT
LANGUAGE=”JavaScript”>_x000D_
<!--_x000D_
//script statement(s) here_x000D_
..._x000D_
// -->_x000D_
</SCRIPT>_x000D_
1.The code will let old browsers to
execute java script_x000D_
2.Old browsers will ignore the java
script_x000D_
3.New browsers will execute the java
script ignoring the comment
tags_x000D_
4.New browsers will ignore the java
script

What is a Document object with Each Javascript The object which


respect to HTML? represents a represents the
document object content area of
the browser
window where
HTML documents
appear is a
document object

What are Form control elements? 1&3 2&4


_x000D_
1.They represent all the elements
defined in a form object_x000D_
2.They represent all the elements
defined in a control object_x000D_
3.Each element in the containing
object is a separate object_x000D_
4.All the elements in the containing
object are grouped together as a
separate object
What does the following example 1&2&3 3&4
denote?_x000D_
var myAge = 25_x000D_
1.A constant is declared_x000D_
2.A variable is declared_x000D_
3.A constant is initialized_x000D_
4.A variable is initialized

How do you concatenate two strings? Using the & operator Using the +
operator
Which of the following are 1&2&4&5 1&2&3
comparison operators?_x000D_
1.==_x000D_
2.!_x000D_
3.!=_x000D_
4.>_x000D_
5.<=

What is the correct syntax for a repeat for ([initial for (initial
loop? optional values, if any, are expression]; expression;
mentioned in [] brackets. [condition]; [update condition; [update
expression]) expression])
{_x000D_ {_x000D_
statement[s] inside statement[s]
loop_x000D_ inside
} loop_x000D_
}
What are your observations on the 1&2&4 2&3
following code?_x000D_
<html>_x000D_
<head>_x000D_
<script
language=”JavaScript”>_x000D_
function showMsg(msg) {_x000D_
alert(“Following message was sent: “
+ msg)_x000D_
}_x000D_
</SCRIPT>_x000D_
</head>_x000D_
<body>_x000D_
<form>_x000D_
<input type=”button” value=”Click
to Vote”_x000D_
onClick=”showMsg (‘I want world
peace’)”>_x000D_
</form>_x000D_
</body>_x000D_
</html>_x000D_
1.A function is called from an
assembly_x000D_
2.A function is called from an event
handler_x000D_
3.A parameter is passed to the
function_x000D_
4.The function returns a string value
What will be the output of the Tracy Flynn Owns a John Brown Owns
following code?_x000D_ Audi_x000D_ a BMW_x000D_
<html>_x000D_ John Brown Owns a Tracy Flynn Owns
<head>_x000D_ BMW a Audi
<script
language=”Javascript”>_x000D_
var personName = “John
Brown”_x000D_
var carName = “BMW”_x000D_
function demo() {_x000D_
var personName = “Tracy
Flynn”_x000D_
var carName="Audi"_x000D_
_x000D_
document.write(personName + “
Owns a “ + carName + “.”)_x000D_
}_x000D_
</script>_x000D_
</head>_x000D_
_x000D_
<body>_x000D_
<script
language=”Javascript”>_x000D_
demo() // runs as document
loads_x000D_
document.write(personName + “
Owns a “ + carName + “.”)_x000D_
</script>_x000D_
</body>_x000D_
</html>
What does the following code snippet 2&3&5 1&2&4&5
do? _x000D_
_x000D_
var form =
window.document.forms[0]_x000D_
for (var i = 0; i < form.elements.length;
i++) {_x000D_
if (form.elements[i].type == “text”)
{_x000D_
form.elements[i].value = “--- Please
Enter Text ---”_x000D_
}_x000D_
}_x000D_
1.The following code refers to all the
elements in a Form _x000D_
2.The following code refers to only the
the first element in a Form _x000D_
3.The following code refers to all the
elements of all the forms in a
document_x000D_
4.The following code changes the text
property of all the text elements in
the first form of the
document_x000D_
5.The following code changes the text
property of all the text elements in all
the forms of the document

A CSS rule has two main parts, which 3&4 1&2&3


are they?_x000D_
1.A Candidate_x000D_
2.A Selector_x000D_
3.One or more declarations_x000D_
4.One or more initiations
What are your observations on the 2&3&4 1&4
following CSS code?_x000D_
p {color:red;text-
align:center;}_x000D_
1.CSS declarations always end with a
semi-colon_x000D_
2.CSS declarations always begin & end
with curly brackets_x000D_
3.Declaration groups end with a semi-
colon_x000D_
4.Declaration groups are surrounded
by curly brackets

How is the Class selector used? 3&4 2&3&4&5


_x000D_
1.It is used to specify a style for a
group of elements_x000D_
2.This allows you to set a particular
style for any HTML elements with the
same class_x000D_
3.This allows you to set a particular
style for any HTML elements with the
same id_x000D_
4.It uses the HTML class
attribute_x000D_
5.It is defined with a "*" symbol
What are you observations on the 2&3&4 2&3
following code snippet?_x000D_
body {background-
color:#b0c4de;}_x000D_
1.The background-color property
specifies the background color of an
element_x000D_
2.The background-color property
specifies the background color of all
the elements in a web site_x000D_
3.The background color of a page is
defined in the body selector_x000D_
4.The background color of a page is
defined in the head selector
Which are the different link states in 1&2&3&4 1&3&5
CSS?_x000D_
1.a:enabled_x000D_
2.a:link_x000D_
3.a:visited_x000D_
4.a:hover_x000D_
5.a:active

What are your observations on the 2&4&5 1&3&4


following code snippet?_x000D_
table, th, td_x000D_
{_x000D_
border: 1px solid black;_x000D_
}_x000D_
1.border property is used to specify
table borders_x000D_
2.border property is used to specify
page border_x000D_
3.black color is assigned to the table
element_x000D_
4.black color is assigned to the td
element_x000D_
5.black color is assigned to the tr
element

Which property can be used to control Table Border Table Padding


the space between the border & the
content in a table?
What does the CSS Box Model consist 2&3&4&5 1&3&4
of?_x000D_
1.Layouts_x000D_
2.Margins_x000D_
3.Borders_x000D_
4.Padding_x000D_
5.Actual Content

What does the following code It shows how to It shows how to


denote?_x000D_ initialize selectors group selectors
h1,h2,p_x000D_ before the values are
{_x000D_ assigned
color:green;_x000D_
}
What is the significance of CSS Media 3&4 1&2&3
Types?_x000D_
1.They allow you to specify different
media types_x000D_
2.They allow you to specify how
documents will be presented in
different media_x000D_
3.The @media rule allows different
style rules for different media in the
same style sheet_x000D_
4.The @mediatype rule allows
different style rules for different
media in the same style sheet

What does the following code snippet It styles all the It styles all the
do?_x000D_ elements with the elements with the
[title]_x000D_ title attribute title id
{_x000D_
color:blue;_x000D_
}

Which is the significance of HTML 1&3&5 2&4


tags? _x000D_
1.HTML tags are coding instructions
embedded in the HTML
document_x000D_
2.HTML tags are subroutines
containing query elements in HTML
document_x000D_
3.A Web browser compiles the entire
page _x000D_
4.A Web browser is designed to read
HTML tags & render the page
graphically_x000D_
5.A Web browser translates HTML
tags into visual effects that determine
how an HTML document looks to the
viewer
What does the following code snippet It styles all the It styles all the
do?_x000D_ elements with the elements with the
[title]_x000D_ title attribute title id
{_x000D_
color:blue;_x000D_
}

How can you define an image with Using <image> tag Using <object> tag
clickable areas?
How can you play a background sound Using <sound> tag Using <bgsound>
when the page loads? tag

What is the significance of <fieldset> 1&3 2&4


element?_x000D_
1.The <fieldset> element groups
thematically related controls and
labels_x000D_
2.The <fieldset> element inserts fields
in pages_x000D_
3.The usage of this element makes
documents more accessible_x000D_
4.The usage of this element makes
documents more scalable

How can you play a background sound Using <sound> tag Using <bgsound>
when the page loads? tag

What does the following example 3&4 2&3


denote?_x000D_
<ol>_x000D_
<li>Coffee</li>_x000D_
<li>Tea</li>_x000D_
<li>Milk</li>_x000D_
</ol>_x000D_
1.Usage of ordered list tag for an
ordered numeric list_x000D_
2.Usage of unordered list tag for an
unordered list_x000D_
3.Usage of ordered paragraph
tag_x000D_
4.Usage of list item tag to list the
items
Which all statements are true about 3&4 1&2&3
the <blockquote> tag?_x000D_
1.It defines a long quotation_x000D_
2.It defines paragraph
quotation_x000D_
3.browser inserts white space before
and after a blockquote
element_x000D_
4.browser inserts margins for the
blockquote element
How do you bind a label with an input The for attribute of The id attribute of
element? the <label> tag the <label> tag
should be equal to should be equal to
the id attribute of the the for attribute
related element of the related
element

What are your observations on the 2&4 1&3


following code?_x000D_
<select>_x000D_
<option
value="volkeswagen">VolkesWagen</
option>_x000D_
<option
value="mercedes">Mercedes</option
>_x000D_
<option
value="BMW">BMW</option>_x000D
_
<option
value="audi">Audi</option>_x000D_
</select>_x000D_
1.The <select> tag is used to create a
drop-down list_x000D_
2.The <select> tag is used to create a
display list_x000D_
3.The <option> tags inside the select
element define the available options
in the list_x000D_
4.The <option> tags inside the select
element displays a option-button list
What is the significance of the <area> 1&2&3 3&4
tag?_x000D_
1.The <area> tag defines an area
inside a form_x000D_
2.The <area> tag defines an area
inside an image-map_x000D_
3.The <area> tag is always nested
inside a <form> tag_x000D_
4.The <area> tag is always nested
inside a <map> tag

Which are the different types of 1&2&3 1&4


buttons that can be used in HTML
Forms?_x000D_
1.Submit buttons_x000D_
2.Control buttons_x000D_
3.Reset buttons_x000D_
4.Push buttons

Which statements are true about 2&4&5 2&3&4


Checkboxes?_x000D_
1.Checkboxes are on/off switches that
are used to check the validity of
controls_x000D_
2.Checkboxes are on/off switches that
may be toggled by the user_x000D_
3.A switch is "on" when the control
element's checked attribute is
set_x000D_
4.The INPUT element is used to create
a checkbox control_x000D_
5.The Fieldset element is used to
create a checkbox control

What happens if none of the <input> None of the radio Last radio button
elements of a set of radio buttons is buttons are checked is checked by
set to CHECKED? default
Which all of the following can be 1&3&4 2&4&5
categorized as Form control types
supported by HTML?_x000D_
1.buttons_x000D_
2.Forms_x000D_
3.Menus_x000D_
4.hidden controls_x000D_
5.Image

Which elements are used to create a 2&3 1&2&4&5


menu?_x000D_
1.select_x000D_
2.menu_x000D_
3.list_x000D_
4.option_x000D_
5.optgroup

Which controls can be used to input 1&4 2&3&4


text?_x000D_
1.textbox_x000D_
2.input_x000D_
3.textarea_x000D_
4.inputbox

How is textarea different from input 2&4 1&3&4


element?_x000D_
1.The input element creates a single-
line input control_x000D_
2.The input element creates a multi-
line input control_x000D_
3.The textarea element creates a
single-line input control_x000D_
4.The textarea element creates a
multi-line input control
Which statements are true about file 1&3 1&4
select control?_x000D_
1.It allows the user to select files so
that their contents may be submitted
with a form_x000D_
2.It allows the user to select & load
files on the form_x000D_
3.The frameset element is used to
create a file select control_x000D_
4.The input element is used to create
a file select control

What is the significance of hidden 2&4&5 1&2


controls? Please choose all the
relevant options_x000D_
1.They are controls that are not
rendered but whose values are
submitted with a form_x000D_
2.They are controls that are rendered
but whose values are not submitted
with a form_x000D_
3.This control type is used to store
information between client/server
exchanges that would otherwise be
lost due to the stateless nature of
HTTP_x000D_
4.The frameset element is used to
create a hidden control_x000D_
5.The input element is used to create
a hidden control
Choice3 Choice4 Choice5 Grade1 Grade2 Grade3 Grade4
1&2&4 2&4&3 0 1 0 0

3&4&5 1&2&3&4 2&3&4 0 1 0 0


&5

1&3 1&3&4 0 0 0 1

1&2&4 only 2 1 0 0 0
1&2&3&5 2&5 1&2&5 0 1 0 0

1&2&4 3&4 1 0 0 0

1&3&5 2&3&4 1&2&5 0 0 0 1

1&2&5 2&3&5 1&2&4 0 0 0 0


1&5 1&2&5 3&4 0 0 1 0

1&4 1&2&4 1&3&4 0 0 0 1


&5

2&5 4&5 3&5 0 0 0 1


1&2&4 3&4&5 2&4 1 0 0 0

2&4 1&4&5 3&4&5 0 1 0 0


2&4&5 2&3 3&5 0 0 0 1

1&3&5 2&3&5 1&2&4 0 1 0 0


&5
2&5 4&5 2&4 0 0 0 0

1&3&5 3&4 3&5 0 0 1 0


4&5 2&3&5 3&4&5 0 1 0 0

3&4&5 1&3&5 2&4&5 1 0 0 0


1&3&4 1&3 0 0 0 1

1&3 1&3&4 0 0 1 0

2&4 1&2&4 1 0 0 0
2&4&5 1&2&5 1&3&5 0 0 0 0

1&3&4 1&2&5 3&4&5 0 1 0 0


1&4 1&2 1 0 0 0

1&2&5 3&4&5 2&3&4 0 0 0 0

1&3&4 3&4 0 1 0 0
1&2&3 only 4 1 0 0 0

1&2 3&4 0 0 1 0

1&3 3&5 2&4 0 0 0 1


1&4&5 2&3 1&3&4 0 0 1 0

3&4 1&3&5 2&4&5 0 1 0 0

1&3&4 2&3&5 1&2&3 1 0 0 0


1&3&5 1&2 1&2&4 0 0 0 0

2&4 1&2&3 0 0 1 0

3&4 1&3&4 2&4 0 1 0 0

3&4 1&2 1 0 0 0
1&2&3 only 4 2&5 0 0 0 0

4&5 2&4&5 1&2&3 0 0 1 0


3&4 1&4 0 1 0 0

3&4 1&2 1 0 0 0

2&3 1&4 0 0 1 0
1&4 2&3 0 0 0 1

2&4 1&3&5 1&5 0 0 0 1


2&4 3&5 1&3&5 0 1 0 0

2&3&4&5 2&3&4 1&2&4 0 0 1 0

2&3 1&2&3 1 0 0 0
2&3 1&4&5 2&3&5 0 0 0 0

3&5 2&5 1&4&5 0 1 0 0


2&3&5 3&5 1&3&4 0 0 1 0

3&5 2&3&4 1&2&4 1 0 0 0


1&2 2&3 0 0 0 1

1&3&4 1&2&4 2&5 1 0 0 0


1&3&5 3&4 1&5 0 1 0 0

2&4 1&2&4 1&2 0 0 1 0


1&3 2&4 1 0 0 0

1&2&4 1&3 0 0 0 1
3&5 1&3&4 2&3 0 1 0 0

2&3 3&4 0 0 1 0
1&2&4 1&3 1 0 0 0

2&4 3&4 0 0 1 0
1&2&4 1&2&5 2&3&5 0 0 0 0

2&3 2&4 0 1 0 0
3&4&5 3&4 1&5 0 0 0 1
3&4 1&2&3 0 1 0 0

3&4 1&2 1 0 0 0
2&4 1&2 0 0 1 0

1&2&4 1&4 0 0 0 1

1&3 1&2 0 0 1 0
2&3&4 1&4 0 1 0 0

3&4 1&4 1 0 0 0

The INNER JOIN The INNER JOIN 1 0 0 0


keyword return keyword return
null. rows when there
is at least non
match in both
tables.
SELECT (list of SELECT * FROM 1 0 0 0
columns ) FROM table_name
table_name WHERE WHERE (search-
(search-condition) condition)
HAVING(condition) GROUP BY
ORDER BY (group by
(ASC/DESC) GROUP expression)
BY (group by ORDER BY
expression) (ASC/DESC)
HAVING(conditio
n)

Calculate the Creates a new 0 0 0 1


summary value for table and inserts
each group the resulting
rows from the
query into it

3&4 1&3&4 0 1 0 0
2&3&4 only 1 1 0 0 0

1&3 2&5 2&4&5 0 0 0 0


3&4 2&3 0 0 0 1

3&4 1&2 1 0 0 0

2&4 1&3&5 1&2&3 0 0 0 1


&5
1&4 1&2&3 1 0 0 0

1&2&3&4 1&2&4 0 0 0 1

1&3 3&4 0 1 0 0

1&3 2&4 1 0 0 0
1&3&4 1&4 0 0 1 0

1&2&3 1&3 0 0 0 1
2&4 1&5 1&3&5 0 0 0 0

4&5 3&4 2&3&4 1 0 0 0

1&2&4 3&4 0 1 0 0
1&4 1&3 0 0 0 1

1&2&4 2&3 4&5 0 0 1 0


1&2 3&4 2&3&5 0 0 0 0

1&2&5 2&3&4 2&3 1 0 0 0


1&2&3 2&5 1&2&3 0 1 0 0

1&2&3 2&3 0 0 0 1
2&3 1&2 1&2&4 0 0 0 0

3&4 2&4 1 0 0 0
2&3&4 1&3&4&5 1&2&4 0 0 0 1
&5

2&4 1&3&5 3&4&5 0 1 0 0


2&3 1&3&4 0 0 1 0

1&2&3 2&4 1 0 0 0
3&4 1&3&4 0 0 0 1

1&3 3&4 0 0 1 0

3&5 2&4&5 2&3&4 0 0 0 0

1&3&5 1&3&4&5 4&5 0 0 0 1


4&5 2&3&5 1&3&4 1 0 0 0

1&4 2&4 0 0 1 0

1&2 3&4 0 1 0 0
1&3&4 1&4 0 0 0 1

1&2&3 3&4 1 0 0 0

2&3&5 1&2&4 1&5 0 1 0 0


1&2 3&4 1 0 0 0

2&4&5 1&2&4&5 3&5 0 0 0 1


1&3 1&2 0 0 1 0

1&3&4 2&3&4 1 0 0 0
3&4&5 1&4 1&3&5 0 0 0 0

3&4 4&5 1&2&3 0 1 0 0


&4

1&3&4 2&4 1 0 0 0
2&3&5 2&4 1&4&5 0 0 1 0

1&3 3&4 0 0 0 1
2&4 3&4&5 1&2&3 0 1 0 0

3&5 2&3&5 2&3&4 0 0 0 0

2&3&4 1&2&3 0 0 0 1
1&3 3&4 1 0 0 0

1&3&4 2&4 0 0 1 0

2&4 2&3&4 0 0 0 1
1&4 2&3&4 2&5 0 1 0 0

1&3&5 1&3 1&2&4 0 0 0 0


4&5 1&2&3 3&4&5 1 0 0 0

2&3 1&3&4 2&4&5 0 0 1 0


1&2&3&5 1&2&3&4 1&3&5 0 1 0 0

3&4&5 1&3&5 2&3&4 0 0 0 0

1&3 3&4 1 0 0 0
1&3 2&5 1&2&5 0 0 0 0

1&4&5 4&5 1&4 0 0 1 0


3&4 1&3 0 1 0 0

2&4 4&5 2&3&4 1 0 0 0


&5
2&3&4 1&2 1&4&5 0 0 0 0

2&4 1&2&4 0 0 0 1
2&3&4 2&5 1&2 1 0 0 0

1&2&3 2&3 0 1 0 0
3&4 1&4 0 0 0 1

2&4 1&2 1 0 0 0
3&4 2&4 0 0 1 0

3&4 2&3&4 0 1 0 0
1&2 1&3 0 0 0 1

1&3 1&2&4 1 0 0 0

3&4 1&2&3 0 0 1 0

1&2&4 1&3&5 1&2&4 0 0 0 0


&5
2&4 1&2 0 1 0 0

1&4 2&4 0 0 0 1
1&3 3&4 0 0 1 0

3&4 1&4 1 0 0 0
1&3 1&2 0 0 1 0

1&3 1&2 0 1 0 0
2&3 1&4 0 0 1 0

2&3 2&4 1 0 0 0
2&4 2&3 0 0 0 1

1&2&4 only 1 0 1 0 0

1&3 1&2 1 0 0 0
1&2&5 1&3&5 1&2&4 0 0 0 0
&5

1&3 2&4 1 0 0 0

1&4 1&2&4 0 0 0 1
4&5 2&3&4 1&4 0 1 0 0

2&3 4&5 1&2&5 0 0 0 0

4&5 1&2&5 1&2&3 1 0 0 0


2&3&4 3&5 1&2&3 0 1 0 0
&5

2&3 1&3 0 0 0 1

1&2&4 3&4 1 0 0 0

1&3&5 1&4 1&2&3 0 0 0 0


&5
1&3&4 2&3 0 1 0 0

3&5 1&3&4 1&5 0 0 0 1

3&5 2&3&4 1&3&5 0 1 0 0

1&2&3 3&5 1&4 1 0 0 0


2&3&5 1&2&4&5 1&4 0 0 0 1

1&3&4 2&4 0 0 1 0

1&3 2&3 0 1 0 0

1&3 2&3 1 0 0 0
1&3 2&3 0 0 0 1

1&3&5 2&5 1&3 0 0 1 0


2&4 2&3 0 1 0 0

3&4 1&4 1 0 0 0

1&3 3&4 0 0 1 0
1&3 1&2&3 0 0 0 1

4&5 1&2&4 1&3&4 0 0 0 0


&5
3&5 1&2&4 1&3 0 1 0 0

2&4 1&2 1 0 0 0
1&3 1&2&3 0 0 0 1

3&4 2&3 0 0 1 0

1&3 2&4 0 1 0 0

3&4&5 1&2&3 1&5 1 0 0 0


3&4 1&2&3&5 1&2&4 0 0 0 0

1&4 2&3 0 0 1 0

1&2 1&3&4 0 0 0 1
2&4 1&2&3 0 1 0 0

2&4&5 1&5 1&2&3 1 0 0 0

1&2&3 2&3&4 0 0 0 1
1&4 2&3&4 0 0 1 0

3&4 1&2&3 1 0 0 0
I, II, III & IV IV & V III & IV 0 0 1 0

I, II, III & IV IV & V III & IV 0 0 1 0


Common Language Component 1 0 0 0
Infrastructure Object Model

Garbage Collector Class Loader 0 0 1 0

3&4&5 1&2&4 1&2&3 0 1 0 0


&4

Shared Assemblies Public 0 0 1 0


Assemblies
Legacy Managed Code 0 0 0 1

.NET Framework .NET Framework 0 0 1 0


uses DCOM for uses DCOM for
making transition creating
between managed unmanaged
and unmanaged applications.
code.

System.Base System.Parent 1 0 0 0

2&3&4 1&2 0 0 0 1
switch statement The code is 1 0 0 0
cannot have an correct
integer as an
argument

2&3 1&2 0 0 1 0

while loop is Integer variable 0 1 0 0


syntactically cannot be used
incorrect in the while loop

1&4 2&3 0 1 0 0
only 1 1&2 only 2 0 0 0 1

Value 'a' will be Value 'A' will be 0 0 0 1


assigned to variable assigned to
examGrade of type variable
char examGrade of
type char

1&4 1&3 0 0 0 1

1&2&4 3&4 1 0 0 0

2&3 3&4 0 1 0 0

3&4 1&5 2&3&5 0 0 0 0


1&2 2&3 0 0 0 1

1&3&4 1&5 1&4&5 0 1 0 0

Following code is an Following code 0 0 1 0


example of demonstrates
Extension Method abstraction
1&4 1&2&3 1 0 0 0

1&3 3&4 0 0 0 1

1 0 0 0

2&4 1&3 0 0 1 0
Depends upon how Any number of Depend 1 0 0 0
many params values. s upon
arguments does it how
use. many
ref
argume
nts does
it use.

Class Function 0 1 0 0

1&4 2&3 0 1 0 0
3&4 1&4 1 0 0 0

7 11 0 0 0 1
3&4 2&5 1&2&4 0 0 0 0

1&3&4 1&2 0 1 0 0

Conversion of Conversion of 0 1 0 0
integer to enum enum types to
types integer
Conversion of Conversion of 0 0 1 0
integer to enum enum types to
types integer

Following code Following code 0 0 0 1


iterates through a iterates through
HashTable each member of
an enum

1&4 2&3 1 0 0 0
1&2&3 2&3&4 0 0 0 1

2&4 2&3 0 0 1 0
2&4 2&3 0 0 0 1

1&2&3&5 3&4 1&2&4 0 0 0 0


&5
1&2&4 1&2 1 0 0 0

1 0 0 0

1 0 0 0
2&4 1&2&3 0 0 1 0

1 0 0 0

float int 0 0 1 0

Whether it a value Whether it a 0 1 0 0


type or a reference value type or a
type depends upon reference type
size. depends upon a
Project Setting
made in Visual
Stiiclio.NET.

1&3 2&4 1 0 0 0
2&5 1&3&5 2&3&4 0 0 0 0

2&3 1&3&4 0 0 0 1

1&2 1&3 0 0 1 0

2&3 1&2 0 1 0 0
Usage of an Indexer Usage of a 0 0 1 0
Method

1&2 2&3&4 1 0 0 0
1&3 2&4 0 0 0 1

1&2&5 2&3&4 1&4&5 0 0 1 0

Contents of the two The two objects 0 0 1 0


objects created will will always be
be exactly same. created in
adjacent
memory
locations.
DisplayData() There is no error 0 0 0 1
cannot access j. in this class.

Classes and objects Object Oriented 0 0 0 1


are corner stones of Programming
structured paradigm gives
programming equal
paradigm. importance to
data and the
procedures that
work on the
data.

Objects of smaller Objects are 0 0 0 1


size are created on always
the heap. nameless.
1&2&3 1&4 1 0 0 0

1&2&3 2&3&4 0 1 0 0

Private Static 0 1 0 0

It must declared It represent the 0 0 1 0


within class class object

Multiplexing Duplexing 1 0 0 0

It defines the class It defines the 0 0 1 0


that inherit the class cannot
properties of the inherit the
Class A but cant properties of the
access the private Class A
methods

is a method of a is a property of 0 1 0 0
class class
Creates the class All of the listed 0 1 0 0
form that inherits options
the class Test
Creates the class All of the listed 0 1 0 0
form that inherits options
the class Test
Overloading Overriding 0 1 0 0

2&3 1&4 0 0 1 0
1&3&4 1&2 0 1 0 0
1&3&4 2&4 1 0 0 0
2&4 1&3 0 0 0 1
2&4 1&2&3 0 0 1 0
2&4 1&3 0 1 0 0

3&4 2&3 1 0 0 0
1&4 2&3 0 0 0 1

1&4 2&3 0 0 1 0

1&2&3 1&4 0 1 0 0
1&3&4 2&3 1 0 0 0

1&2 1&2&4 0 0 0 1

0 byte 8 bytes 0 1 0 0

From two base Properties can 0 0 0 1


interfaces a new be declared
interface cannot be inside an
inherited. interface.

All interfaces are Interfaces can 0 1 0 0


derived from an contain only
Object interface. method
declaration.
An interface can An interface can 1 0 0 0
contain static contain static
methods. data.

A class that The functions 0 0 1 0


implements an declared in an
interface can interface have a
explicitly body.
implement
members of that
interface.

interfaces members To implement an 0 0 1 0


are automatically interface
public. member, the
corresponding
member in the
class must be
public as well as
static.

1&2 3&4 0 1 0 0

1&4 2&4 3&4 1 0 0 0

1&2&3 1&3&4 0 0 0 1
2&3 3&4 0 0 1 0

The ArrayList can The ArrayList can 0 0 1 0


hold both the hold only integer
values values

1&2 3&4 0 1 0 0
1&4 2&4 1 0 0 0

2&3 2&3&4 0 0 0 1

2&4 1&4 0 0 1 0

1&2&4 2&3&4 0 1 0 0
1&2&4 1&3 1 0 0 0

1&2 1&4 0 0 0 1
1&3 2&4 0 0 1 0

1&2&4 3&4 0 1 0 0
A Class that derives A Class that 0 0 1 0
from a Generic type derives from a
Value type

Program will Compiler will 0 0 0 1


generate run-time report an error:
exception. Operator '+' is
not defined for
types T and int.
1&4 1&2 0 0 1 0

Compiler will Program will 1 0 0 0


generate an error. generate a run-
time exception.
Compiler will give Member Field of 1 0 0 0
an error. class Generic is
not accessible
directly.

1&2&3 2&3 0 1 0 0

Generics provide Generics 0 0 1 0


type safety without eliminate the
the overhead of possibility of
multiple run-time errors.
implementations.
2&4 1&3&4 0 0 0 1

2&4 3&4 0 0 1 0

1&4 2&3 0 1 0 0

It occurs at run- It occurs during 0 0 1 0


time. Just-In-Time
compilation.
It will output: It will output: 0 0 0 1
Remaining program Index out of
bounds
Remaining
program

1&3&4 1&2 1 0 0 0
1&2&3 1&3&4 0 0 1 0

It will output: Bad It will output: 1 0 0 0


Format Remaining
program
1&4 2&3 0 1 0 0

It will output: It will output: 0 0 0 1


Remaining program Exception
Exception occurred occurred
Remaining
program

Delegates are type- Only one 0 0 0 1


safe. method can be
called using a
delegate.
I, II & III IV & V 0 0 0 1

Run-time Exceptions 1 0 0 0
Polymorphism

II, III & IV All of the listed 0 0 1 0


options

If signatures of two Delegates 0 1 0 0


methods are same cannot be used
they can be called to call an
through the same instance
delegate object. function.
Delegates
cannot be used
to call an
instance
subroutine.
delegate int d(int i, delegate void 0 0 1 0
Single j); (int i, Single j);

Namespace Interface 0 1 0 0

Delegate is a value Delegates are 0 0 1 0


type. type-safe
wrappers for
function
pointers.

Encapsulation Delegate 0 0 0 1

2&3&4 1&2&3 0 1 0 0
2&3&4 1&3 1 0 0 0

1&4 1&2&4 1&2&4 0 0 0 0


&5

2&4 1&3&4 0 0 0 1

1&3&4 2&5 1&3&4 1 0 0 0


&5
2&3 1&2&4 0 0 0 1

2&3 3&4 0 0 1 0

3&4 1&2&4 0 1 0 0

1&3 3&4 0 0 1 0
Instantiation a new Instantiation a 1 0 0 0
catalog new Sql table

3&4 2&4 0 0 0 1

2&3&4 1&4 0 0 1 0
1&3&4 2&4&5 2&4 0 0 0 0

2&3&4 4&5 1&2&4 1 0 0 0


1&2 2&4 1&2&3 0 1 0 0

2&4 3&4 0 0 1 0

2&3 1&3 0 0 0 1
3&4 1&3 0 0 1 0

1&3 2&4 0 1 0 0
1&3&4 1&4 1 0 0 0
3&1 2&4 0 0 0 1

HtmlWriter TextHtmlWriter 0 1 0 0

1&4&5 1&2&4&5 2&3&4 0 0 0 0


&5
2&4 1&3 1 0 0 0

By adding an HTML elements 1 0 0 0


attribute cannot be
control="servercont converted to
rol" in the page HTML server
controls

By assigning a value You cannot 0 1 0 0


to the control reference a
HTML control as
a member within
your code

The following code The following 0 0 0 1


shows how to code shows how
declare a Validation to declare an
control HTML server
Control

2&3&4 2&4 0 0 1 0
CompareValidator CustomValidator 1 0 0 0

Usage of Usage of 0 0 1 0
RegularExpressionV CustomValidator
alidator
Usage of Usage of 0 0 0 1
RegularExpressionV ComparisonValid
alidator ator

Usage of Usage of 1 0 0 0
RegularExpressionV CustomValidator
alidator
2&4 3&4 0 1 0 0

Themes allow you Themes & 0 1 0 0


to share data across Master pages
multiple pages in a are both same
web site

1&4 3&4 0 0 1 0

2&3&4 2&4 0 0 0 1
Usage of a Default Usage of a 0 1 0 0
skin stylesheet

By applying a By applying a 0 0 1 0
Theme to a page Theme to a page
with the with the Theme
StyleSheetTheme attribute
attribute

By setting By setting 0 1 0 0
DisableTheming DisableTheming
property to true property to false

Registring a Registring a Skin 0 1 0 0


MasterPage in in web.config
web.config

By declaring them You cannot 0 0 1 0


as public expose
properties &
methods from a
Master Page so
that they are
modifiable from
a particular
content page
3&4 1&3 0 0 0 1

The directive is The directive is 0 1 0 0


used to register an used to register
application a web site

1&2 2&3&4 1 0 0 0

3&5 2&4 1&2&4 0 0 0 0


&5

Cntrl Src 1 0 0 0
1&3&4 1&2&4 0 1 0 0

Cntrl Src 0 1 0 0

1&4 1&2&3 0 0 1 0

By declaring the By defining 0 0 0 1


event public events for the
user control &
raising them so
that the host
page is notified
of the event

Cntrl Src 0 0 0 1
2&4 1&2&3 1 0 0 0

1&3 1&2 0 0 1 0

1&3&4 1&2&4 0 0 0 1

2&4 4&5 2&3&5 0 0 0 0

CheckChanged CheckChanged 0 0 0 1
event is raised at event is raised
the client side on the server
2&3&5 1&3 2&4&5 0 0 0 0

1&4 2&4 0 1 0 0

By using the By using the 1 0 0 0


AutoPostBack PostBackData
property property
1&2&4 1&4 0 0 0 1
1&2&3 1&4 0 0 1 0

1&3&4 2&4 0 1 0 0

1&3&4 1&2 1 0 0 0

Yes; you can use You cannot use 0 1 0 0


VB6.0 components components
using COM Callable developed in
Wrapper (CCW) VB6.0 in ASP.NET
Yes; you can You cannot use 0 0 1 0
use.NET components
components in developed
VB6.0 using COM in.NET in VB6.0
Callable Wrapper
(CCW)

Through Remoting Through usage 1 0 0 0


of web services

Because on first Because .NET 0 1 0 0


load ASP.NET files loads the entire
are converted to application in
native executables the memory
that are recognized
by the operating
system & then
executed

POST sends POST & GET do 0 0 1 0


information in a the same thing
HTTP Header

1&2 2&3 0 0 1 0
HttpRequest HttpResponse 0 0 1 0

HttpRequest HttpResponse 0 0 0 1

1&3 1&2&4 0 0 0 1

1&3 3&4 0 0 1 0

2&3 1&3&4 0 1 0 0
The click event is The click event 0 0 1 0
raised only when calls a web
the page containing service
the button is
posted back to the
server

II, III, IV, I IV, II, I, III 1 0 0 0

By using <% Code One ASP.NET 0 0 0 1


%> directive page cannot
have multiple
languages

By registering the An assembly is 0 0 1 0


assembly in Global private to a web
Assembly Cache application &
cannot be
shared

System.DataSource System.XML 0 1 0 0

1 0 0 0
By checking the By checking the 0 1 0 0
ViewState property event log

HTTP TCP/IP PPP 0 0 1 0

1 0 0 0

Session variables Application 0 1 0 0


variables

Session variables Session variables 0 0 0 1


are stored locally are used to store
information that
can be retrieved
by other pages
during the
course of a user
session

Application Cookies 0 0 1 0
variables
Application Cookies 0 0 0 1
variables

ASP SGML 0 0 1 0
A network A network 0 0 1 0
application that application that
listens for HTTP connects
requests & multiple servers
responds to the
requests by sending
data to the client
which is usually a
web browser

A command that A command to 1 0 0 0


locates a particular locate a
resource on the particular web
web server
URL IP Address 0 0 0 1

Customization Culturalization 0 1 0 0

1&4 2&3 1 0 0 0

UICulture Globalize 0 0 1 0
The Culture The Culture 0 1 0 0
property property
determines how determines the
resource files are default culture
used for formatting of the operating
dates, system
numerals,and
currency amounts

When you provide When you 0 0 1 0


the culture name provide country
but no name & culture
country/region name as US
code

If you do not If you provide 0 0 0 1


provide either a both a language
language code or a code and a
country/region country/region
code code

1 0 0 0

Currency values are No effect on the 0 0 0 1


fetched from currency values
web.config file

By modifying the You cannot 1 0 0 0


web.config file display dates
with language
specific month
names
It denotes that the It denotes that 1 0 0 0
language is English the language is
& Country is India English &
Country is Global

3&4 1&3&4 0 0 0 1

1&2&4 3&4 0 0 1 0

3&4 2&5 1&3&4 0 0 0 0


&5
1&3&4 1&2 0 0 1 0

1&3&4 1&2 0 1 0 0

Compiler will Compiler will 0 1 0 0


consider the generate the
implementing defining partial
partial as a normal
method and
compile the code

2&4 1&4 1 0 0 0
1&2&3 2&4 0 0 0 1

2&4 1&3 0 0 1 0
1&3 2&4 0 1 0 0

2&3&4 4&5 1&2&3 0 0 0 0


&5

1&4 2&3 1 0 0 0
1&2 2&3&4 0 0 0 1

1&3 2&3 0 0 1 0

1&2&3 2&3 0 1 0 0

Stores user Stores user 0 1 0 0


information information in
resource files Active Directory
It shows how the It shows how the 0 1 0 0
config file is config file is
configured to use configured to
membership use membership
information from information
the active directory from the IIS

2&3 2&4 0 0 1 0
It shows how the It shows how the 0 0 0 1
config file is config file is
configured to use configured to
membership create a custom
information from membership
the active directory provider

1&2&5 2&3 1&4&5 0 0 0 0


1&3&4 1&2 0 0 1 0

Enables you to Enables you to 0 1 0 0


store role use
information in a Authorization
Microsoft SQL Manager
Server database

Enables you to Enables you to 0 0 0 1


store role use
information in a Authorization
Microsoft SQL Manager to
Server database store role
information in
an XML file,
Active Directory,
or Activity
Directory
Application
Mode

It enables It enables 1 0 0 0
AuthorizationStore ActiveDirectoryR
RoleProvider oleProvider
The configuration The 0 0 1 0
file authorizes configuration file
Accounts & denies authorizes only
access to everyone Accounts
else administrators

The configuration The 0 1 0 0


file configures the configuration file
AuthorizationStore configures the
RoleProvider as the ActiveDirectoryR
default provider oleProvider as
the default
provider

The settings enable The settings 0 1 0 0


caching roles in a enable user roles
database
AddUserToRole AddUserToRoles 1 0 0 0

IsUserInRole FindUsersInRole 0 0 0 1

By using the By using the 0 1 0 0


CreateCookie CookieProtectio
attribute of the n attribute of the
Role Manager Role Manager

1&2&4 2&3 1 0 0 0

3&4 1&2&4 0 0 0 1
1&3 3&4 0 0 1 0

Control properties Control 0 0 0 1


are loaded with properties are
information loaded with
recovered from information
config files recovered from
view state and
control state

1&3&4 2&4 0 0 1 0

3&4 1&2&3 0 1 0 0
2&3 1&4 1 0 0 0

InitComplete PreLoad 1 0 0 0

InitComplete PreLoad 0 0 0 1

LoadComplete Unload 0 0 1 0

Using User Controls Using Custom 0 1 0 0


Controls
3&4 1&2 1 0 0 0
1&4 2&3 0 0 0 1

System.Web.UI.We System.Web.UI. 0 0 0 1
bPage Page
2&3 1&2&3 0 0 1 0
It denotes a code- It denotes a 0 1 0 0
behind page header file
It denotes a code- It denotes a 0 0 1 0
behind page header file

1&2 1&3&4 0 1 0 0
Explicitly imports an Explicitly imports 0 0 0 1
ASP.NET master a namespace
page into a page or
user control

It denotes that the It denotes that 1 0 0 0


language is English the language is
& Country is India English &
Country is Global

By setting the By setting the 1 0 0 0


UICulture & Culture UICulture &
property of the < Culture property
%@ UICulture %> of the <%@
directive in the aspx Localization %>
directive in the
aspx

By calling the By accessing 0 1 0 0


CultureInfo method Culture
of the CultureInfo information
class from browser
setting

By checking the Automatic 0 0 1 0


browser settings detection of
user's culture is
not possible
Culture User-Settings 0 1 0 0

By using the By using the 0 0 0 1


InstantiateData Request.UserLan
method of the guages property
ITemplate interface
By setting UICulture By using the 0 0 1 0
& Culture Request.UserLan
properties to auto guages property

By setting UICulture By using the 1 0 0 0


& Culture Request.UserLan
properties to auto guages property

2&3 1&3 0 0 0 1

Contains a list of Contains a list of 0 0 1 0


the user’s preferred all the languages
languages
1 0 0 0

Enables you to Enables you to 0 0 1 0


retrieve an retrieve a sorted
unsorted array of array of cultures
cultures of type of type
CultureInfo CultureInfo
3&4 2&3 0 1 0 0

3&4 2&4 1 0 0 0

3&4 1&4 0 0 0 1

When a user When a user 0 0 0 1


requests the page, requests the
a resource file that page, a resource
matches the file that matches
registry settings is the user’s
loaded preferred
automatically browser
language is
loaded
automatically
By using web.config You cannot 0 1 0 0
file localize multiple
control
properties with
one resource key

It represents a It represents the 0 0 1 0


resource key in a control name
local resource file

By using the By using the 0 0 0 1


GetResourceObject GetLocalResourc
method eObject method
1&2 3&4 1 0 0 0

By using the By using the 0 0 1 0


GetGlobalResource GetLocalResourc
Object method eObject method
Customization Culturalization 0 1 0 0
3&4 1&3 0 0 0 1

UICulture Globalize 0 0 1 0

The Culture The Culture 0 1 0 0


property property
determines how determines the
resource files are default culture
used for formatting of the operating
dates, system
numerals,and
currency amounts

When you provide When you 0 0 1 0


the culture name provide country
but no name & culture
country/region name as US
code

If you do not If you provide 0 0 0 1


provide either a both a language
language code or a code and a
country/region country/region
code code

1 0 0 0

Currency values are No effect on the 0 0 0 1


fetched from currency values
web.config file
By modifying the You cannot 1 0 0 0
web.config file display dates
with language
specific month
names
2&3 1&4 0 1 0 0

2&3 1&4&5 2&3&5 0 0 0 0

It is an example of a It is an example 0 0 1 0
web method of a of a Windows
web service service

1&3&4 2&1&5 1&2&3 0 1 0 0


System.Web.Util System.Web.Ser 0 0 0 1
vices.WebServic
e
1&3 1&3&4 0 0 1 0

SOAP XML 0 0 1 0

SOAP Envelope SOAP Envelope 0 1 0 0


defines the transmits the
mechanism of SOAP message
transporting a SOAP
message

1&2&4&5 2&3&4 1&3&4 0 0 0 0


&5
2&4 1&3 0 1 0 0

A WSDL proxy is Web service 1 0 0 0


created on the methods are
server that exposed at the
consumes the web server
service

2&3&4 2&3&5 1&4 0 0 0 1

wsdl /WSDL wsdl 0 1 0 0


http://hostServer/ http://hostServe
WebserviceRoot/W r/WebserviceRo
ebServiceName.as ot/WebServiceN
mx ame.asmx?XML
1&2 1&2&4 0 0 0 1

It consists of the It contains the 1 0 0 0


classes used to classes needed
define the to configure a
protocols that Web Service
enable message
transmission over
HTTP between
ASP.NET Web
Services and
ASP.NET Web
Service clients

It consists of the It contains the 0 1 0 0


classes used to classes needed
define the to configure a
protocols that Web Service
enable message
transmission over
HTTP between
ASP.NET Web
Services and
ASP.NET Web
Service clients
It consists of the It contains the 0 0 1 0
classes used to classes needed
define the to configure a
protocols that Web Service
enable message
transmission over
HTTP between
ASP.NET Web
Services and
ASP.NET Web
Service clients

Type marshalling is Type marshalling 0 0 0 1


the mapping of is the mapping
types from Web of types from
Service method Web Service
calls to .NET method calls to
intrinsic datatypes SOAP datatypes

Yes, by discovering No, web services 0 1 0 0


the web service cannot be
accessed from
ASP pages
ScriptManager UpdateClient 1 0 0 0
control control

ScriptManager RunScript 0 0 1 0
control control
1&2&3 3&4 0 0 0 1
IsInPartialRendering RenderMode 1 0 0 0

2&3 1&4 0 1 0 0

2&4 3&4 0 0 1 0

By using By using Nested 0 0 0 1


ScriptManager UpdatePanel
control Controls
RegisterClientScript RegisterClientScr 0 1 0 0
Include iptResource

RegisterClientScript RegisterClientScr 0 0 0 1
Include iptResource

By using By using 1 0 0 0
PageRequestManag PageRequestMa
er nager
abortPreviousPostB abortPreviousAs
ack() method yncPostBack()
method
UpdateProgress UpdateStatus 0 0 1 0
control control

The ID of the The ID of the 0 1 0 0


control that the panel control
user clicks to drag that the user
the Panel control clicks to drag the
child control

A Javascript alert A 'Page not 0 0 1 0


box appears that found' error is
displays an error thrown
message
Animation stops Animation 0 1 0 0
when you hover pauses when
your mouse over you hover your
the target mouse over the
target

SlideShow DropShadow 0 1 0 0

JavaScript.js MicrosoftAjax.js 0 0 0 1

MicrosoftAjaxWebF MicrosoftAjax.js 0 0 1 0
orms.js

It redirects the user It redirects the 0 0 1 0


to a functional page user to the
after successful logout page after
authentication unsuccessful
authentication
1&4 2&3 1 0 0 0

It enables you to It enables you to 0 0 1 0


store information display
associated with a information
user across multiple associated with
visits to a web a user across
application multiple visits to
a web
application

Hyperlinks Hyperreference 0 0 1 0
1&2&4 3&5 1&2&4 0 0 0 0
&5

<title> <name> 0 0 1 0

2&4 1&2&3 3&4&5 0 1 0 0

Cascading Style Presentation 0 0 1 0


sheets Manager
1&3&5 2&3&4 1&2&5 1 0 0 0

1&3&4 1&2&4 0 0 0 1
1&3 2&5 1&2&4 0 0 0 0

2&5 1&2&4&5 3&4&5 0 0 0 1

2&3&4 3&4 0 0 1 0
3&4 1&3 0 1 0 0

Each HTML Each logical 0 0 1 0


document that gets Form element in
loaded into a a HTML window
window is a represents a
document object document object

1&2&4 3&4 1 0 0 0
1&3 2&4 0 0 0 1

Using the && Using the ++ 0 1 0 0


operator operator
3&4 1&4 1&3&4 0 0 0 0
&5

for (initial for ([initial 1 0 0 0


expression; expression];
condition; update condition;
expression) [update
{_x000D_ expression])
statement[s] inside {_x000D_
loop_x000D_ statement[s]
} inside
loop_x000D_
}
3&4 1&4 0 1 0 0
Tracy Flynn Owns a John Brown 1 0 0 0
Audi_x000D_ Owns a
Tracy Flynn Owns a BMW_x000D_
Audi John Brown
Owns a BMW
1&4 1&3&5 2&3&4 0 0 1 0

2&4 2&3 0 0 0 1
1&2&3 2&4 0 1 0 0

1&3&4 2&4&5 1&2&4 0 0 0 0

1&2 1&3 0 0 0 1
2&3&4&5 1&2&4&5 1&2 0 0 1 0

1&2&3 3&5 1&2&5 0 1 0 0

Table Text Table Width 0 1 0 0


Alignment

1&3&4&5 1&2 3&4 1 0 0 0

It shows how to use It shows how to 0 1 0 0


nested selectors use individual
selectors
1&2&4 2&3 0 0 0 1

It styles all the It styles all the 1 0 0 0


elements within the elements for
title class title initializer

1&2&3&4 1&2&4&5 1&4&5 0 0 0 0


It styles all the It styles all the 1 0 0 0
elements within the elements for
title class title initializer

Using <map> tag Using <embed> 0 0 1 0


tag
Using the Using an 0 1 0 0
<pagesound> tag attribute of the
<page> tag
1&2 3&4 1 0 0 0

Using the Using an 0 1 0 0


<pagesound> tag attribute of the
<page> tag
1&2 1&4 0 0 0 1
1&3&4 2&4 0 0 1 0

The bind attribute A label cannot 1 0 0 0


of the <label> tag be bound with
should be equal to an input element
the id attribute of
the related element

3&4 1&2&3 0 1 0 0
2&3 2&4 0 0 0 1

1&3&4 2&3 0 0 1 0

1&3&4 1&2&5 1&5 0 1 0 0

First radio button is All the radio 0 0 1 0


checked by default buttons are
checked by
default
1&2&3 3&5 1&2&4 1 0 0 0

1&2&3&4 4&5 1&4&5 0 0 0 0

1&2&3 2&3 0 0 0 1

1&4 2&3 0 0 1 0
3&4 2&3&4 0 1 0 0

3&4 1&3&5 1&2&3 0 0 0 1


&5
Grade5
0

0
0

1
0

0
0

0
0

0
1

0
0

0
0

0
1

0
0

0
0

0
0

0
1

0
1

0
0

0
0

0
0

0
1

0
0

0
0

0
0

0
0

0
0

0
0

0
1

0
0
0

0
0

0
0

0
0

0
0

1
0

0
0

0
0

0
1

0
0

0
1

0
0

0
1

0
0

0
0

0
0

0
0

0
0

0
0

0
0

0
1

0
0

0
0

0
0

0
0

1
0

0
0

0
1

0
0

0
1

0
0

0
0

0
0

0
0

1
0

0
0

0
0

0
0

0
0

0
1

0
0

0
0

1
0

0
0

0
0

0
0

0
0

1
0

0
0

0
1

0
0

0
0

0
0

0
0

0
0

0
0

1
0

0
0

0
0

0
0

0
1

0
0

0
0

0
0

1
0

0
0

0
1

0
0

0
0

0
0

0
0

0
0

0
0
0
0
0
0

0
0

0
0

0
0

0
0

0
0

0
0

0
0

0
0

0
0

0
0

0
0

0
0

0
0

0
0

0
0

0
0

0
0

0
0

0
0

0
1

0
0

0
0

0
0
0

1
0

0
0

0
0

0
0

0
0

0
0

0
0

0
0

0
1

0
0

0
0

0
0

0
0

0
0

0
0

0
0

0
0

1
0

0
0

0
0

0
0

0
0

0
0

1
0

0
0

0
0

0
0

0
0

0
0

0
0
0

0
0

0
0

0
0

0
0

0
0

0
0

0
0

1
0

0
0

0
0

0
0

0
0

0
0

0
1

0
0

0
1

0
0

0
0

0
0
0
0

0
0

0
0

0
0

1
0

0
0

0
0

0
0

0
0

You might also like