
List & String - Gtrade 9 Recap - Jan 22
Authored by Payal Chhabra
Computers
9th - 11th Grade
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What letter will be printed on the screen after running this code:
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In the following code, "city" is an example of a what?
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Each item in a string has an "address" or index. The first index in a Python string is what?
0
1
a
A
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What output will this code produce?
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Returning a range of characters (part of a string) is done using which syntax?
Slice
Splice
Cut
Select
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of these is the correct code for creating a list of names?
nameList = John, Harry, Jesse, John, Harry, Harry
nameList = ("John", "Harry", "Jesse", "John", "Harry", "Harry")
nameList = ["John", "Harry", "Jesse", "John", "Harry", "Harry"]
nameList = [John, Harry, Jesse, John, Harry, Harry]
7.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
variable.sort() will do what?
Sort the list into alphabetical order
Sort the list into reverse order
Create a new list
Error
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?