
Python Basics for Grade 12 Students
Quiz
•
Computers
•
12th Grade
•
Practice Problem
•
Hard
PPR MOHAN
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What are the basic data types in Python?
float, string, boolean
string, number, object
int, float, str, list, tuple, set, dict
boolean, character, array
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you declare a variable in Python?
let variable_name = value
You declare a variable in Python by using the syntax: variable_name = value.
variable_name : value
var variable_name = value
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the difference between a list and a tuple in Python?
Lists can contain only numbers; tuples can contain any data type.
Tuples are mutable; lists are immutable.
Lists are faster than tuples in all cases.
Lists are mutable; tuples are immutable.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Explain the use of 'if' statements in Python.
'if' statements are only for looping through lists in Python.
'if' statements are used to define functions in Python.
'if' statements are used to declare variables in Python.
'if' statements in Python are used for conditional execution of code blocks.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a loop in Python and how is it used?
A loop in Python is a data structure for storing multiple values.
A loop in Python is a control structure for repeated execution of code blocks.
A loop in Python is a function that executes only once.
A loop in Python is a type of variable used for calculations.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Describe the purpose of the 'for' loop in Python.
To create a new variable in Python.
The purpose of the 'for' loop in Python is to iterate over a sequence or iterable, executing a block of code for each item.
To handle exceptions in Python.
To define a function in Python.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code: print(type(5))?
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
10 questions
Keyboarding Terms
Quiz
•
9th - 12th Grade
15 questions
CIW
Quiz
•
9th - 12th Grade
10 questions
python-BTxâu
Quiz
•
9th - 12th Grade
12 questions
HTML
Quiz
•
9th - 12th Grade
10 questions
Baze de date-Design
Quiz
•
12th Grade
14 questions
Computing figures
Quiz
•
4th - 12th Grade
10 questions
Working around Adobe Photoshop
Quiz
•
12th Grade
15 questions
Digital Etiquette
Quiz
•
4th 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
