header1.html

Tuesday 9 April 2013

C# Quiz-3


C# Quiz-3
1.Which collection class represents first-in, first-out behaviour of objects?
ArrayList
Stack
Queue
SortedList


2. Which collection class manages items in a pairs of key/value?
HashTable
Stack
BitArray
Queue


3. In context of properties which of the following statements is true?
Properties must have atleast one accessor
Properties must have 'set' accessor
Properties must have 'get' accessor
No accessor is a must for a property to compile


4. A delegate which can point to more then one function at a time is known as which of the following?
an event
recursive function
delegate
muticast delegate


5.Whch of the following feature is based on publisher/subscriber model where publisher pubishes some activity to subscribers?
class
interface
event
collection


6.Which of the following is not true in context of structured exception handling?
finally block can be skipped
catch block can be skipped
arrange of blocks is flexible, for eg. try…finally…catch is valid
finally block do not take any argument like catch block


7.Which is the base class of all exceptions?
Exception
Error
SystemException
UserException


8.Where can we best do all clean up activities like freeing of resources in code?
In catch block
In finally block
in the end in try block
outside try..catch…finally blocks


9.Which of the following is not an available access specifier for class members?
public
private
external
internal


10. Which of the following correctly describes the contents of the filename AssemblyInfo.cs?
It contains assembly-level attributes.
It contains method-level attributes
It contains class-level attributes.
It contains structure-level attributes.

No comments:

Post a Comment