logo

CuriousTab

CuriousTab

Discussion


Home Computer Science Object Oriented Programming Using C++ Comments

  • Question
  • A C++ program contains a function with the header int function(double d, char c). Which of the following function headers could be used within the same program?


  • Options
  • A. char function(double d, char c)
  • B. int function(int d, char c)
  • C. both (a) and (b)
  • D. neither (a) nor (b)

  • Correct Answer
  • int function(int d, char c) 


  • Object Oriented Programming Using C++ problems


    Search Results


    • 1. The keyword used to define a structure is _____

    • Options
    • A. stru
    • B. stt
    • C. struct
    • D. structure
    • Discuss
    • 2. 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
    • 3. 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
    • 4. Header files often have the file extension _____

    • Options
    • A. .H
    • B. .HE
    • C. .HEA
    • D. .HEAD
    • Discuss
    • 5. Evaluate the following expression: 3 >6&&7>4

    • Options
    • A. True
    • B. False
    • Discuss
    • 6. Why does a successfully mapped network drive disappear every time you boot the computer?

    • Options
    • A. The computer you are connected to has moved
    • B. You didn't click reconnect on log on
    • C. The map statement is not in the autoexec.bat file
    • D. The last drive was not set correctly
    • E. None of the above
    • Discuss
    • 7. Which device is on IRQ 6?

    • Options
    • A. Keyboard
    • B. IDE
    • C. Floppy drive
    • D. Video card
    • E. None of the above
    • Discuss
    • 8. If the memory slots have 30 pins then the chip is a?

    • Options
    • A. DIMM
    • B. SIMM
    • C. SDRAM
    • D. All of the above
    • E. None of the above
    • Discuss
    • 9. When measuring AC (Alternating Current) with a multimeter, it is important to maintain the proper polarity.

    • Options
    • A. True
    • B. False
    • Discuss
    • 10. IRQ6 is typically reserved for:

    • Options
    • A. The floppy
    • B. The keyboard controller
    • C. LPT2
    • D. The modem
    • E. None of the above
    • Discuss


    Comments

    There are no comments.

Enter a new Comment