Writing your first program in Python
Quiz
•
Computers
•
8th Grade
•
Medium
Diana Mousa
Used 31+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the print() function in Python?
To save a program
To display text on the console
To create variables
To upload files
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a correct way to write a comment in Python?
/* This is a comment */
// This is a comment
# This is a comment
<-- This is a comment -->
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will the following code output? print('Hello World')
Hello World
Hello, World!
Hello World!
Hello
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code: print(3 * 4)?
34
12
7
3 x 4
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the first step to create a Python program according to the text?
Run the program
Write the code
Open the Python editor
Save the program
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is NOT a feature of Python mentioned in the text?
Open source
Rich library of functions
General-purpose programming language
High cost
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will the following code output? print('100-99=', 100-99)
100-99=1
1
99
100-99=0
Create a free account and access millions of resources
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
10 questions
Python ծրագրավորման լեզու
Quiz
•
7th - 10th Grade
10 questions
Python
Quiz
•
8th Grade
10 questions
Y9 Intro to Python
Quiz
•
8th Grade
11 questions
Python 1 модуль
Quiz
•
6th - 8th Grade
12 questions
Programming - Output
Quiz
•
KG - 12th Grade
12 questions
python 1112
Quiz
•
6th - 8th Grade
15 questions
Coding Quiz
Quiz
•
6th - 10th Grade
12 questions
Python
Quiz
•
7th - 8th Grade
Popular Resources on Wayground
20 questions
Brand Labels
Quiz
•
5th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
20 questions
ELA Advisory Review
Quiz
•
7th Grade
15 questions
Subtracting Integers
Quiz
•
7th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns
Quiz
•
3rd Grade
10 questions
Exploring Digital Citizenship Essentials
Interactive video
•
6th - 10th Grade