Exercise: Object Oriented Programming Using Cpp

Questions for: Object Oriented Programming Using Cpp

The standard input stream, which refers to the keyboard, is called
A:
cin
B:
cout
C:
stin
D:
stout
Answer: A
No answer description is available. Let's discuss.
A program will have one function prototype for each function defined in the programmer-defined section of the program. (Assume that the programmer-defined section is located below the main function.)
A:
true
B:
false
C:
D:
Answer: A
No answer description is available. Let's discuss.
The statement int num[2][3]={ {1,2}, {3,4}, {5, 6} };
A:
assigns a value 2 to num[1][2]
B:
assigns a value 4 to num[1][2]
C:
gives an error message
D:
assigns a value 3 to num[1][2]
Answer: C
No answer description is available. Let's discuss.
Which of the following statements declares a variable that can contain a decimal number?
A:
dec payRate;
B:
dec hourlyPay
C:
float payRate
D:
float hourlyPay;
Answer: D
No answer description is available. Let's discuss.
The following statement where T is true and F is false T&&T||F&&T
A:
is true
B:
is false
C:
is wrong
D:
not applicable in C language
Answer: A
No answer description is available. Let's discuss.
Ad Slot (Above Pagination)
Quiz