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

CSE :: Object Oriented Programming Using C++

  1. If no constructors can specified for a derived class, objects of the derived class will use the constructors in the base class

  2. A.
    True
    B.
    False

  3. The get() function returns _____

  4. A.
    a character
    B.
    void
    C.
    a reference to the object that invoked it
    D.
    a copy of the object that invoked it

  5. The most efficient data type for a variable that the number 20000 is the _____ data type

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

  7. The number 5.5e3 is a _____ constant

  8. A.
    character literal
    B.
    named literal
    C.
    numeric literal
    D.
    string literal

  9. The compiler determines the type used in a template function via ___________

  10. A.
    the name of the function
    B.
    the first variable declared within the function
    C.
    the type of the argument passed to the function
    D.
    the type of the value returned from the function

  11. Simple routines that programmers use as place holders while a system is being tested are called _____

  12. A.
    stubs
    B.
    stumps
    C.
    holders
    D.
    templates

  13. You can place function templates

  14. A.
    at the end of main()
    B.
    at the start of a program above main()
    C.
    in two files-one for the definition and one for the function
    D.
    any of the above

  15. The two operators && an || are

  16. A.
    arithmetic operators
    B.
    equality operators
    C.
    logical operators
    D.
    relational operators
    E.
    None of the above

  17. The arguments that determine the state of the cout object are called _____

  18. A.
    classes
    B.
    manipulators
    C.
    format flags
    D.
    state controllers

  19. Static variables are sometimes called

  20. A.
    class variables
    B.
    functional variables
    C.
    dynamic variables
    D.
    auto variables