What is the output of this code
Lists review (Python)

Quiz
•
Computers
•
University
•
Medium
ALBERTO HILARIO
Used 13+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
8
13
It gives an error
6
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What line of code will generate an error?
1
2
3
4
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of this code?
5
6
7
8
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the result of this code?
1
2
3
4
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of these examples show the correct way to write a list?
fruit = apple, banana, pear, cherry
fruit=['apple','banana','pear','cherry']
fruit = ('apple', 'banana', 'pear', 'cherry')
fruit=['apple'+'banana'+'pear'+'cherry']
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What type of variables does this list contain?
OneD = ['Niall','Zayn','Liam','Harry','Louis']
Integer
Float
String
Boolean
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following commands will print all the items of this list:
fruits = ["apple", "banana", "pear", "strawberry"]
print(fruit)
print(fruits)
print("fruits")
print[fruits]
Create a free account and access millions of resources
Similar Resources on Quizizz
14 questions
Python Revision

Quiz
•
University
15 questions
Week 7 Quiz

Quiz
•
University
10 questions
Quiz 6

Quiz
•
University
15 questions
Python Quiz Ver- 1.3

Quiz
•
University
10 questions
Moringa JavaScript Arrays

Quiz
•
5th Grade - Professio...
12 questions
Python list starter

Quiz
•
10th Grade - University
10 questions
Python debugging

Quiz
•
University
10 questions
basic programming quiz

Quiz
•
University
Popular Resources on Quizizz
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