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

CSE :: Object Oriented Programming Using C++

  1. In the C language, a string is assigned to the

  2. A.
    char type of variable
    B.
    string type of variable
    C.
    conversion specification %s
    D.
    All of the above

    View Answer

    Workspace

    Discuss Discuss in Forum


  3. Which of the following statements declares a one-dimensional Character array named item that consists of five elements?

  4. A.
    char item[0 to 4] = "";
    B.
    char item[0 to 5] = "";
    C.
    char item[4] = "";
    D.
    char item[5] = "";
    E.
    string item[5] = ' ';

    View Answer

    Workspace

    Discuss Discuss in Forum


  5. A derived class may also be called a

  6. A.
    subclass
    B.
    super class
    C.
    parent class
    D.
    derived class

    View Answer

    Workspace

    Discuss Discuss in Forum


  7. The main() function is always

  8. A.
    a called function
    B.
    a calling function
    C.
    recursive function
    D.
    used at the end of the program
    E.
    None of the above

    View Answer

    Workspace

    Discuss Discuss in Forum


  9. Variables that are known only to the function in which they are declared are called _____ variables

  10. A.
    global
    B.
    local
    C.
    main
    D.
    separate
    E.
    void

    View Answer

    Workspace

    Discuss Discuss in Forum


  11. In the expression p --> val,p is a(n)

  12. A.
    address
    B.
    pointer
    C.
    structure
    D.
    header

    View Answer

    Workspace

    Discuss Discuss in Forum


  13. In a template function, _____ argument is generic, or parameterized

  14. A.
    no
    B.
    exactly one
    C.
    at least one
    D.
    more than one

    View Answer

    Workspace

    Discuss Discuss in Forum


  15. Object-oriented programmers primarily focus on _________

  16. A.
    procedures to be performed
    B.
    the step-by-step statements needed to solve a problem
    C.
    objects and the tasks that must be performed with those objects
    D.
    the physical orientation of objects within a program

    View Answer

    Workspace

    Discuss Discuss in Forum


  17. You define a structure type globally because

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

    View Answer

    Workspace

    Discuss Discuss in Forum


  19. The standard output stream, which refers to the computer screen, is called

  20. A.
    cin
    B.
    cout
    C.
    stin
    D.
    stout
    E.
    None of the above

    View Answer

    Workspace

    Discuss Discuss in Forum