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

OOP QUiz 1

The document contains two instances of a 10 question OOP quiz with multiple choice answers. The quiz covers topics such as classes, arrays, encapsulation, inheritance, variables, functions, and friend functions.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
122 views2 pages

OOP QUiz 1

The document contains two instances of a 10 question OOP quiz with multiple choice answers. The quiz covers topics such as classes, arrays, encapsulation, inheritance, variables, functions, and friend functions.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

16UCA21 OOP QUIZ 1

1. A ----------- is a collection of objects of similar type.


a)array
b)class
c)pointer

d)Enumeration

2. The binding of data and functions together into a single class type variable is
referred to as ------.
a) encapsulation b) Inheritance
c) abstraction
d) dynamic
binding
3. The smallest individual units in a program are known as ----------a)keywords
b)identifiers
c)tokens
d)constants
4. A variable declares inside a block is said to be ----------- to that block.
a)local
b)global
c)internal
d)external
5. ________manipulator causes a linefeed to be inserted in a displaying the
output.
a)setw
b)endl
c)setf
d)setfill
6. A reference variable provides alias for a previously defined variable. True /
False?
7. The variables declared inside the class are known as ----------------.
a)variables
b)class variables c)class members b)Data members
8. A ------------ function can have access to only static members.
a)member function b)nonmember function c)virtual function

d)static

9. A ------------- never takes any argument does not return any value
a)constructor
b) inline function c)destructor
d) static function
10.Friend function can be declared only in the public part. True/False
******
16UCA21 OOP QUIZ 1
1. A ----------- is a collection of objects of similar type.
a)array
b)class
c)pointer

d)Enumeration

2. The binding of data and functions together into a single class type variable is
referred to as ------.
a) encapsulation b) Inheritance
c) abstraction
d) dynamic
binding
3. The smallest individual units in a program are known as ----------a)keywords
b)identifiers
c)tokens
d)constants
4. A variable declares inside a block is said to be ----------- to that block.
a)local
b)global
c)internal
d)external
5. ________manipulator causes a linefeed to be inserted in a displaying the
output.
a)setw
b)endl
c)setf
d)setfill
6. A reference variable provides alias for a previously defined variable. True /
False?
7. The variables declared inside the class are known as ----------------.
a)variables
b)class variables c)class members b)Data members
8. A ------------ function can have access to only static members.
a)member function b)nonmember function c)virtual function

d)static

9. A ------------- never takes any argument does not return any value
a)constructor
b) inline function c)destructor
d) static function
10.Friend function can be declared only in the public part. True/False
******

You might also like