C++ Programming Questions Answers - Set 2
-
50. Enumerators are stored by the compiler in ?
- string
- integer
- float
- any of above
Answer :
Option B
-
51. Which variables cannot be declared ?
- structure
- pointer
- class
- void
Answer :
Option D
-
52. What is purpose of abstract class ?
- to provide help with database connectivity.
- to provide data input to other classes.
- to provide security to other classes.
- to provide an appropriate base class from which other classes can inherit.
Answer :
Option D
-
53. C++ is a ?
- Procedural programming language
- Structural programming language
- Low level language
- Object oriented programming language
Answer :
Option D
-
54. A variable is defined within a block in a body of a function. Which of the following are true ?
- It is visible from the point of definition to the end of the program.
- It is visible throughout the function.
- It is visible from the point of definition to the end of the block.
- It is visible throughout the block.
Answer :
Option B
-
55. Classes that can be used to instantiate objects are called concrete classes.
- True
- False
Answer :
Option A
-
56. Which of the following cannot be passed to a function ?
- Array
- Reference variable
- Object
- File
Answer :
Option D