
Python Basics 2
Quiz
•
Computers
•
11th Grade
•
Practice Problem
•
Medium
Knight Brandon
Used 16+ times
FREE Resource
Enhance your content in a minute
24 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What are the different data types in Python?
int, float, str, bool, list, tuple, dict, set, char, array, object
int, float, str, bool, list, tuple, dict, set, char, arr, obj
integer, float, string, boolean, list, tuple, dictionary, set
integer, float, string, boolean, list, tuple, dictionary, set, character, array, object
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you declare a variable in Python?
You use the 'var' keyword.
You use the 'let' keyword.
You use the 'const' keyword.
You assign a value to a variable name using the '=' operator.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the syntax for an if statement in Python?
if (condition)
if condition:
if [condition]
if {condition}
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the difference between '==' and '!=' comparison operators?
The '==' operator checks for inequality, while the '!=' operator checks for equality.
The '==' operator checks for identity, while the '!=' operator checks for inequality.
The '==' operator checks for inequality, while the '!=' operator checks for identity.
The '==' operator checks for equality, while the '!=' operator checks for inequality.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What are the logical operators in Python?
not
and, or, not
or
and
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the data type of the variable 'x' if x = 5?
string
float
integer
boolean
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you assign a value to a variable in Python?
x = True
x = 'five'
x = 10
x = 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
20 questions
UH1_INFO_XII
Quiz
•
11th Grade
20 questions
Ujian Akhir Semester Genap Teknik Animasi 2D 3D Kelas XI
Quiz
•
11th Grade
20 questions
Quiz
•
7th - 12th Grade
20 questions
Bài TX1 - HK2 - Tin học 11
Quiz
•
11th Grade
20 questions
แบบทดสอบปลายภาคโปรแกรมแอนิเมชัน
Quiz
•
9th - 12th Grade
25 questions
HTML
Quiz
•
11th Grade
20 questions
Unit-1 Computational Thinking
Quiz
•
9th - 12th Grade
20 questions
HISTORY OF COMPUTER_SUMMATIVE 1
Quiz
•
11th - 12th Grade
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
