
Python Quiz

Quiz
•
Computers
•
12th Grade
•
Hard
Shweta Dhareshwar
Used 2+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following object does not support indexing?
tuple
list
dictionary
set
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following data type is immutable?
list
set
tuple
dictionary
3.
OPEN ENDED QUESTION
3 mins • 1 pt
Which of the following code gives output My friend's house is in Chennai?
Evaluate responses using AI:
OFF
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What's the main difference between Python lists and tuples?
Lists are faster and tuples are slower.
Lists can hold any data type and tuples can only contain int and str objects.
Lists are mutable and tuples are immutable.
Lists are immutable and tuples are mutable
5.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
How do you assign a tuple of length 1 to the variable a? (Check all that are correct.)
a = 1,
a = tuple(1)
a = 1
a = [1]
a = (1,)
6.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
Which of the following are true of Python dictionaries?
Dictionaries can be nested to any depth.
Dictionaries are accessed by key.
A dictionary can contain any object type except another dictionary.
Dictionaries are mutable.
Items are accessed by their position in a dictionary.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
colors = ["red", "green", "burnt sienna", "blue"]
print( "yellow" in color)
What is the result of the yellow in colors expression?
ValueError: 'yellow' is not in list
4
False
3
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
H466 - Arrays, Records, Tuples and Lists

Quiz
•
11th Grade - University
10 questions
CS Python Fundamentals Test 12 PRACTICE

Quiz
•
9th - 12th Grade
9 questions
Intermediate python

Quiz
•
9th - 12th Grade
10 questions
Dictionary in Python

Quiz
•
11th - 12th Grade
7 questions
Python-list,tuple,Dictionary

Quiz
•
11th - 12th Grade
15 questions
Problem Solving using Python and R - UNIT II - Tuples

Quiz
•
12th Grade
10 questions
Data Structures Quiz

Quiz
•
12th Grade
10 questions
Python Abstraction

Quiz
•
12th Grade
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
Discover more resources for Computers
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
62 questions
Spanish Speaking Countries, Capitals, and Locations

Quiz
•
9th - 12th Grade
20 questions
First Day of School

Quiz
•
6th - 12th Grade
6 questions
Maier - AMDM - Unit 1 - Quiz 1 - Estimation

Quiz
•
12th Grade
21 questions
Arithmetic Sequences

Quiz
•
9th - 12th Grade
21 questions
9th Grade English Diagnostic Quiz

Quiz
•
9th - 12th Grade
7 questions
Characteristics of Life

Interactive video
•
11th Grade - University