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

CSE :: Object Oriented Programming Using C++

  1. Files whose names end in .h are called _____ files

  2. A.
    handy
    B.
    header
    C.
    helper
    D.
    helping

  3. When accessing a structure member, the identifier to the left of the dot operator is the name of

  4. A.
    a structure member
    B.
    a structure tag
    C.
    a structure variable
    D.
    the keyword struct

  5. Assume that a program contains a programmer-defined void function. When C++ encounters the function's closing brace (}), C++ returns to the statement _____

  6. A.
    immediately above the statement that called the function
    B.
    that called the function
    C.
    immediately below the statement that called the function

  7. Inheritance occurs when a class adopts all the traits of _________

  8. A.
    an object
    B.
    a parent class
    C.
    a variable
    D.
    a function

  9. Template classes that have already been written to perform common class tasks are called _____

  10. A.
    container classes
    B.
    receptacle classes
    C.
    repository classes
    D.
    alembic classes

  11. A _____ is a single item of information about a person, place, or thing

  12. A.
    data file
    B.
    field
    C.
    program file
    D.
    record

  13. Which (if any) of the following is NOT a programmer-defined type

  14. A.
    an array
    B.
    a structure
    C.
    a class
    D.
    All of the above are programmer-defined types

  15. Assume a program contains a void function named displayName, which requires no formal parameters. Which of the following is a correct function prototype for this function?

  16. A.
    displayName;
    B.
    displayName(void);
    C.
    void displayName;
    D.
    void displayName();
    E.
    void displayName(none);

  17. A file pointer always contains the address of the file

  18. A.
    True
    B.
    False

  19. You declare a function with a function _____, which is typically entered at the beginning of the program, below the #include directives

  20. A.
    call
    B.
    prototype declaration
    C.
    definition
    D.
    pointer