numbers=[1,2,3,4,5]
print(numbers[-2])
list 6th
Quiz
•
Computers
•
7th Grade
•
Medium
Ержан Ауезов
Used 1+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
numbers=[1,2,3,4,5]
print(numbers[-2])
2
4
3
5
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
10
5 5 5 5 5 5 5 5 5 5
10 10 10 10 10
5
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
numbers=[1,2,3,4,5]
numbers[2]=99
print(numbers)
[1, 99, 3, 4, 5]
[1, 2, 3, 99, 5]
[99, 2, 3, 4, 5]
[1, 2, 99, 4, 5]
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
thislist = ["apple", "banana", "cherry"]
thislist.append("orange")
print(thislist)
['apple', 'banana', 'cherry', 'orange']
['apple', 'banana', 'cherry', ]
[ 'orange', 'apple', 'banana', 'cherry']
[ 'apple', 'banana', 'orange']
5.
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]
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of these pieces of code would return the name "Harry" from the following list?
nameList = ["John", "Harry", "Jesse", "John", "Harry", "Harry"]
nameList()
nameList[1]
NameList(4)
nameList["4"]
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The list needs one more name added to the end - "Felipe". Which piece of code below would do this?
nameList = ["John", "Harry", "Jesse", "John", "Harry", "Harry"]
nameList.append(Felipe)
append(nameList,"Felipe")
nameList.append["Felipe",7]
nameList.append("Felipe")
20 questions
8525 AQA GCSE 3.2.6 Data Structures
Quiz
•
10th Grade
25 questions
Python Conditional Statements
Quiz
•
9th - 12th Grade
20 questions
Week 6 Quiz
Quiz
•
University
20 questions
Python - lists,loops,basics
Quiz
•
9th - 11th Grade
15 questions
Python Lists
Quiz
•
10th - 12th Grade
19 questions
Grade 8
Quiz
•
8th Grade
20 questions
Int Prog: Lists and Functions
Quiz
•
9th - 12th Grade
22 questions
Python 2
Quiz
•
7th - 9th Grade
15 questions
Character Analysis
Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing
Quiz
•
9th - 12th Grade
10 questions
American Flag
Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension
Quiz
•
5th Grade
30 questions
Linear Inequalities
Quiz
•
9th - 12th Grade
20 questions
Types of Credit
Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25
Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers
Quiz
•
6th - 8th Grade
14 questions
Misplaced and Dangling Modifiers
Quiz
•
6th - 8th Grade
17 questions
Parts of Speech
Quiz
•
7th - 12th Grade
11 questions
Decimal/fraction conversions quick check
Quiz
•
5th - 7th Grade
10 questions
Identifying equations
Quiz
•
KG - University
44 questions
El fin del año- 7th
Quiz
•
7th - 12th Grade
20 questions
Math Review
Quiz
•
7th Grade
14 questions
Subtracting Integers
Lesson
•
6th - 8th Grade
15 questions
Exponent Properties
Quiz
•
7th - 9th Grade