
Programming - loops, arrays and functions
Computers
9th Grade
Used 6+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which is not a loop in Python
For ... Next
Do until
While
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the correct syntax for a for next loop to count of 20 in Python?
for x in range(1,21,2):
for x in range(1,20):
for x in range(20):
for x = 1 to 20
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the definition of an Array?
A string
A group of different items
Data structure to hold several variables, all of the same type, with one name
A list
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
In the variable text = "Happy Birthday", what is the index for H?
0
1
2
x
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
In the variable text = "The cat sat on the mat" ", what is the index for cat?
4:7
5:7
5:8
4:6
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
How do you work out the length of a string called mystring?
length(mystring)
mystring.length
len(mystring)
mystring.len
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which Python code is correct?
for x in range(1,20)
for x in range(1,20):
for x in range(1 to 20):
for x = range(1,20):
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 Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?