The _____ statement is used to create a decision structure which allows a program to have more than one path of execution Show
The if statement causes one or more statements to execute only when a boolean expression is ______ determines whether a specific relationship exists between two values. Example: greater than > All relational operators are ______ True or False? True or False? Do you put a semicolon after the if (expression) portion of an if statement? If you prematurely terminate an if statement with a semicolon the compiler will not display an error message, but will assume you are placing a _______ there. Null statement (empty statement that does nothing) Enclosing a group of statements inside braces creates a _____ of statements A ______ is a boolean variable that signals when some condition exists in the program When the flag variable is set to false it indicates the condition _______ When the flag variable is set to true it means the condition ______ ________ is an international encoding system that is extensive enough to represent all characters of all the world's alphabets True or False? The ________ statement will execute one group of statements if its boolean expression is true, or another group id its boolean expression is false. To test more than one condition use _______ statements The ______ statement tests a series of condtitions connect two or more relational expressions into one or reverse the logic of an expression AND. Both expressions must be true for the overall expression to be true OR. One or both expressions must be true for the overall expression to be true NOT. Reverses the truth of a boolean expression The && operator performs ______ evaluation Short circuit. If the expression on the left side is false, the expression on the right side will not be checked. The || operator performs ________ evaluation. Short circuit. If the expression on the left side is true, the expression on the right side will not be checked. Order of precedence for logical operators The ____ statement lets the value of a variable or expression determine where the program will branch to. The switch statement is a _______ structure. Multiple Alternative Decision Structure True or False? Without ___ statements the program would execute all of the lines from the matching case statement to the end of the block focusNode Didn't know it? Knew it? Embed Code - If you would like this activity on your web page, copy the script below and paste it into
your web page. Introduction to Programming Chapter 04 - Terms
What operators determine whether a specific relationship exists between two values?Relational operators are important for making decisions. They allow us compare numeric and char (chars are treated like numbers in C++) values to determine if one is greater than, less than, equal to, or not equal to another. Relational operators are binary meaning they require two operands.
Which operator is used to determine the relationship between two or more operands?In computer science, a relational operator is a programming language construct or operator that tests or defines some kind of relation between two entities. These include numerical equality (e.g., 5 = 5) and inequalities (e.g., 4 ≥ 3).
What type of operator can be used to determine whether?Introduction to Programming 04. What type of operators are the following ==?Relational Operators
== (Equal to)– This operator is used to check if both operands are equal.
|