
PFP191 PRT2

Quiz
•
Computers
•
University
•
Easy
Đỗ Nga
Used 16+ times
FREE Resource
50 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which data type in Python is used to store an unordered collection of elements?
List
Tuple
Dictionary
Set
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
How do you access an element in a list in Python?
Using parentheses ()
Using square brackets []
Using curly braces {}
Using double quotes ""
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which of the following is the correct way to declare a tuple in Python?
my_tuple = [1, 2, 3]
my_tuple = "1, 2, 3"
my_tuple = {1, 2, 3}
my_tuple = (1, 2, 3)
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
In Python, how do you modify a value in a tuple?
Use the append() method
Use the insert() method
Values in a tuple cannot be modified
Use the replace() method
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which data type in Python is used to store key-value pairs?
List
Tuple
Dictionary
Set
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
In a dictionary, what data type can the keys have?
an immutable data type
Only strings
Only integers
Only tuples
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
How do you access a value in a dictionary in Python?
Using square brackets []
Using parentheses ()
Using curly braces {}
Using double quotes ""
Create a free account and access millions of resources
Similar Resources on Wayground
50 questions
Quiz Python

Quiz
•
University
49 questions
script_programming_part_2+3

Quiz
•
University
48 questions
FoP Midetems Reviewer

Quiz
•
University
52 questions
webdev ii

Quiz
•
University
54 questions
Python тест

Quiz
•
University
50 questions
COM411 Class Test 2

Quiz
•
University
50 questions
GEOGRAPHICAL INFORMATION SYSTEM

Quiz
•
University
50 questions
Test 1 - SDT 2113

Quiz
•
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