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

CSE :: Object Oriented Programming Using C++

  1. The function whose prototype is Item getData(void); returns _____

  2. A.
    the address of a structure
    B.
    a copy of a structure
    C.
    a pointer to a structure
    D.
    nothing

    View Answer

    Workspace

    Discuss Discuss in Forum


  3. Using new may result in less _____ memory than using an array

  4. A.
    wasted
    B.
    used
    C.
    RAM
    D.
    ROM

    View Answer

    Workspace

    Discuss Discuss in Forum


  5. The most common operation used in constructors is

  6. A.
    addition
    B.
    overloading
    C.
    assignment
    D.
    polymorphism

    View Answer

    Workspace

    Discuss Discuss in Forum


  7. In a simple 'if' statement with no 'else'. What happens if the condition following the 'if is false?

  8. A.
    the program searches for the last else in the program
    B.
    nothing
    C.
    control 'falls through' to the statement following 'if
    D.
    the body of the statement is executed
    E.
    None of the above

    View Answer

    Workspace

    Discuss Discuss in Forum


  9. If two types of errors may be thrown, you should write _______

  10. A.
    no catch blocks
    B.
    one catch block with two arguments
    C.
    two catch block-one with an argument, and one without
    D.
    two catch blocks with one argument each

    View Answer

    Workspace

    Discuss Discuss in Forum


  11. The name of a function ends with

  12. A.
    double quotes
    B.
    single quotes
    C.
    parenthesis
    D.
    #
    E.
    None of the above

    View Answer

    Workspace

    Discuss Discuss in Forum


  13. Which of the following is not a programming control structure?

  14. A.
    repetition
    B.
    selection
    C.
    sequency
    D.
    sorting

    View Answer

    Workspace

    Discuss Discuss in Forum


  15. The bitwise OR operator is a

  16. A.
    unary operator
    B.
    binary operator
    C.
    ternary operator
    D.
    octal operator
    E.
    None of the above

    View Answer

    Workspace

    Discuss Discuss in Forum


  17. A class Stockltems has four data members and three function members. You define 50 objects as members of the class. Which is true?

  18. A.
    Only one copy of each of the tnree functions exists
    B.
    Only one copy of each of the four data members exists
    C.
    Both (a) and (b) are true
    D.
    Neither (a) nor (b) is true

    View Answer

    Workspace

    Discuss Discuss in Forum


  19. The continue statement should be written only

  20. A.
    in the body of a loop.
    B.
    in the nested loops
    C.
    outside the body of a loop
    D.
    any where
    E.
    None of the above

    View Answer

    Workspace

    Discuss Discuss in Forum