
G9-Introduction to Python Selection
Authored by Sherin Kamel
Information Technology (IT)
9th Grade
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
6 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Used in python to make decisions
If statement
print command
input command
logical operators
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What would happen if your forgot to include a colon at the end of an if statement?
Codes works
Syntax error
Logical error
Compilation error
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Is the result of the following code :
print(random.randint(3,9))
9
prints the word : random
3
prints a random number between 3 & 9
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result of the following code:
fname= "Esslam "
lname= "Fahmi "
print ("Hi" , lname + fname)
Hi Esslam fahmi
Hi Fahmi Esslam
Hi fname lname
Hi there
5.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
Are extremely important in the syntax of writing an if statement in python
:
?
indentation
%
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
You must import the Random library so the random functions can work
True
False
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?