Karteikarten
Chapter 4 (Decision Structures and Boolean Logic)
Karten in diesem Stapel (25)
- 1A _____ structure can execute a set of statements only under certain circumstances.Decision (Selection)
- 2A _____ structure provides one alternative path of execution. If the condition that is being tested is true, the program takes the alternative path.Single Alternative Decision
- 3In pseudocode, the "If-Then" statement is an example of a _____.Decision Structure (Selection Structure)
- 4A _____ expression has a value of either true or false.Boolean
- 5The symbols >, <, and == are all _____ operators.Relational
- 6A _____ structure tests a condition and then takes one path if the condition is true, or another path if the condition is false.Dual Alternative Decision
- 7You use an _____ statement in pseudocode to write a single alternative decision structure.If-Then
- 8You use an _____ statement in pseudocode to write a dual alternative decision structure.If-Then-Else
- 9A _____ structure allows you to test the value of a variable or an expression and then use that value to determine which statement or set of statements to execute.Multiple Alternative Decision
- 10A _____ section of a "Select Case" statement is branched to if none of the case values match the expression listed after the "Select" statement.Default
- 11AND, OR, and NOT are _____ operators. They are used to create complex Boolean expressions.Logical
- 12A compound Boolean expression created with the _____ operator is true only if both of its subexpressions are true.AND
- 13A compound Boolean expression created with the _____ operator is true if either of its subexpressions is true.OR
- 14The _____ operator takes a Boolean expression as its operand and reverses its logical value.NOT
- 15A _____ is a Boolean variable that signals when some condition exists in the program.Flag
- 16When the "If-Then" statement executes, the _____ is tested. If it is true, the statements that appear between the "If" clause and the "End If" clause are executed.Condition
- 17A logical design that controls the order in which a set of statements executes is a _____.Control Structure
- 18To test more than one condition, a decision structure can be _____ inside another decision structure.Nested
- 19The _____ lets the value of a variable or an expression determine which path of execution the program will take.Case Structure
- 20The case structure is a _____.Multiple Alternative Decision Structure
- 21What does the case structure test, in order to determine which set of statements to execute?A variable or an expression.
- 22You need to write a multiple alternative decision structure, but the language you are using will not allow you to perform the test you need in a "Select Case" statement. What can you do to achieve the same results?You can use the "If-Then-Else If" statement, or a nested decision structure.
- 23If an expression on the left side of an AND operator is false, the expression on the right side will not be checked. This is an example of _____.Short-Circuit Evaluation
- 24What is a compound Boolean expression?It is an expression that is created by using a logical operator to combine two Boolean subexpressions.
- 25If an expression on the left side of an OR operator is true, the expression on the right side will not be checked. This is an example of _____.Short-Circuit Evaluation
Informationen
- Beschreibung
- Der Nutzer hat seine Fachbereichs-Information gelöscht. Karteikarten am Chapter 4 (Decision Structures and Boolean Logic), erstellt von Gelöschter Nutzer am 12/01/2021.
- Erstellt von
- Gelöschter Nutzer · Jan 2021
- Aktualisiert
- 12 Jan 2021
- Aufrufe
- 18
- Tags
- Verlauf
-
- Erstellt von Andrew Lewis · 13 Dez 2020
- Kopiert von Andrew Lewis · 12 Jan 2021
- Bewertung