Question: Question 57 Selection structures incorporate ___________ into a program. Question options: sequence repetition None of these. decisions arithmetic Question 58 The relational operator for equality
| Question 57 |
Selection structures incorporate ___________ into a program.
Question options:
|
| sequence | ||
|
| repetition | ||
|
| None of these. | ||
|
| decisions | ||
|
| arithmetic | ||
| Question 58 |
| ||
The relational operator for equality is __________.
Question options:
|
| =! | ||
|
| = | ||
|
| =? | ||
|
| None of these. | ||
|
| =// | ||
| Question 59 |
| ||
Logical expressions evaluate to ______________.
Question options:
|
| None of these. | ||
|
| 1 or 2 | ||
|
| 0 or 1 | ||
|
| T or F | ||
|
| t or f | ||
| Question 60 |
| ||
In C++ the value of a logical expression can be stored in variables of type ______________.
Question options:
|
| bool only. | ||
|
| int only. | ||
|
| int or bool. | ||
|
| double or bool. | ||
|
| None of these. | ||
| Question 61 | |||
In C++ the logical operators are ________________
Question options:
|
| and, or, not | ||
|
| if, and, else | ||
|
| if, else, and, or, not. | ||
|
| if, else. | ||
| Question 63 |
| ||
In a C++ program two-way selection takes the form_________________________.
Question options:
|
| if (expression) statement1 else (expression) statement2; | ||
|
| if expression statement1 else statement2; | ||
|
| if (statement1) else (statement2); | ||
|
| if (expression) statement1 else statement2; | ||
|
| if statement1 else statement 2; | ||
| Question 65 |
| ||
A sequence of statements enclosed between curley braces, { }, is called __________________.
Question options:
|
| depleted statement. | ||
|
| remanded statement | ||
|
| None of these. | ||
|
| an appended statement | ||
|
| an extended statement | ||
| Question 67 |
| ||
The execution of a break statement inside a switch statement causes _______________.
Question options:
|
| None of these. | ||
|
| a pause in the program. | ||
|
| an immediate repeat of the switch statement. | ||
|
| a non-fatal error in the program. | ||
|
| a fatal error that terminates the program. | ||
| Question 68 |
| ||
If certain conditions are not met in a C++ program the ___________ function can be used to terminate the program.
Question options:
|
| assemble | ||
|
| assert | ||
|
| assent | ||
|
| None of these. | ||
|
| advert | ||
| Question 70 |
| ||
Using the precedence rules in an expression, relational and logical operators are evaluated _____________.
Question options:
|
| in any sequence. |
|
| in alphabetical order. |
|
| None of these. |
|
| from right to left. |
|
| from left to right. |
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
