MULTIPLE CHOICE QUESTIONS AND ANSWERS
- A class encapsulates _______ and _______ together.
- data, functions
- integers, floats
- numbers, characters
- addresses, pointers
- None of these
Answer: (a)
- A ++ class is a _______.
- header file
- Variable
- User defined variable type
- library function
- inline function
Answer: (c)
- A procedural program stores _____ in a collection of variables and a set of __________ perform operations on it.
- None of these
- strings, operators
- parameters, arguments
- numbers, arguments
- data, functions
Answer: (e)
- True/False: Object-oriented programming is centred around the object, which encapsulates both the data and the functions ...
Get Object Oriented Programming with C++, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.