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

CSE :: Object Oriented Programming Using C++

  1. Which of the following operators is the equality operator?

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

    View Answer

    Workspace

    Discuss Discuss in Forum


  3. In C++, you use _____ to perform standard input and output operations

  4. A.
    characters
    B.
    sequences
    C.
    streams
    D.
    tests

    View Answer

    Workspace

    Discuss Discuss in Forum


  5. Values that are used to end loops are referred to as _____ values

  6. A.
    end
    B.
    finish
    C.
    sentinel
    D.
    stop

    View Answer

    Workspace

    Discuss Discuss in Forum


  7. Which of the following flowchart symbols represents the if selection structure?

  8. A.
    diamond
    B.
    hexagon
    C.
    oval
    D.
    parallelogram
    E.
    rectangle

    View Answer

    Workspace

    Discuss Discuss in Forum


  9. Two or more arrays whose elements are related by their position (subscript) in the arrays are called _____ arrays

  10. A.
    horizontal
    B.
    paired
    C.
    parallel
    D.
    related
    E.
    vertical

    View Answer

    Workspace

    Discuss Discuss in Forum


  11. Assume that a program creates and initializes a Short Integer variable named age and a pointer named agePtr, to which it assigns the address of the age variable. Which of the following statements will assign the number 21 to the age variable?

  12. A.
    age = 21;
    B.
    *age = 21;
    C.
    agePtr = 21;
    D.
    *agePtr = 21;
    E.
    both (a) and (d)

    View Answer

    Workspace

    Discuss Discuss in Forum


  13. The statement fwrite ( (char*)&objl, sizeof(objl) );

  14. A.
    writes the member functions of objl to fl
    B.
    writes the data in objl to fl
    C.
    writes the member functions and me data of obj 1 to fl
    D.
    writes the address of objl to fl

    View Answer

    Workspace

    Discuss Discuss in Forum


  15. The body of a C++ function is surrounded by _____

  16. A.
    parentheses
    B.
    angle brackets
    C.
    curly brackets
    D.
    square brackets

    View Answer

    Workspace

    Discuss Discuss in Forum


  17. Which of the following type casts will convert an Integer variable named amount to a Double type?

  18. A.
    (double) amount
    B.
    (int to double) amount
    C.
    int to double(amount)
    D.
    int (amount) to double

    View Answer

    Workspace

    Discuss Discuss in Forum


  19. The loosest type of coupling is

  20. A.
    data coupling
    B.
    control coupling
    C.
    external coupling
    D.
    pathological coupling

    View Answer

    Workspace

    Discuss Discuss in Forum