Test 2 COSC 1436 (100% Verified)
the conditional operator consists of _________ correct answers ?: __________ allow you to compare numeric or char values and determine whether one is greater than, less than, or equal to the other. correct answers relational operators the conditional operator is a short hand way to express a __________ correct answers if/else statement alphabetic characters are stored in memory as _____ correct answers numbers given a program with two variables having the same name but being located in nested blocks as long as the variable in the inner block is visible the _________ correct answers variable in the outer block is hidden the operator that connects two expressions into one while requiring both expressions to be true in order for the overall expression to be true is ____ correct answers && the _______ of a variable is limited to the block in which it is defined correct answers block integer variables may also be used as flags because in C++ any non-zero value is ________ correct answers considered to be true the ________ statement lets the value of a variable or expression determine where the program will branch correct answers switch what expression asks "is x equal to y"? correct answers x==y; the ________ operator may cause short circuit evaluation if the expression is found to be true on its left side correct answers || if it takes three operands the conditional operators is sometimes called a ________ operator correct answers ternary the logical operators in correct order of precedence are: correct answers ! && || C++ usually represents true states with ______ correct answers the number 1 the difference between switch and case versus if/else if/else is that switch and case ___________ . correct answers tests the value of an integer expression and then uses that value to determine which set of statements to branch to a _______ is a Boolean or integer variable that signals when a condition exists correct answers flag
Written for
- Institution
- COSC 1436
- Module
- COSC 1436
Document information
- Uploaded on
- September 6, 2023
- Number of pages
- 8
- Written in
- 2023/2024
- Type
- Exam (elaborations)
- Contains
- Questions & answers
Subjects
-
the conditional operator consists of
Also available in package deal