MULTIPLE CHOICE QUESTIONS AND ANSWERS
  1. A class encapsulates _______ and _______ together.
    1. data, functions
    2. integers, floats
    3. numbers, characters
    4. addresses, pointers
    5. None of these

    Answer: (a)

  2. A images++ class is a _______.
    1. header file
    2. Variable
    3. User defined variable type
    4. library function
    5. inline function

    Answer: (c)

  3. A procedural program stores _____ in a collection of variables and a set of __________ perform operations on it.
    1. None of these
    2. strings, operators
    3. parameters, arguments
    4. numbers, arguments
    5. data, functions

    Answer: (e)

  4. 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.