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.
    <>

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

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

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

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

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

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

  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

  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)

  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

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

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

  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

  19. The loosest type of coupling is

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