Python Tuples Review

Quiz
•
Computers
•
11th Grade
•
Medium
Harmeet Kaur
Used 56+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What is a tuple in Python?
C. A type of loop in Python
B. A mutable data type
A. A sequence used to store a collection of values of any type
D. A type of dictionary in Python
2.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
How are tuples created in Python?
C. Using parenthesis
B. Using curly braces
A. Using square brackets
D. Using angle brackets
3.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which of the following is true about tuples?
B. Tuples can be modified in place
D. Tuples can only store integers
A. Tuples are mutable
C. Tuples are immutable
4.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
How can a single element tuple be created in Python?
A. (20,)
B. (20)
D. (20, 20, 20)
C. (20, 20)
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the result of the expression: (1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20)[4:-4]?
A. (5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18)
B. (5, 6, 7, 8, 9, 10, 11, 12, 13, 14)
C. (5, 6, 7, 8, 9, 10, 11, 12, 13)
D. (5, 6, 7, 8, 9, 10, 11, 12)
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the result of the expression: (10,20,30,1,7,9,100,51,75,80)[2:5]*3?
A. (30, 1, 7, 30, 1, 7, 30, 1, 7)
B. (30, 1, 7, 30, 1, 7, 30, 1, 7, 30, 1, 7)
C. (30, 1, 7, 100, 51, 75, 30, 1, 7, 100, 51, 75, 30, 1, 7)
D. (30, 1, 7, 100, 51, 75, 30, 1, 7, 100, 51, 75)
7.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which function is used to return the count of a specific element in a tuple?
D. count()
C. index()
B. min()
A. max()
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
SQL Commands Part 1

Quiz
•
11th - 12th Grade
15 questions
Data Base

Quiz
•
11th Grade
14 questions
Python: списки, кортеж, словник, множина

Quiz
•
9th - 12th Grade
10 questions
Data structures, operators and variables

Quiz
•
9th - 12th Grade
16 questions
SLR4 | Data Structures with C# Examples

Quiz
•
11th Grade
20 questions
LETS PLAY QUIZ - PYTHON CBSE CLASS XII

Quiz
•
11th - 12th Grade
20 questions
Python

Quiz
•
9th - 12th Grade
20 questions
Mastering Python Loops and Functions

Quiz
•
10th Grade - University
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
40 questions
LSHS Student Handbook Review: Pages 7-9

Quiz
•
11th Grade
20 questions
Scalars, Vectors & Graphs

Quiz
•
11th Grade
62 questions
Spanish Speaking Countries, Capitals, and Locations

Quiz
•
9th - 12th Grade
10 questions
Solving Equations Opener

Quiz
•
11th Grade
20 questions
First Day of School

Quiz
•
6th - 12th Grade
21 questions
Arithmetic Sequences

Quiz
•
9th - 12th Grade