
Python Basics Quiz

Quiz
•
Computers
•
7th Grade
•
Hard
Romana Azam
Used 4+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Indentation in Python is for readability only
TRUE
FALSE
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Choose the missing part of the code to output 'Hello World!'
___("Hello World!")
output
cout
println
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Complete the code block, print "YES" if 5 is larger than 2.
if 5>2:
print yes
if 5>2:
print("YES")
if 5<2:
print 'yes'
if 5>2:
print: yes
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which character is used to define a Python comment:
'
//
#
/*
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a correct way to declare a Python variable?
var 5 = x
#x = 5
$x = 5
x = 5
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
You can declare string variables with single or double quotes.
x = "John"
# is the same as
x = 'John'
FALSE
TRUE
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Variable names are not case-sensitive.
a = 5
# is the same as
A = 5
FASLE
TRUE
Create a free account and access millions of resources
Similar Resources on Wayground
13 questions
Python Recap Challenge

Quiz
•
10th Grade
15 questions
Python debug & calculations

Quiz
•
8th - 9th Grade
15 questions
Python introduction

Quiz
•
University
15 questions
ASK F2 -KOD ARAHAN (PYTHON)

Quiz
•
1st Grade - University
15 questions
Basic Python Coding

Quiz
•
11th - 12th Grade
10 questions
Exploring Python: Input and Output Essentials

Quiz
•
9th Grade - University
12 questions
Python

Quiz
•
7th - 8th Grade
11 questions
Python Quiz

Quiz
•
12th Grade
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade