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
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?
Similar Resources on Wayground
10 questions
Sesión 03
Quiz
•
1st - 12th Grade
10 questions
R082 Book Cover Assets planning
Quiz
•
7th - 12th Grade
15 questions
UJIAN PRAKTEK TIK KELAS 8
Quiz
•
8th Grade
10 questions
Lesson 9: Intelligence is the Ability to Adapt to Change
Quiz
•
8th Grade
11 questions
Website constructs
Quiz
•
6th - 8th Grade
10 questions
Ke-Al Azhar 8 an
Quiz
•
7th Grade - University
11 questions
Excel
Quiz
•
1st - 10th Grade
10 questions
Imagine Logo
Quiz
•
5th - 8th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
