Terms/Keywords
Name That Loop
Operators
Decision Making Statements
Counting Loops
100
What type of statements are also known as loops?
What is Repetition Statements?
100
What loop is used when the number of times to loop is known? (Repeat 'x' times)
What is a For Loop?
100
What type of operators are the following: + (addition), - (subtraction), % (modulus), and -- (decrement)?
What is Arithmetic Operators?
100
Which statement consists of a boolean expression followed by one or more statements?
What is an If Statement?
100
What is the value of count at the end of the code segment: int count = 0, int x=0; while(x!=10){ x++; count++; } ?
What is 10?
200
What controls a loop?
What is Condition or Boolean Value?
200
Which loop is typically used when reading input from a file?
What is a While Loop?
200
What type of operators are the following: == (equal to), =! (not equal to), and >= (greater than or equal to)?
What is Relational Operators?
200
What type of statement should be used to test various conditions?
What is an If-else Statement?
200
What is the value of count at the end of the code segment: int count=0; for(int x=1; x<=20; x++;){ count = x; } ?
What is 21?
300
What loop runs indefinitely?
What is an Infinite Loop?
300
Which loop continually executes a block of statements as long as particular condition is true? Typically used when you do not know how many times the loop will run.
What is a While Loop?
300
What type of operators work on bits and performs bit-by-bit operations, and can be applied to the integer types, long, int, short, char, and byte?
What is Bitwise Operators?
300
What type of statement is being used when one if or else if statement inside another if or else if statement?
What is a Nested If Statement?
300
What is the value of count at the end of the code segment: int count=0; for(int x=1; x<20; x+=2;){ count++; }?
What is 10?
400
What causes the loop to skip the remainder of its body and immediately retest its condition prior to reiterating?
What is a Continue Statement?
400
Which while loop evaluates its expression at the bottom of the loop instead of the top?
What is a Do While Loop?
400
What type of operators are the following symbols: && (logical and), ll (logical or), and ! (logical not)?
What is Logical Operators?
400
Which statement allows a variable to be tested for equality against a list of values?
What is a Switch Statement?
400
What is the value of count at the end of the code segment: int count; for(int x=0; x<20; x++;){ for(int y=1; y<=5; y++;){ count++; }?
What is 100?
500
What terminates the loop or switch statement and transfers execution to the statement immediately following the loop or switch?
What is a Break Statement?
500
What kind of loop would most efficiently make this shape: # ## ### ## # ?
What is a Nested For Loop?
500
Which operator consists of three operands and is used to evaluate Boolean expressions? The goal of the operator is to decide which value should be assigned to the variable?
What is Conditional Operator?
500
What type of operator can be used to replace if-else statements?
What is a Conditional Operator ? :?
500
What is the value of count at the end of the code segment: int count=0; for(int x=0; x<20; x++;){ for(int y= x+1; x<8; x++;){ count++; }?
What is 28?
M
e
n
u