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

CSE :: Object Oriented Programming Using C++

  1. You may override the class access specifier for_____

  2. A.
    public members
    B.
    public and protected members
    C.
    any specific class members you choose
    D.
    no clas smembers

  3. The null character needs a space of

  4. A.
    zero bytes
    B.
    one byte
    C.
    three bytes
    D.
    four bytes
    E.
    None of the above

  5. The number of structures than can be declared in a single statement is

  6. A.
    one
    B.
    two
    C.
    three
    D.
    unlimited

  7. The cout << sales[0] + sales[1]; statement will______

  8. A.
    display 22000
    B.
    display 10000 + 12000
    C.
    display sales[0] + sales[l]
    D.
    result in an error

  9. The most efficient data type for a variable that stores the letter C is the _____ data type

  10. A.
    Character
    B.
    Double
    C.
    Float
    D.
    Long Integer
    E.
    Short Integer

  11. The C++ operator used to allocate memory is _________

  12. A.
    mem
    B.
    allocate
    C.
    new
    D.
    create

  13. Assume that your version of C++ can recognize only the first 8 characters of an identifier name, through identifier names may be arbitrarily long. Which of the following identifier names is not distinct:

  14. A.
    list, list2
    B.
    address, Address
    C.
    identifier_l, identifier_2
    D.
    answer, ANSWER
    E.
    None of the above

  15. Object is to class as _____

  16. A.
    library is to book
    B.
    mother is to daughter
    C.
    Plato is to philosopher
    D.
    president is to Lincoln

  17. A derived class may also be called a

  18. A.
    subclass
    B.
    super class
    C.
    parent class
    D.
    base class

  19. The C++ keyword for declaring a variable that contains a decimal point is _____

  20. A.
    dec
    B.
    decimal
    C.
    float
    D.
    floater
    E.
    None of the above