
Python Basics
Authored by Wayground Content
AI Literacy
8th Grade
Used 15+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
13 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The != operator checks if the value on the left is not equal to the value on the right.
The symbol for the 'not equal to' operator is =.
The symbol for the 'not equal to' operator is !=.
The symbol for the 'not equal to' operator is <>.
The symbol for the 'not equal to' operator is !==.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The < operator checks if the value on the left is less than the value on the right.
The output of 4 < 2 is True.
The output of 4 < 2 is False.
The output of 2 < 4 is False.
The output of 2 < 4 is True.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Relational operators are used to compare values and return True or False. Examples include: - > greater than - < less than - == equal to - != not equal to
Relational operators are used to compare two values and return a Boolean result (True or False).
Relational operators are used to perform arithmetic operations on numbers.
Relational operators are used to concatenate strings together.
Relational operators are used to define variables in programming.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A comment in Python
A comment is a line that is not executed by Python and is used to explain code. Example: `# This is a comment`
A comment is a line of code that is executed by Python to perform a specific function.
A comment is a special character used to denote the end of a Python script.
A comment is a type of variable that stores user input.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Basic data types in Python
`int` (integer)
`decimal` (decimal number)
`str` (string/text)
`bool` (True/False)
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Types of comments in Python
Single-line comment (`#`)
Multi-line comment (`'''` or `"""`)
Inline comment (`//`)
Block comment (`/* ... */`)
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Relational operators compare numerical or other comparable values in Python.
Relational operators return a string value: either 'True' or 'False'.
Relational operators return a Boolean value: either True or False.
Relational operators return an integer value: either 1 or 0.
Relational operators return a list of values.
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?