
Python Basics G8
Authored by Miss Dina Eid
Computers
8th Grade
Used 13+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
12 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
age = '5'
In the code above, age is a
string
integer
floating point
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How is a block of code defined in Python ?
with indentation
with paranthesis
with curly braces
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the below operators can be used to compare two numbers
==
><
=
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct extension for python files ?
.py
.pyth
.python
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct extension for python files ?
.py
.pyth
.python
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How to insert comments in Python ?
# this is a comment
// this is a comment
/* this is a comment */
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code if raining was entered
Take a brolly!
Have a great day
The code would not run
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?