logo

CuriousTab

CuriousTab

Discussion


Home Computer Science Object Oriented Programming Using C++ Comments

  • Question
  • A function that returns no values to the program that calls it is _____


  • Options
  • A. not allowed in C++
  • B. type void
  • C. type empty
  • D. type barren

  • Correct Answer
  • type void 


  • Object Oriented Programming Using C++ problems


    Search Results


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

    • Options
    • A. **
    • B. &&
    • C. \\
    • D. @
    • E. //
    • Discuss
    • 2. Which of the following statements allows the user to enter data at the keyboard?

    • Options
    • A. cin << currentPay;
    • B. cin >> currentPay;
    • C. cout << currentPay;
    • D. cout >> currentPay;
    • E. None of the above
    • Discuss
    • 3. Overloaded functions are required to

    • Options
    • A. have the same return type
    • B. have the same number of parameters
    • C. perform the same basic functions
    • D. None of the above
    • Discuss
    • 4. C++ allows you to define the same functions more than once in the same program _____

    • Options
    • A. if the definitions are identical
    • B. if the definitions are included in two separate #include files
    • C. if the definitions are located in a single #include file that is included more than once
    • D. C++ does not allow you to define the same functions more than once in the same program
    • Discuss
    • 5. Which of the following is(are) invalid string constant(s)?

    • Options
    • A. '7.15 pm'
    • B. "i like e"
    • C. "7.3el2"
    • D. "1234el2"
    • E. None of the above
    • Discuss
    • 6. Evaluate the following expression: 3 >6&&7>4

    • Options
    • A. True
    • B. False
    • Discuss
    • 7. Header files often have the file extension _____

    • Options
    • A. .H
    • B. .HE
    • C. .HEA
    • D. .HEAD
    • Discuss
    • 8. If you design a class that needs special initialization tasks, you will want to design a(n) _____

    • Options
    • A. housekeeping routine
    • B. initializer
    • C. constructor
    • D. compiler
    • Discuss
    • 9. Which of the following assigns the number 5 to the area variable?

    • Options
    • A. area 1 = 5
    • B. area = 5
    • C. area == 5
    • D. area --> 5
    • E. area < > 5
    • Discuss
    • 10. The keyword used to define a structure is _____

    • Options
    • A. stru
    • B. stt
    • C. struct
    • D. structure
    • Discuss


    Comments

    There are no comments.

Enter a new Comment