Question: 5. The value 132.54 can be represented using which data type? a. double b. void c. int d. bool 6. The keyword used inside a
5. The value 132.54 can be represented using which data type?
a. double
b. void
c. int
d. bool
6. The keyword used inside a loop to return to the beginning of the loop is
a. exit
b. goto
c. continue
d. return
7. Which of the following comment syntax is correct to create a single-line comment in the C++ program?
a. //Comment
b. /Comment/
c. Comment//
d. None of the above
8. Which if statement below is similar to the following C++ code?
switch (ch) {
case 'a':
case 'A':
cout<<"true"<< endl;
}
a. if (ch == a && ch == A) cout<< true;
b. if (a) cout<< true;
c. if (ch == a || ch == A) cout<< true;
d. Both a and b
9. Which one is true about machine languages?
a. Defined by hardware design
b. Clear to humans
c. Single statements accomplish substantial task
d. None of the above
10. If x initially contains the value 3, which of the following sets x to 7?
a. x ++ 4;
b. x += 4;
c. x =+ 4;
d. x + 4 = x;
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
