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

CSE :: Object Oriented Programming Using C++

  1. Errors in a program are called

  2. A.
    accidents
    B.
    annoyances
    C.
    bugs
    D.
    mistakes
    E.
    typing errors

  3. If you declare two objects as Customer firstCust, secondCust; which of the following must be true?

  4. A.
    Each object's nonstatic data members will be stored in the same memory location
    B.
    Each object will be stored in the same memory location
    C.
    Each object will have a unique memory address
    D.
    You cannot declare two objects of the same class

  5. Which of the following is the inequality operator?

  6. A.
    !=
    B.
    =
    C.
    ==
    D.
    -->
    E.
    <>

  7. If a derived class uses the public access specifier, then _____

  8. A.
    public base class members remain public in the derived class
    B.
    protected base class members become public in the derived class
    C.
    both (a) and (b)
    D.
    neither (a) nor (b)

  9. The operator that releases previously allocated memory is _____

  10. A.
    release
    B.
    return
    C.
    delete
    D.
    destroy

  11. When a language has the capability to produce new data types, it is said to be

  12. A.
    reprehensible
    B.
    encapsulated
    C.
    overloaded
    D.
    extensible

  13. A compound statement does not consist of

  14. A.
    a single statement
    B.
    other compound statements
    C.
    expression statements
    D.
    control statements
    E.
    None of the above

  15. Which of the following statements will display the word "Hello" on the computer screen?

  16. A.
    cin << "Hello";
    B.
    cin >> "Hello";
    C.
    cout << "Hello";
    D.
    cout >> "Hello";
    E.
    None of the above

  17. The preprocessor directive always starts with the symbol

  18. A.
    %
    B.
    &
    C.
    #
    D.
    ""
    E.
    None of the above

  19. Which of the following statements is true?

  20. A.
    Data coupling is tighter than pathological coupling
    B.
    Common coupling is looser than data coupling
    C.
    Data-structured coupling is looser than control coupling
    D.
    Control coupling is looser than data coupling