1/51
programming
Name | Mastery | Learn | Test | Matching | Spaced | Call with Kai | Chat |
|---|
No analytics yet
Send a link to your students to track their progress
What statement is used to make a decision in a program?
If Statement
What statement is used when there are two possible choices?
If-Else Statement
What statement is used to check multiple conditions?
Else-If Statement
What loop is used when the number of repetitions is known?
For Loop
What loop runs while a condition remains true?
While Loop
What loop executes its body before checking the condition?
Do-While Loop
What data types stores True or False
Boolean
What symbol is greater than?
>
What symbol is less than?
<
What symbol is equality
==
What symbol is not equal
!=
What symbol represents the logical AND operator?
&& or ampersand
What symbol represents logical OR operator?
|| or straight bars
What symbol represents the logical NOT operator?
!
Loop that does not end
infinite loop
Loop inside another loop
nested loop
What variable is commonly used for Loop?
counter
T / F | A for loop is an iterative structure
True
T / F | An if statement is a conditional structure
True
T / F | A while loop always execute atleast once
False
T / F | A do-while loop always execute atleast once
True
T / F | Conditional structures are used for decision making
True
T / F | True && True evaluates to True
True
T / F | True && False evaluates to True
False
T / F | False || True evaluates True
True
T / F | False || False evaluates to True
False
T / F | Iterative structures are used for repetition
True
T / F | 10 > 5 evaluates to true
True
T / F | 3 > 7 evaluates to true
False
T / F | 5 == 5 evaluates to true
True
T / F | 5!>5 evaluates to true
False
T / F | 8>=8
True
T / F |
Statement used to make a decision
if statement
loop for fixed number of repetitions
for loop
pre test loop
while loop
post test loop
do while loop
means not
!
means equal
==
operator checks equality
==
operator checks in inequality
!=
used for repetitions
iterative
T / F |
T / F |
T / F | If x= 10 and y= 5, what is value of x > y
True
T / F | If x = 5 and y= 5, what is the value of x == y
True
T / F | If x = 12 and y = 6 what is the value of x<y
False
T / F |
If N= 15, what is the value of n%4
3
If n= 17, whaT is the value of n/5 using integer decision
3
If x =. 5 and y= 20, what is the value of x > y&& y > 10?
False
If x = 5 and y = 20, what is the value if x || y
true