if ( y== 0)
x = 100;
if (amount1 > 10)
if (amount2 < 100)
cout «_space;(amount1 > amount2 ? amount1 : amount2);
if (temperature >=-50 && temperature «_space;“The number is valid”;
if (str1 > str2)
cout
false
true
true
true
true
false
Assume the variables x = 5, y = 6, and z = 8. Indicate by circling the T or F whether each of
the following conditions is true or false:
54. T F x == 5 || y > 3
55. T F 7 4
56. T F 2 != y && z != 4
57. T F x >= 0 || x
63. It should use && instead of || .
65. The \: and ? are transposed. The statement should read: z = (a < 10) ? 0 : 7;
1. In an if/else if statement, the conditions are tested until one is found to be true. The conditionally executed statement(s) are executed and the program exits the if/else if statement. In a series of if statements, all of the if statements execute and test their conditions because they are not connected.
executed when all the preceding conditional expressions are false
Yes.
because they need to execute based on the condition evaluation either executes true or false block.
relational
true or false
false true