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

CSE :: Object Oriented Programming Using C++

  1. A member function uses the correct object when you call it because

  2. A.
    a copy of the object is passed to the function
    B.
    the address of the object is passed to the function
    C.
    the address of the function is passed to another function
    D.
    the address of the object is returned from the function

  3. Two access specifiers in C++ are

  4. A.
    public and private
    B.
    int and double
    C.
    formal and informal
    D.
    void and free

  5. Which of the following is the fourth problem-solving step?

  6. A.
    analyze the problem
    B.
    evaluate and modify (if necessary) the program
    C.
    code the algorithm
    D.
    plan the algorithm
    E.
    desk-check the program

  7. Within parentheses, catch blocks can have _____

  8. A.
    no arguments
    B.
    one argument
    C.
    two arguments
    D.
    as many arguments as necessary

  9. The while loop is referred to as a(n) _____ loop because the loop condition is tested at the beginning of the loop

  10. A.
    beginning
    B.
    initial
    C.
    pretest
    D.
    priming

  11. The word case used in the switch statement represents a

  12. A.
    function in the C++ language
    B.
    data type in the C++ language
    C.
    keyword in the C++ language
    D.
    global variable in the C++ language
    E.
    None of the above

  13. Function templates _____________

  14. A.
    must have exactly one parameter
    B.
    may have more than one parameter as long as they are of the same type
    C.
    may have more than one parameter of any type
    D.
    may not have parameters

  15. The statement int num[2][3]={ {3,8,6}, {9,4,7}};

  16. A.
    assigns a value 4 to num[1][2]
    B.
    assigns a value 7 to num[1][2]
    C.
    assigns a value 8 to num[1][2]
    D.
    assigns a value 9 to num[1][2]

  17. Private data can be accessed by

  18. A.
    class member functions
    B.
    functions in derived classes
    C.
    both (a) and (b)
    D.
    neither (a) nor (b)

  19. The store of memory available to programs is the _____

  20. A.
    store
    B.
    stack
    C.
    pile
    D.
    heap