The statement
pass = (score >= 7) ?
True : false;
does exactly the same thing as the if/else statement below:
if (score >= 7)
pass = True;
else
pass = false;
Correct Answer:
Verified
Q11: The _ operator takes an operand and
Q12: If the sub-expression on the left side
Q13: A(n) _ is a variable, usually a
Q14: If a switch statement has no _
Q15: A trailing else placed at the end
Q17: The rule for matching an else with
Q18: When an if statement is placed within
Q19: The _ statement causes other program statements
Q20: The following C++ test checks if the
Q21: The _ operator is used in C++
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents