Quiz : OOPS Concept

 
There are 15 questions. Each questions have 15 points. 15 minutes to complete this quiz.
Total 15 Minutes to complete this quiz.
Total 15 Points
 
1.

If we create a file by ‘ifstream’, then the default mode of the file is _________

 
1) ios :: out
2) ios :: in
3) ios :: binary
4) ios :: app
Marks: 1
2.

A variable defined within a block is visible

 
1) from the point of definition onward in the program.
2) from the point of definition onward in the function.
3) from the point of definition onward in the block.
4) throughout the function.
Marks: 1
3.

The break statement causes an exit

 
1) from the innermost loop only.
2) from all loops & switches.
3) only from the innermost switch.
4) from the innermost loop or switch.
Marks: 1
4.

Which of the following cannot be legitimately passed to a function

 
1) A constant.
2) A structure.
3) A variable.
4) A header file.
Marks: 1
5.

A property which is not true for classes is that they

 
1) are removed from memory when not in use.
2) permit data to be hidden from other classes.
3) bring together all aspects of an entity in one place.
4) Can closely model objects in the real world.
Marks: 1
Show questions per page
1 to 5 of 15 (3 Pages)