
Python Fundamentals
Authored by Atabek Kadirow
Computers
7th Grade
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct syntax for a simple 'if' statement in Python?
if condition:
if condition == True
if (condition)
if condition then
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the '==' operator used for in Python?
Concatenation
Comparison
Addition
Assignment
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What are the different data types available in Python?
char, double, boolean, void
int, float, str, bool
number, text, array, map
int, float, complex, str, list, tuple, set, dict, bool, and more
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you write a single-line comment in Python?
/* This is a multi-line comment */
/* This is a single-line comment */
# This is a single-line comment
// This is a single-line comment
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the difference between '==' and 'is' operators in Python?
The '==' operator compares the memory addresses of the objects, while the 'is' operator compares the values of the objects.
The '==' operator is used for comparison of strings, while the 'is' operator is used for comparison of integers.
The '==' operator compares the values of the objects, while the 'is' operator compares the memory addresses of the objects.
The '==' operator is used for assignment, while the 'is' operator is used for comparison.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What are the rules for naming a variable in Python?
Variable names can contain special characters like $ and %
Variable names must be at least 10 characters long
Variable names cannot be longer than 5 characters
Variable names can only contain letters, numbers, and underscores, and cannot start with a number.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of 'print(2+3*5)' in Python?
25
17
10
7
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?