Python Quiz

Quiz
•
Computers
•
12th Grade
•
Medium
Youngbot Academy
Used 6+ times
FREE Resource
30 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is used to define a block of code in Python
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the keyword used to define a function in Python
func
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a valid variable name in Python
variable_1
variable-1
variable 1
1_variable
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a pass in Python?
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following can be used as a key in a Python dictionary?
tuple
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In a shallow copy, what happens if the original object contains a mutable object like a list?
The mutable object is cloned
The mutable object is copied entirely
The reference to the mutable object is copied
It raises an error
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How can you combine two dictionaries in Python?
dict1.add(dict2)
dict1.update(dict2)
dict1 + dict2
merge(dict1, dict2)
Create a free account and access millions of resources
Similar Resources on Wayground
27 questions
python string

Quiz
•
9th - 12th Grade
35 questions
Unit 1-4 Review

Quiz
•
9th - 12th Grade
25 questions
Introduction to Python

Quiz
•
KG - University
25 questions
GCSE Computer Science: Programming (Python)

Quiz
•
9th - 12th Grade
25 questions
หน่วยที่ 2 การแก้ปัญหาด้วยภาษาไพธอน ม.2

Quiz
•
12th Grade
28 questions
Python Functions Review Quiz

Quiz
•
9th - 12th Grade
30 questions
Programming Q3 Review - Data Structures

Quiz
•
9th Grade - University
31 questions
pyplot line and bar only

Quiz
•
12th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

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

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade