Save
Upgrade to remove ads
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

03 mod 5

QuestionAnswer
It refers to the order in which a program’s statements are executed Flow of control
Any algorithm can be built using combinations of four standardized flow of control structures: sequential, Selection, Repetition, Invocation
Normal flow of control for all programs is __________ sequential
It is used to select which statements are performed next based on a condition Selection
It is used to repeat a set of statement Repetition
It is used to invoke a sequence of instructions using a single statement, as in calling a function Invocation
Also known as conditions Relational expression
The expression is interpreted as either true (non-zero) or false (0). Relational expression
< > <= >= == != Relational expression
>= Relational expression
grade >= 70 What is grade and 70 in the expression? Operand
Character data can also be compared using relational operators True
AND (&&), OR (||), and NOT (!) Logical expressions
This statement allows you to control if a program enters a section of code or not based on whether a given condition is true or false if statement
One of the important functions of the if statement is that it allows the program to select an action based upon the __________ user's input
If, if-else, if-ladder, nested if if statement
The structure of an if statement: single statement, compound statement
if ( expression ) statement_TRUE; else statement_FALSE; Structure of if statement
if ( expression1 ) statement1 ; else if ( expression2 ) statement2 ; else statement3 ; The structure of an if-ladder statement
How is if statement excused? Up to down
An if or ifelse statement inside another if statement Nested if statements
Allows a variable to be tested for equality against a list of values Switch statement
What is each value in switch statement called? Case
switch(expression) { case constant1 : statement(s); break; case constant2 : statement(s); break; case constantn : statement(s); break; default : /* Optional */ statement(s); Structure of switch statement
Do not use floats in switch statements. True
Expression evaluated by switch should match a case True
This means that the matching case must also be an integer or a constant expression which evaluates to an integer True
Letters (not words) can be used in case statements as constants True
Use break statement to stop further execution otherwise it continues execution with whatever code that follows True
executed if no case constant-expression value is equal to the value of expression Default in switch statement
C++ provides control structures that serve to specify what has to be done to perform our program True
It is usually not limited to a linear sequence of instructions. During its process it may bifurcate, repeat code or take decisions program
It is a group of instructions separated by semicolons (;) but grouped in a block delimited by curly bracket signs: { and }. block of instructions
The general decision making capability in C++ is provided by the ______ if statement
It is a series of statements places inside curly braces {}. When the if statement is true, then all the statements inside the {} are run. program block, or compound statement
f (expression); // ends with semicolon False
The ______ structures can be concatenated with the intention of verifying a range of values. if + else
Occur when if statements appear inside other if statements. Nested if statements
The______ part of an if construct permits the implementation of multi-way branch decisions. else if
Selective structure Switch
To implement multi-way decisions the __________ provides a more concise representation than multiple else if statements, which can get very difficult to follow. switch statement
More than three statements switch statement
The switch statement is a multi-way decision that tests whether an expression matches one of a number of constant integer values. True
you stop execution of any further statements by using a ____________. This breaks out of the switch statement and continues execution with whatever code follows the closing brace of the switch. break statement
It allows for statements that should be carried out when none of the specific case situations match. This may not be too clear at the moment, but the following examples should help default
s block of instructions 1 until it finds the break keyword, then the program will jump to the end of the switch selective structure Switch
Created by: ellies
 

 



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