Home / CSE / Object Oriented Programming Using C++ :: Section 7

CSE :: Object Oriented Programming Using C++

  1. The comma operator (,) is primarily used in conjunction with

  2. A.
    'for' statement
    B.
    'if-else' statement
    C.
    'do-while' statement
    D.
    All of the above
    E.
    None of the above

  3. To execute a C++ program, you first need to translate the source code into object code. This process is called

  4. A.
    coding
    B.
    compiling
    C.
    sourcing
    D.
    translating

  5. The rules of a programming language are called its _____

  6. A.
    code
    B.
    guidelines
    C.
    procedures
    D.
    regulations
    E.
    syntax

  7. An array element is accessed using

  8. A.
    a first-in-first-out approach
    B.
    the dot operator
    C.
    a member name
    D.
    an index number

  9. The program can access the private members of a class

  10. A.
    directly
    B.
    only through other private members of the class
    C.
    only through other public members of the class
    D.
    None of the above - the program cannot access the private members of a class in any way

  11. To hide a data member from the program, you must declare the data member in the _____ section of the class

  12. A.
    concealed
    B.
    confidential
    C.
    hidden
    D.
    private
    E.
    restricted

  13. External documentation includes

  14. A.
    a printout of the program's code
    B.
    flowcharts
    C.
    IPO charts
    D.
    pseudocode
    E.
    All of the above

  15. A function that is called automatically each time an object is created is a(n)

  16. A.
    constructor
    B.
    contractor
    C.
    builder
    D.
    architect

  17. A variable's _____ indicates how long the variable remains in the computer's memory

  18. A.
    area
    B.
    extent
    C.
    lifetime
    D.
    reach
    E.
    scope

  19. The function whose prototype is void getData(Item *thing); receives

  20. A.
    a pointer to a structure
    B.
    a reference to a structure
    C.
    a copy of a structure
    D.
    nothing