
ICS3U Test 4
Authored by Lawrence Nelson
Computers
11th Grade
Used 3+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
60 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Given this line:
for i in range(len(stuff)):
What is stuff, probably?
an array
an integer
a function
a loop
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Given this line:
for i in range(len(stuff)):
What is i?
an array
an integer
a function
a loop
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Given an array called things.
How would you go through the array?
for thing in things:
for i in range(things):
if thing== things:
for i in len(thing):
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Given an array called things.
How would you go through the array?
for i in int(things):
for i in range(len(things)):
if thing == things:
for i in len(things):
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Given this line:
for i in range(len(stuff)):
What is i NOT?
a letter
an index
a variable
an integer
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Given the line:
stuff = ["cat", "dog", "boy","car"]
len(stuff) would be:
3
4
12
"cat"
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
len()
is a function
is an integer
is a character
is an array
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Microsoft
or continue with
%20(1).png)
Apple
Others
Already have an account?