
Python Basics Quiz
Authored by John Streety
Computers
5th Grade

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct syntax to print 'Hello, World!' in Python?
System.out.println('Hello, World!')
print('Hello, World!')
echo 'Hello, World!'
printf('Hello, World!')
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What symbol is used to start a comment in Python?
#
//
/*
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you create a variable in Python?
x = 5
x := 5
int x = 5
var x = 5
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code? if 5 > 2: print('Five is greater than two!')
5 > 2
Nothing
Syntax Error
Five is greater than two!
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the file extension for Python files?
.pyt
.python
.pt
.py
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will happen if you skip indentation in Python?
Warning
The code will run but with a different output
Nothing
Syntax Error
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How many spaces are most commonly used for indentation in Python?
8
2
4
1
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
Safer Internet Day
Quiz
•
5th - 9th Grade
10 questions
Ôn tập tin học 5
Quiz
•
5th Grade
10 questions
Python
Quiz
•
3rd - 10th Grade
10 questions
Lesson1-Explorer in Action
Quiz
•
5th Grade
15 questions
scratch 1
Quiz
•
3rd - 6th Grade
11 questions
Fortnite
Quiz
•
5th Grade - Professio...
15 questions
Quiz informatyczny
Quiz
•
1st - 8th Grade
10 questions
TMK TAHUN 6 : PENGATURCARAAN SCRATCH
Quiz
•
4th - 6th 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