Writing your first program in Python
Quiz
•
Computers
•
8th Grade
•
Practice Problem
•
Medium
Diana Mousa
Used 31+ times
FREE Resource
Enhance your content in a minute
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
Already have an account?
Similar Resources on Wayground
10 questions
THE PHOTOSHOP WINDOW
Quiz
•
7th - 8th Grade
10 questions
Bài tập Tin học lớp 4
Quiz
•
1st - 12th Grade
13 questions
Five Nights At Freddy's: Security Breach Quiz
Quiz
•
KG - Professional Dev...
12 questions
Creating Webpages
Quiz
•
6th - 8th Grade
13 questions
topologies
Quiz
•
7th - 8th Grade
11 questions
CAPÍTULO 1 NETWORKING ESSENTIALS
Quiz
•
1st - 12th Grade
8 questions
Overview of IT
Quiz
•
6th Grade - University
10 questions
For loop
Quiz
•
8th Grade
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
