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
10 questions
Python quiz

Quiz
•
10th Grade - Professi...
15 questions
HCI 584 Python quiz

Quiz
•
University
10 questions
Python Dictionaries

Quiz
•
University
10 questions
basic programming quiz

Quiz
•
University
10 questions
Lists

Quiz
•
University
10 questions
Python Round 2

Quiz
•
University
15 questions
ARRAYLIST - JAVA

Quiz
•
University
15 questions
Жанар214

Quiz
•
9th Grade - University
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions

Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines

Quiz
•
Professional Development
12 questions
Dividing Fractions

Quiz
•
6th Grade