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

CSE :: Object Oriented Programming Using C++

  1. The functions go in the _____ section of a class definition

  2. A.
    declaration
    B.
    implementation
    C.
    prototype
    D.
    functioning

  3. You can throw _____

  4. A.
    a scalar variable
    B.
    a constant
    C.
    a programmer-defined class object
    D.
    any of these

  5. You invoke a function with a function

  6. A.
    call
    B.
    declaration
    C.
    definition
    D.
    prototype

  7. Which is a good guideline for creating function names?

  8. A.
    Use all lowercase letters to identify the functions as C++ functions
    B.
    Use long names to reduce the likelihood of creating a duplicate function name
    C.
    Use abbreviations as much as possible to save both keystrokes and memory
    D.
    Avoid the use of digits because they are easily confused with letters

  9. Reserving memory during program execution is known as reserving it

  10. A.
    dynamically
    B.
    statically
    C.
    functionally
    D.
    powerfully

  11. "Rohan Motors" is a _____

  12. A.
    character literal constant
    B.
    numeric literal constant
    C.
    string literal constant
    D.
    variable

  13. A programming structure that contains data and a pointer to the next object is a

  14. A.
    template
    B.
    class
    C.
    pointer class
    D.
    linked list

  15. A variable declared in a function is called a(n) _____ variable

  16. A.
    area
    B.
    global
    C.
    local
    D.
    reference
    E.
    value

  17. When you write to a file rather than the screen, you use the C++ class _____

  18. A.
    iostream
    B.
    filed
    C.
    fstream
    D.
    diskclass

  19. Which of the following numerical value(s) is(are) invalid constant(s)?

  20. A.
    0.7
    B.
    9.3el2
    C.
    27,512
    D.
    12345678
    E.
    None of the above