
PFP191 PRT2

Quiz
•
Computers
•
University
•
Easy
Đỗ Nga
Used 17+ 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
45 questions
Programming

Quiz
•
12th Grade - University
46 questions
VCE AC Unit 1 Outcome 1 Lesson 9

Quiz
•
10th Grade - University
50 questions
codinggss

Quiz
•
University
50 questions
50 questions (3)

Quiz
•
University
50 questions
M1 - Nuevas Tecnologías de Programación

Quiz
•
University
48 questions
BTEC Fundamentals of Computer Systems (student questions)

Quiz
•
10th Grade - University
50 questions
VB.NET BASIC QUIZ

Quiz
•
University
45 questions
Programación con Python

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

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

Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms

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

Interactive video
•
4th Grade - University
15 questions
Properties of Equality

Quiz
•
8th Grade - University
38 questions
WH - Unit 3 Exam Review*

Quiz
•
10th Grade - University
21 questions
Advise vs. Advice

Quiz
•
6th Grade - University
12 questions
Reading a ruler!

Quiz
•
9th Grade - University