Save
Busy. Please wait.
Log in with Clever
or

show password
Forgot Password?

Don't have an account?  Sign up 
Sign up using Clever
or

Username is available taken
show password


Make sure to remember your password. If you forget it there is no way for StudyStack to send you a reset link. You would need to create a new account.
Your email address is only used to allow you to reset your password. See our Privacy Policy and Terms of Service.


Already a StudyStack user? Log In

Reset Password
Enter the associated with your account, and we'll email you a link to reset your password.
focusNode
Didn't know it?
click below
 
Knew it?
click below
Don't Know
Remaining cards (0)
Know
0:00
Embed Code - If you would like this activity on your web page, copy the script below and paste it into your web page.

  Normal Size     Small Size show me how

CIS116-Ch04

Introduction to Programming Chapter 04 - Terms

TermDefinition
Decision Structure (function) A decision structure (AKA selection structure) allows a program to perform actions only under certain conditions.
NOT operator Takes a Boolean expressions as its operand and reverses its logical value.
Short-Circuit Evaluation AND: If the expression to the left of the operand is false, right side is not checked. OR: If the expression to the left of the operand is true, right side is not checked.
OR operator Takes two Boolean expressions as operands and creates a compound Boolean expression that is true when either of the subexpressions is true.
&& AND operator
| | OR operator
!. NOT operator
AND operator Takes two Boolean expressions as its operand and creates a compound Boolean expression that is true only when both subexpressions are true.
Case Structure (AKA) Multiple Alternative Decision Structure
Case Structure (function) 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.
Decision Structure (AKA) Selection Structures
conditionally executed performed only when a certain condition is true.
Single Alternative Decision Structure Provides only one alternative path.
You can use Decision Statements alone to create a complete program? T/F False
If Clause The program line that begins with IF
condition Any expression that can be evaluated as either true or false. AKA Boolean Experssion
Boolean Expressions Expressions that can be evaluated as either true or false.
Relational Operator (function) Determines whether a specific relationship exists between two values.
Relational Operators (examples) > < >= <= == !=
Which relationship operators test for more than one relationship? <= >=
== a relational operator that determines whether the operand on its left is equal to the operand on its right.
Why are two == used? To differentiate between the relational operator and the assignment operator.
Control Structure A logical design that controls the order in which a set of statements executes.
Dual Alternative Decision Structures Two possible paths of execution. One path if TRUE, Another path if FALSE.
What statement do you use in pseudocode to express dual alternative decision structure. If - Else
String Comparisons are case sensitive in most programming languages. T/F True
Nested Decision Structures A decision structure can be nested inside another decision structure to test more than one condition.
If - Then - Else - If statement a simpler way logically to write a nested decision structure.
testExpression The first line of a case structure following Select
Multiple Alternative Decision Structure (AKA) Case Structure
Multiple Alternative Decision Structure (function) 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.
Logical Operators (examples) And Or Not
Logical Operators (function) Allow you to create complex Boolean expressions.
Which Logical Operator would you use to determine whether a numeric value is within a specific range or our of a specific range? AND
Boolean Variable Can hold one of two values: true or false
Which variable is commonly used as a flag? Boolean
What are the four types of variables we've learned so far? Integer Real String Boolean
Created by: RILY
Popular Computers sets

 

 



Voices

Use these flashcards to help memorize information. Look at the large card and try to recall what is on the other side. Then click the card to flip it. If you knew the answer, click the green Know box. Otherwise, click the red Don't know box.

When you've placed seven or more cards in the Don't know box, click "retry" to try those cards again.

If you've accidentally put the card in the wrong box, just click on the card to take it out of the box.

You can also use your keyboard to move the cards as follows:

If you are logged in to your account, this website will remember which cards you know and don't know so that they are in the same box the next time you log in.

When you need a break, try one of the other activities listed below the flashcards like Matching, Snowman, or Hungry Bug. Although it may feel like you're playing a game, your brain is still making more connections with the information to help you out.

To see how well you know the information, try the Quiz or Test activity.

Pass complete!
"Know" box contains:
Time elapsed:
Retries:
restart all cards