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
What is the output of this code
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 Wayground
8 questions
J277 - 2.2 - Random Number Generation

Quiz
•
10th Grade - University
15 questions
Python Basics

Quiz
•
University
10 questions
Python Dictionaries

Quiz
•
University
15 questions
Python End of Topic Quiz

Quiz
•
8th Grade - University
10 questions
Python Basics

Quiz
•
University
10 questions
Python quiz

Quiz
•
10th Grade - Professi...
15 questions
Python Programming

Quiz
•
5th Grade - University
10 questions
Python3

Quiz
•
4th Grade - University
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade