Question
A loop that evaluates its condition before each repetition of the loop body is a _____ loop. a. bottom-driven b. top-driven What will the following
A loop that evaluates its condition before each repetition of the loop body is a _____ loop.
a. | bottom-driven | |
b. | top-driven
|
What will the following for loop display?
int k; for( k = 2; k < 4; k++ ) cout << k;
a. | 23 | |
b. | 32 | |
c. | 234 | |
d. | nothing this is a compile error because there is no semi-colon(;) after the for | |
e. | 4 |
Which of the following is not a standard C++ data type?
a. | double | |
b. | string | |
c. | int | |
d. | float |
What will be displayed by the following decision statement?
int num = 7; if( num <= 10 ) { cout << "Less than or equal to 10"; } else { cout << "Greater than 10"; }
a. | Greater than 10 | |
b. | Less than or equal to 10 | |
c. | Nothing because there is a compiler error - the if/else statements are missing semicolons |
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started