Log in
Sign up for FREE
arrow_back
Library
Loops & Functions Final Worksheet
By Portia M
star
star
star
star
star
Share
share
Last updated about 4 years ago
5 questions
Add this activity
1
1
1
1
1
Question 5
5.
What will the following code output?
Question 1
1.
Correctly format the following function.
______________________ ______________________ ( ______________________ , ______________________ ):
print(firstName + " " + lastName)
Other Answer Choices:
drag_indicator
lastName
drag_indicator
fullname
drag_indicator
firstName
drag_indicator
def
Question 2
2.
Label each concept (marked in red) in the following for loop.
for
i
in range (
10
,
40
,
3
) :
for
______________________
in range (
______________________
,
______________________
,
______________________
):
Other Answer Choices:
drag_indicator
add to /subtract from
drag_indicator
stop
drag_indicator
variable
drag_indicator
start
Question 3
3.
Reorder the follow code.
number -= 2
while
( number < 101):
number = 0
print
(number)
Question 4
4.
Categorize if the loop is infinite or not
Infinite
Finite