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

CSE :: Object Oriented Programming Using C++

  1. A function whose purpose is to send messages to other functions is known as a _____

  2. A.
    dispatcher
    B.
    courier
    C.
    messenger
    D.
    sender

    View Answer

    Workspace

    Discuss Discuss in Forum


  3. With commercial classes, the function source code is usually________

  4. A.
    printed on high-quality paper
    B.
    poorly written
    C.
    provided on a disk
    D.
    provided in object form

    View Answer

    Workspace

    Discuss Discuss in Forum


  5. The type of value that a function sends back to the function that calls it is known as its _____

  6. A.
    type
    B.
    return value
    C.
    reference data
    D.
    sentinel

    View Answer

    Workspace

    Discuss Discuss in Forum


  7. Assume that a program includes the short *agePtr = NULL; statement. The name of the pointer is _____

  8. A.
    *agePtr
    B.
    agePtr

    View Answer

    Workspace

    Discuss Discuss in Forum


  9. Which of the following are never inherited?

  10. A.
    public data members
    B.
    constructor functions
    C.
    void functions
    D.
    overloaded + operators

    View Answer

    Workspace

    Discuss Discuss in Forum


  11. The expression c = i++ causes

  12. A.
    the value of i assigned to c and then i incremented by 1
    B.
    i to be incremented by 1 and then the value of i assigned to c
    C.
    value of i assigned to c
    D.
    i to be incremented by 1
    E.
    None of the above

    View Answer

    Workspace

    Discuss Discuss in Forum


  13. An identifier in C

  14. A.
    is a name of a thing such as variable and function
    B.
    is made up of letters, numerals, and the underscore
    C.
    can contain both uppercase and lowercase letters
    D.
    All of the above
    E.
    None of the above

    View Answer

    Workspace

    Discuss Discuss in Forum


  15. Which of the following creates a String named constant called partNo, whose value is AB45?

  16. A.
    const char[4] partNo = "AB45";
    B.
    const char[5] partNo = 'AB45';
    C.
    const char[5] partNo = "AB45";
    D.
    const char partNo[5] = "AB45";
    E.
    None of the above

    View Answer

    Workspace

    Discuss Discuss in Forum


  17. The bitwise AND operator is represented by the symbol

  18. A.
    ^
    B.
    &
    C.
    &&
    D.
    >>
    E.
    None of the above

    View Answer

    Workspace

    Discuss Discuss in Forum


  19. The exclusive OR operator gives the result 1 when

  20. A.
    both the bits are 0
    B.
    one bit is 0 and the other is 1
    C.
    both the bits are 1
    D.
    no hard and fast rule
    E.
    None of the above

    View Answer

    Workspace

    Discuss Discuss in Forum