logo

CuriousTab

CuriousTab

Discussion


Home Computer Science Object Oriented Programming Using C++ Comments

  • Question
  • Which of the following are valid characters for a numeric literal constant?


  • Options
  • A. a comma
  • B. a dollar sign ($)
  • C. a percent sign (%)
  • D. a space
  • E. None of the above

  • Correct Answer
  • None of the above 


  • Object Oriented Programming Using C++ problems


    Search Results


    • 1. Sending a copy of data to a program module is called _______

    • Options
    • A. passing a value
    • B. making a reference
    • C. recursion
    • D. setting a condition
    • Discuss
    • 2. The best form of coupling is _____

    • Options
    • A. complete
    • B. tight
    • C. loose
    • D. free
    • Discuss
    • 3. If you create an instantiation of a class template with an int, and then create a second instantiation with a double, then

    • Options
    • A. you must precede each function call with the word int or double
    • B. once a function is used as one type, it becomes unavailable for use with the other type
    • C. there is no difference in the procedure to call a member function
    • D. you cannot perform this operation in C++
    • Discuss
    • 4. When the compiler cannot differentiate between two overloaded constructors, they are called

    • Options
    • A. overloaded
    • B. destructed
    • C. ambiguous
    • D. dubious
    • Discuss
    • 5. When you pass a variable _____, C++ passes only the contents of the variable to the receiving function

    • Options
    • A. by reference
    • B. by value
    • C. globally
    • D. locally
    • Discuss
    • 6. 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
    • 7. 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
    • 8. 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
    • 9. 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
    • 10. To enter a comment in a C++ program, you begin the comment with _____

    • Options
    • A. **
    • B. &&
    • C. \\
    • D. @
    • E. //
    • Discuss


    Comments

    There are no comments.

Enter a new Comment