Deck 2: .Net Framework and ASP.net Programming: Part B

Full screen (f)
exit full mode
Question
What is used to validate complex string patterns like an e-mail address?

A)Required Field Validator
B)Range Validator
C)Regular Expression Validator
D)Custom Validator
Use Space or
up arrow
down arrow
to flip the card.
Question
How many times can a constructor be called during lifetime of the object?

A)As many times as we call it.
B)Only once.
C)Any number of times before the object gets garbage collected.
D)Any number of times before the object is deleted.
Question
A property can be declared inside a class, struct, Interface.
Question
Which of the following statements is correct about properties used in C#.NET?

A)Every property must have a set accessor and a get accessor.
B)Properties cannot be overloaded.
C)Properties of a class are actually methods that work like data members.
D)A property has to be either read only or a write only.
Question
Which of the following is NOT a .NET Exception class?

A)Exception
B)StatckMemoryException
C)DivideByZeroException
D)OutofMemoryException
Question
In C#.NET if we do not catch the exception thrown at runtime then which of the following will catch it?

A)Compiler
B)CLR
C)Linker
D)Loader
Question
Which of the following is the Object Oriented way of handling run-time errors?

A)OnError
B)HERESULT
C)Exceptions
D)Error Codes
Question
Exceptions can be thrown even from a constructor, whereas error codes cannot be returned from a constructor.
Question
All code inside finally block is guaranteed to execute irrespective of whether an exception occurs in the protected block or not.
Question
It is compulsory for all classes whose objects can be thrown with throw statement to be derived from System.Exception class.
Question
Which of the following is NOT an Exception?

A)Stack Overflow
B)Division By Zero
C)Insufficient Memory
D)Incorrect Arithmetic Expression
Question
Which of the following is NOT a namespace in the .NET Framework Class Library?

A)System.Process
B)System.Security
C)System.Threading
D)System.Drawing
Question
Which of the following statements is correct about a namespace in C#.NET?

A)Namespaces help us to control the visibility of the elements present in it.
B)A namespace can contain a class but not another namespace.
C)If not mentioned, then the name 'root' gets assigned to the namespace.
D)It is necessary to use the using statement to be able to use an element of a namespace.
Question
Which of the following CANNOT belong to a C#.NET Namespace?

A)Class
B)Struct
C)Enum
D)Data
Question
Which of the following statements is correct about a namespace used in C#.NET?

A)Nested namespaces are not allowed.
B)Importing outer namespace imports inner namespace.
C)Nested namespaces are allowed.
D)If nested, the namespaces cannot be split across files.
Question
Which of the following denote the web control associated with Table control function of ASP.NET?

A)DataList
B)ListBox
C)TableRow
D)All the above
Question
ASP.NET separates the HTML output from program logic using a feature named as

A)Exception
B)Code-behind
C)Code-front
D)None of the above
Question
If a developer of ASP.NET defines style information in a common location. Then that location is called as

A)Master Page
B)Theme
C)Customization
D)None of the above
Question
The feature in ASP.NET 2.0 that is used to fire a normal postback to a different page in the application is called

A)Theme
B)Cross page posting
C)Code-front
D)None of the above
Question
The GridView control in ASP.NET has which of the following features

A)Automatic data binding
B)Automatic paging
C)Both A and B
D)None of the above
Question
Which of the following denote page code model in ASP.NET?

A)Single File
B)Code Behind
C)Both A and B
D)None of the above
Question
Which of the following denote New Data-bound Controls used with ASP.NET?

A)GridView
B)SqlDataSource
C)FormView
D)All of the above
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/22
auto play flashcards
Play
simple tutorial
Full screen (f)
exit full mode
Deck 2: .Net Framework and ASP.net Programming: Part B
1
What is used to validate complex string patterns like an e-mail address?

A)Required Field Validator
B)Range Validator
C)Regular Expression Validator
D)Custom Validator
Regular Expression Validator
2
How many times can a constructor be called during lifetime of the object?

A)As many times as we call it.
B)Only once.
C)Any number of times before the object gets garbage collected.
D)Any number of times before the object is deleted.
Only once.
3
A property can be declared inside a class, struct, Interface.
True
4
Which of the following statements is correct about properties used in C#.NET?

A)Every property must have a set accessor and a get accessor.
B)Properties cannot be overloaded.
C)Properties of a class are actually methods that work like data members.
D)A property has to be either read only or a write only.
Unlock Deck
Unlock for access to all 22 flashcards in this deck.
Unlock Deck
k this deck
5
Which of the following is NOT a .NET Exception class?

