Classes Multiple Questions and Answers.




1.Which of the following is not type of class?
A. Abstract Class
B. Final Class
C. Start Class
D. String Class

2.Class is pass by ?
A. Value
B. Reference
C. Value or Reference, depending on program
D. Copy

3.Class is pass by ?
A. Value
B. Reference
C. Value or Reference, depending on program
D. Copy

4.What is default access specifier for data members or member functions declared within a class without any specifier, in C++?
A. Private
B. Protected
C. Public
D. Depends on compiler

5.Which is most appropriate comment on following class definition?
A. Error : same variable name can’t be used twice
B. Error : Public must come first
C. Error : data types are different for same variable
D. It is correct

»


Read More :

Quick Links

GAT Subject



   Computer Science    English    Agriculture    Botany    

Engineering



   Computer Science    Civil Engineering    

Technical



   Networking    Electronics    Database    

Past Papers



   Model Papers    FPSC    PPSC    NTS