stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
Python for Cybersecurity: ch. 3 - Loops Flashcards | StudBud
Explore
/
Python for Cybersecurity: ch. 3 - Loops
Python for Cybersecurity: ch. 3 - Loops
9 terms
·
StudBud Administration
·
228 plays
For Loops While Loops Loops and Conditions
Flashcards
9 cards
F
Practice quiz
P
Host live
L
Questions
9
Answers
1
Which function returns the number of items of an object?
len()
range()
lens()
length()
2
Pick 2: What are the main loops we learn in ch. 3?
for
except
while
if
3
Of all the statements - which one is good to use as a "placeholder"
pass
break
elif
continue
4
Which command skips an iteration?
continue
break
pass
while
5
True or False: you can mix conditions and loops
False
True
6
What command exits a loop?
continue
stop
break
pass
7
If a condition never becomes false, what could you create?
an undefined loop
a nested loop
an infinite loop
a broken loop
8
Which function allows you to add a value to an existing variable?
.add()
.append()
.remove()
.reply()
9
True or False: Pass statements are used as empty executions
True
False