A)Exception
B)StatckMemoryException
C)DivideByZeroException
D)OutofMemoryException
Unlock Deck
Unlock for access to all 22 flashcards in this deck.
Unlock Deck
k this deck
6
In C#.NET if we do not catch the exception thrown at runtime then which of the following will catch it?

A)Compiler
B)CLR
C)Linker
D)Loader
Unlock Deck
Unlock for access to all 22 flashcards in this deck.
Unlock Deck
k this deck
7
Which of the following is the Object Oriented way of handling run-time errors?

A)OnError
B)HERESULT
C)Exceptions
D)Error Codes
Unlock Deck
Unlock for access to all 22 flashcards in this deck.
Unlock Deck
k this deck
8
Exceptions can be thrown even from a constructor, whereas error codes cannot be returned from a constructor.
Unlock Deck
Unlock for access to all 22 flashcards in this deck.
Unlock Deck
k this deck
9
All code inside finally block is guaranteed to execute irrespective of whether an exception occurs in the protected block or not.
Unlock Deck
Unlock for access to all 22 flashcards in this deck.
Unlock Deck
k this deck
10
It is compulsory for all classes whose objects can be thrown with throw statement to be derived from System.Exception class.
Unlock Deck
Unlock for access to all 22 flashcards in this deck.
Unlock Deck
k this deck
11
Which of the following is NOT an Exception?

A)Stack Overflow
B)Division By Zero
C)Insufficient Memory
D)Incorrect Arithmetic Expression
Unlock Deck
Unlock for access to all 22 flashcards in this deck.
Unlock Deck
k this deck
12
Which of the following is NOT a namespace in the .NET Framework Class Library?

A)System.Process
B)System.Security
C)System.Threading
D)System.Drawing
Unlock Deck
Unlock for access to all 22 flashcards in this deck.
Unlock Deck
k this deck
13
Which of the following statements is correct about a namespace in C#.NET?

A)Namespaces help us to control the visibility of the elements present in it.
B)A namespace can contain a class but not another namespace.
C)If not mentioned, then the name 'root' gets assigned to the namespace.
D)It is necessary to use the using statement to be able to use an element of a namespace.
Unlock Deck
Unlock for access to all 22 flashcards in this deck.
Unlock Deck
k this deck
14
Which of the following CANNOT belong to a C#.NET Namespace?

A)Class
B)Struct
C)Enum
D)Data
Unlock Deck
Unlock for access to all 22 flashcards in this deck.
Unlock Deck
k this deck
15
Which of the following statements is correct about a namespace used in C#.NET?

A)Nested namespaces are not allowed.
B)Importing outer namespace imports inner namespace.
C)Nested namespaces are allowed.
D)If nested, the namespaces cannot be split across files.
Unlock Deck
Unlock for access to all 22 flashcards in this deck.
Unlock Deck
k this deck
16
Which of the following denote the web control associated with Table control function of ASP.NET?

A)DataList
B)ListBox
C)TableRow
D)All the above
Unlock Deck
Unlock for access to all 22 flashcards in this deck.
Unlock Deck
k this deck
17
ASP.NET separates the HTML output from program logic using a feature named as

A)Exception
B)Code-behind
C)Code-front
D)None of the above
Unlock Deck
Unlock for access to all 22 flashcards in this deck.
Unlock Deck
k this deck
18
If a developer of ASP.NET defines style information in a common location. Then that location is called as

A)Master Page
B)Theme
C)Customization
D)None of the above
Unlock Deck
Unlock for access to all 22 flashcards in this deck.
Unlock Deck
k this deck
19
The feature in ASP.NET 2.0 that is used to fire a normal postback to a different page in the application is called

A)Theme
B)Cross page posting
C)Code-front
D)None of the above
Unlock Deck
Unlock for access to all 22 flashcards in this deck.
Unlock Deck
k this deck
20
The GridView control in ASP.NET has which of the following features

A)Automatic data binding
B)Automatic paging
C)Both A and B
D)None of the above
Unlock Deck
Unlock for access to all 22 flashcards in this deck.
Unlock Deck
k this deck
21
Which of the following denote page code model in ASP.NET?

A)Single File
B)Code Behind
C)Both A and B
D)None of the above
Unlock Deck
Unlock for access to all 22 flashcards in this deck.
Unlock Deck
k this deck
22
Which of the following denote New Data-bound Controls used with ASP.NET?

A)GridView
B)SqlDataSource
C)FormView
D)All of the above
Unlock Deck
Unlock for access to all 22 flashcards in this deck.
Unlock Deck
k this deck
locked card icon
Unlock Deck
Unlock for access to all 22 flashcards in this deck.