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
10 questions
basic programming quiz

Quiz
•
University
15 questions
Dictionary Python

Quiz
•
University
10 questions
Lists in python

Quiz
•
University
10 questions
Python Sets

Quiz
•
University
8 questions
Unit-II-Python 2024 batch-list examples

Quiz
•
University
12 questions
Python Quiz- 1.9

Quiz
•
University
10 questions
day 2

Quiz
•
University
10 questions
Chapter 5 Java swing , small Apps

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Would you rather...

Quiz
•
KG - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
10 questions
The Constitution, the Articles, and Federalism Crash Course US History

Interactive video
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
16 questions
Water Modeling Activity

Lesson
•
11th Grade - University
10 questions
ACT English prep

Quiz
•
9th Grade - University