
Python basics
Quiz
•
Computers
•
University
•
Practice Problem
•
Medium
Jayasheela Kallaganiger
Used 1+ times
FREE Resource
Enhance your content in a minute
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is an immutable data type in Python?
List
Dictionary
Tuple
Set
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which data type in Python is ordered and allows duplicate elements?
List
Tuple
Set
Dictionary
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct way to create a dictionary in Python?
{1: 'apple', 2: 'banana', 3: 'orange'}
[1: 'apple', 2: 'banana', 3: 'orange']
(1: 'apple', 2: 'banana', 3: 'orange')
{1, 'apple', 2, 'banana', 3, 'orange'}
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the 'in' operator do in Python?
Checks if a value exists in a list
Performs integer division
Checks if a key exists in a dictionary
Checks if a value exists in a tuple
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which data type in Python is used to store a sequence of characters?
Integer
List
Tuple
String
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code?
my_tuple = (1, 2, 3)
print(my_tuple[1])
1
2
3
Error
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following data types in Python is unordered and does not allow duplicate elements?
Set
Tuple
List
Dictionary
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
16 questions
Python Basics
Quiz
•
KG - University
20 questions
Python Recap
Quiz
•
7th Grade - University
15 questions
Sinh hoạt lớp Tuần 7
Quiz
•
1st Grade - University
20 questions
STM 2013 : FORMATIF T3-FORM & REPORT
Quiz
•
University
20 questions
DWDM-2
Quiz
•
University
15 questions
untitled
Quiz
•
11th Grade - University
20 questions
Kiến thức về Thuật toán và Chương trình
Quiz
•
8th Grade - University
16 questions
Se liga - 1 - 9º
Quiz
•
9th Grade - University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
