
Python Basics Quiz
Quiz
•
Computers
•
7th Grade
•
Practice Problem
•
Hard
Romana Azam
Used 4+ times
FREE Resource
Enhance your content in a minute
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
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
C++ Array Quiz
Quiz
•
University
10 questions
Testas: Saugesnis internetas
Quiz
•
11th Grade
11 questions
Ethical Issues of I.T.
Quiz
•
7th - 8th Grade
10 questions
Kiểm tra TX tin 8
Quiz
•
8th Grade
10 questions
Asesmen Diagnostik Informatika XI
Quiz
•
10th Grade
10 questions
Tutorium1
Quiz
•
University
10 questions
Microsoft Excel էլեկտրոնային աղյուսակ
Quiz
•
12th Grade
10 questions
Node.js
Quiz
•
University
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
