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

CSE :: Object Oriented Programming Using C++

  1. The best form of coupling is _____

  2. A.
    complete
    B.
    tight
    C.
    loose
    D.
    free

  3. Paying attention to the important properties while ignoring inessential details is known as________

  4. A.
    selectiveness
    B.
    polymorphism
    C.
    abstraction
    D.
    summarizing

  5. What does C++ append to the end of a string literal constant?

  6. A.
    a space
    B.
    a number sign (#)
    C.
    an asterisk (*)
    D.
    a null character

  7. An array name is a _____

  8. A.
    subscript
    B.
    formal parameter
    C.
    memory address
    D.
    prototype

  9. To enter a comment in a C++ program, you begin the comment with _____

  10. A.
    **
    B.
    &&
    C.
    \\
    D.
    @
    E.
    //

  11. Which of the following is(are) invalid string constant(s)?

  12. A.
    '7.15 pm'
    B.
    "i like e"
    C.
    "7.3el2"
    D.
    "1234el2"
    E.
    None of the above

  13. You define a structure type globally because _____

  14. A.
    you save many lines of code by not rewriting an identical structure definition in each function that uses it
    B.
    you will never change its definition
    C.
    it is required in C++
    D.
    All of the above

  15. Overloaded functions are required to

  16. A.
    have the same return type
    B.
    have the same number of parameters
    C.
    perform the same basic functions
    D.
    None of the above

  17. Redirection redirects

  18. A.
    a stream from a file to the screen
    B.
    a file from a device to a stream
    C.
    a device from the screen to a file
    D.
    the screen from a device to a stream

  19. You mark the beginning of a function's block of code with the _____

  20. A.
    /
    B.
    *
    C.
    {
    D.
    }
    E.
    either (c) or (d) can be used