You are on page 1of 7

Objective Questions

1 What is the use of "GLOBAL.asax" file?

A. It allows to executing ASP.Net application level and setting application-level variables.


B. It allows to executing ASP.Net session level and setting session-level variables
C. It allows to executing ASP.Net Global variable
D. It allows to executing ASP.Net web.config file

2 What are Queues and Stacks?


A.Queue is for first-in first out(FIFO) structures. Stack is for for last-in, first-out (LIFO) structu
B.Queue is for last-in first out(LIFO) structures. Stack is for first-in first out (FIFO) structures.
C.Queue is for first-in last out(FILO) structures. Stack is for first-in first out (FIFO) structures.
D.Queue is for last-in last out(LILO) structures. Stack is for first-in first out (FIFO) strucutres

3 Where is viewstate information stored?


A.Temp file
B.Cache
C.in HTML Hiddenfield
D.Web server

4 What is the difference between string and stringbuilder?


A.Both are same
B.System.string can have mutable string where a variety of operations can be performed; Sy
C.System.string is immutale; System.stringbuilder can have mutable string where a variety o
D.System.string is fixed size; System.stringbuilder can have variable size

5 Which one of the statement is FALSE to define arraylist?


A.arraylist can hold item of different data types
B.arraylist provides way of accessing the index using a user identified key value, thus remov
C.arraylist provides way of accessing the index using INDEX value of the array position
D.arraylist can increase and decrease size dynamically you do not have to use the REDIM k
Question Answer
1A
2A
application-level variables. 3C
sion-level variables 4C
5B

last-in, first-out (LIFO) structures


-in first out (FIFO) structures.
-in first out (FIFO) structures.
-in first out (FIFO) strucutres

erations can be performed; System.stringbuilder is immutale


utable string where a variety of operations can be performed

entified key value, thus removing the INDEX Problem


alue of the array position
not have to use the REDIM keyword
1 How many types of validation controls are provided by ASP.Net
2 What is the use of "GLOBAL.ASAX" file?
3 What are the various ways of authentication techniques in ASP.Net
4 What are value types and reference types?
5 What is concept of boxing and unboxing?
1 How many types of validation controls are provided by ASP.Net

There are six main types of validation controls :


1. RequiredFieldValidator
2. RangeValidator
3. CompareValidtor
4. RegularExpressionValidator
5. CustomValidator
6. Validationsummary

2 What is the use of "GLOBAL.ASAX" file?


It allows to executing ASP.Net application level events and setting application-level variables

3 What are the various ways of authentication techniques in ASP.Net


Selecting an authentication provider is as simple as making an entry in the web.config file
for the application. You can use one of these entries to select the corresponding built in
authentication provider:
<authentication mode=”windows”>
<authentication mode=”passport”>
<authentication mode=”forms”>

4 What are value types and reference types?


Value types directly contain their data which are either allocated on the stack or allocated in-
a structure.
Reference types store a reference to the value's memory address, and are allocated on the
Reference types can be self-describing types, pointer types, or interface types.
Variables that are value types each have their own copy of the data, and therefore operation
one variable do not affect other variables. Variables that are reference types can refer to the
object; therefore, operations on one variable can affect the same object referred to by anoth
variable. All types derive from the System.Object base type.

5 What is concept of Boxing and Unboxing?


Boxing permits any value type to be implicitly converted to type object or to any interface typ
implemented by value type. Boxing is a process in which object instances are created and co
values in to that instance.
Unboxing is vice versa of boxing operation where the value is copied from the instance in to
appropriate storage location.
Below is sample code of boxing and unboxing where integer data type is converted in to obje
and then vice versa.
Dim x As Integer
Dim y As Object
x = 10
‘ boxing process
y=x
112
‘ unboxing process
x=y
application-level variables

ry in the web.config file


corresponding built in

n the stack or allocated in-line in

and are allocated on the heap.


erface types.
a, and therefore operations on
nce types can refer to the same
bject referred to by another

ect or to any interface type


stances are created and copy

ed from the instance in to

ype is converted in to object


SQL Server

1 Which of the following commands is used to change the structure of table?


A. CHANGE TABLE(…)
B. MODIFY TABLE (…)
C. ALTER TABLE (…)
D. UPDATE TABLE (…)

2 Which one of the following query returns rows from the table "employee" that have null in co
A. SELECT * FROM employee where city = NULL
B. SELECT * FROM employee where city IS NULL
B. SELECT * FROM employee where city = "NULL"
D. SELECT * FROM employee where city EQUALS NULL
E. SELECT * FROM employee where city CONTAINS NULL

3 Which of the following is not a valid numeric datatypes in SQL Server?


A. INT
B. SMALLINT
C. TINYINT
D. BIGINT
E. DOLLAR

4 How can you view the structure of a table named "Employee" in SQL Server?
A. DESC TABLE EMPLOYEE
B. SP_TABLE EMPLOYEE
C. SP_HELPTEXT EMPLOYEE
D. SP_HELP EMPLOYEE

5 Which of the following datatype is not suppored by SQL Server?


A. Char
B. Binary
C. Logical
D. Datetime
E. All are supported
Question Answer
1C
2B
3E
4D
5C

oyee" that have null in column "city"?

You might also like