Thursday 4 June 2020

c# quiz part-1


 C# Quiz Part-1


1. Static constructor is used to initialize ?
     A. 
     B. 
     C. 
     D. 
... Answer is B)
Static data members



2. The members which is declared as private are available only ?
     A. 
     B. 
     C. 
     D. 
... Answer is C)
With in the containing type only



3. The members which is declared as Internal are available ?
     A. 
     B. 
     C. 
     D. 
... Answer is A)
Any where within the containing assembly



4. Default access modifier of class member is ?
     A. 
     B. 
     C. 
     D. 
... Answer is D)
Private



5. Default constructor is classified into two types ?
     A. 
     B. 
     C. 
     D. 
... Answer is C)
Both



6. Copy Constructor is used to ?
     A. Copy one array into another.
     B. Copy o
     C. 
     D. 
... Answer is B)
Copy one object data into another object 



7. Constants in c# are ? 
     A. Mutable
     B. 
     C. Changes their values.
     D. 
... Answer is B)
Immutable 



8. Read-only variable are required to initialize at its declaration ?
     A. True
     B. 
     C. Can't say
     D. 
... Answer is A)
True 



9. In c# Array we can't insert value in the middle ?
     A. True
     B. False
     C. Can't say
     D. 
... Answer is A)
True

 
 
10. ContainKey and ContainValue are two method of HashTable ?
     A. True
     B. False
     C. 
     D. 
... Answer is A)
True 





Thank You



No comments:

Post a Comment

In case of any query , please let me know, Thanks