0% found this document useful (0 votes)
70 views2 pages

Mca 2 Semester (CA-205 (P) )

This document contains a 10 question quiz on object oriented programming concepts in C++. The questions cover topics like class types that allow single objects, constructor types, static and dynamic type checking, header files for input/output streams, default access specifiers, function overloading, function declarations, references, and access control keywords. The correct answers to each multiple choice question are provided at the end.

Uploaded by

Meetendra Singh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
70 views2 pages

Mca 2 Semester (CA-205 (P) )

This document contains a 10 question quiz on object oriented programming concepts in C++. The questions cover topics like class types that allow single objects, constructor types, static and dynamic type checking, header files for input/output streams, default access specifiers, function overloading, function declarations, references, and access control keywords. The correct answers to each multiple choice question are provided at the end.

Uploaded by

Meetendra Singh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 2

QUIZ Object Oriented System with C++

MCA 2nd Semester (CA-205 (P))


Name: - .
Roll No..
Date
Q1. Which of the following type of class allows only one object of it to be created?
A. Virtual class

B. Abstract class

C. Singleton class

D. Friend class

Q2. Which of the following is not a type of constructor?


A. Copy constructor

B. Friend constructor

C. Default constructor

D. Parameterized constructor

Q3. Which of the following statement is correct?


A. C++ allows static type checking.

B. C++ allows dynamic type checking.

C. C++ allows static member function be of type const.

D. Both A and B.

Q4. Which of the following header file includes definition of cin and cout?
A. istream.h

B. ostream.h

C. iomanip.h

D. iostream.h

Q5. Which of the following access specifier is used as a default in a class definition?
A. protected

B. public

C. private

D. friend

Q6. Which of the following function / type of function cannot be overloaded?


A. Member function B. Static function

C. Virtual function D. Both B and C

Q7. Which of the following function declaration is/are incorrect?


A. int Sum(int a, int b = 2, int c = 3);

B. int Sum(int a = 5, int b);

C. int Sum(int a = 0, int b, int c = 3);

D. Both B and C are incorrect.

Q8. A reference is declared using the _____ symbol.


A. &&

B. &

C. ||

D. !

Q9. Which of the following statement is correct?


A.

A referenced has to be de-referenced to access a value.

B.

A referenced does not need to be de-referenced to access a value.

C.

A referenced has to be double de-referenced to access a value.

D.

Whether a reference should be de-referenced or not depends on the type of the reference.

10. Which of the following keywords is used to control access to a class member?
A.

Default

B.

B. Break

C.

Protected

D. Asm

NAME & SIGNATURE OF EXTERNAL EXAMINER:

NAME & SIGNATURE OF INTERNAL EXAMINER:

Answer:
(1)

C (2) B (3) D (4) D (5) C (6) C (7) D (8) B (9) B (10) C

You might also like