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

CSE :: Object Oriented Programming Using C++

  1. You typically initialize a String variable to _____

  2. A.
    an asterisk
    B.
    a space enclosed in single quotes
    C.
    the number 0
    D.
    a zero-length string

  3. The set of instructions for how to tie a bow is an example of the _____ structure

  4. A.
    control
    B.
    repetition
    C.
    selection
    D.
    sequence
    E.
    switching

  5. If no exception is thrown ________

  6. A.
    a catch block will cause an error
    B.
    the first catch block coded will execute
    C.
    the last catch block coded with execute
    D.
    any catch blocks coded with be bypassed

  7. A program that predicts the exact sequence in which events will take place is said to be ________

  8. A.
    compiled
    B.
    interpreted
    C.
    procedural
    D.
    object-oriented

  9. A blueprint for creating an object in C++ is called _____

  10. A.
    a class
    B.
    an instance
    C.
    a map
    D.
    a pattern
    E.
    a sketch

  11. The prototype for a derived class constructor may include arguments for

  12. A.
    data members of the derived class
    B.
    data members of the base class
    C.
    both (a) and (b)
    D.
    neither (a) nor (b)

  13. Overloading involves writing two or more functions with ________

  14. A.
    different names and different argument lists
    B.
    different names and the same argument list
    C.
    the same name and different argument lists
    D.
    the same name and the same argument list

  15. You___________overload function templates

  16. A.
    may, as long as each version has the same arguments
    B.
    may, as long as each version has different arguments
    C.
    must
    D.
    must not

  17. You typically initialize Character variables to _____

  18. A.
    a space enclosed in double quotes
    B.
    a space enclosed in single quotes
    C.
    the letter O
    D.
    the number 0
    E.
    the value false

  19. One way pointers are useful is to refer to a memory address that has no _____

  20. A.
    name
    B.
    constant
    C.
    location
    D.
    field