stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
Looping and control structure Flashcards | StudBud
Explore
/
Looping and control structure
Looping and control structure
10 terms
·
StudBud Administration
Imported from external platform
Flashcards
10 cards
F
Practice quiz
P
Host live
L
Questions
10
Answers
1
what are arithmetic operators used for
to perform mathematical operations
to compare binary numbers
None of above
to assign values to variables
2
How many times will this while loop output "Go"?
4 times
3 times
2 times
1 times
3
Do while loop
executes the statement at least......before evaluating the condition
none of the above
once
twice
3 times
4
a for loop is an example of definite iteration. true or false
True
False
5
If selection
is used when we have:
2 actions
more than 2 actions
1 action to take place
3 actions to take place
6
If else
is used when we have:
3 actions to take place
more than 2 actions
1 action to take place
2 actions
7
If else if
is used when we have:
2 actions
3 actions to take place
more than 2 actions
1 action to take place
8
Which type of loop has the risk of looping infinitely?
for
while
do while
else
9
Ternary operator is denoted by:
:?
? :
None of above
??
10
Which of the following contains the correct syntax for a while loop header?
while[condition]
while condition:
while{condition}
while(condition)