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

CSE :: Object Oriented Programming Using C++

  1. When you omit parameters from a function call, values can be provided by

  2. A.
    formal parameters
    B.
    reference parameters
    C.
    overloaded parameters
    D.
    default parameters

  3. The first element in a string is

  4. A.
    the name of the string
    B.
    the first character in the string
    C.
    the length of the string
    D.
    the name of the array holding the string

  5. Variables declared outside a block are called _____

  6. A.
    global
    B.
    universal
    C.
    stellar
    D.
    external

  7. The compiler converts your C++ instructions into _____

  8. A.
    edited code
    B.
    object code
    C.
    source code
    D.
    translated code

  9. A fundamental type such as int or double is a _____

  10. A.
    programmer-defined type
    B.
    complex type
    C.
    nonscalar type
    D.
    scalar type

  11. The return type you code for all constructors is _____

  12. A.
    void
    B.
    the class type
    C.
    the same type as the first data member defined in the class
    D.
    no type

  13. When an object-oriented program detects an error within a function, the function _________

  14. A.
    throws an exception
    B.
    throws a fit
    C.
    catches a message
    D.
    catches an exception

  15. Using a statement at the wrong time or with an inappropriate object creates a

  16. A.
    logical error
    B.
    syntax error
    C.
    compiler error
    D.
    language error

  17. When you create a derived class and instantiate an object _____

  18. A.
    the parent class object must be constructed first
    B.
    the child class object must be constructed first
    C.
    the parent class object must not be constructed
    D.
    the child class object must not be constructed

  19. Evaluate the following expression: 4 >6 || 10 < 2 * 6

  20. A.
    True
    B.
    False