OOP QUiz 1
OOP QUiz 1
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
******