
Python basics

Quiz
•
Computers
•
University
•
Medium
Jayasheela Kallaganiger
Used 1+ times
FREE Resource
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
Create a free account and access millions of resources
Similar Resources on Wayground
16 questions
Python and data processing test

Quiz
•
University
18 questions
Kiểu dữ liệu xâu kí tự trong Python

Quiz
•
10th Grade - University
20 questions
UNIT 1 PYTHON

Quiz
•
University
20 questions
TECHNICAL QUIZ

Quiz
•
University
18 questions
Python Lists ,set,tuple and Dictionary

Quiz
•
University
15 questions
Grade 8 End of Unit Revision

Quiz
•
8th Grade - University
20 questions
Python Quiz - BPLCK105B

Quiz
•
University
25 questions
Iedc Coders Club Programming Quiz

Quiz
•
University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
21 questions
Spanish-Speaking Countries

Quiz
•
6th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
7 questions
Common and Proper Nouns

Interactive video
•
4th Grade - University
12 questions
Los numeros en español.

Lesson
•
6th Grade - University
7 questions
PC: Unit 1 Quiz Review

Quiz
•
11th Grade - University
7 questions
Supporting the Main Idea –Informational

Interactive video
•
4th Grade - University
12 questions
Hurricane or Tornado

Quiz
•
3rd Grade - University
7 questions
Enzymes (Updated)

Interactive video
•
11th Grade - University