
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
10 questions
Introduction to Python Programming Quiz

Quiz
•
10th Grade
8 questions
Y7 - Strings

Quiz
•
7th Grade
9 questions
C sharp

Quiz
•
11th Grade
8 questions
Python Basics Review Quiz 5.1.5 - 5.1.11 CodeHS

Quiz
•
9th - 12th Grade
13 questions
Program Development - Python: Errors

Quiz
•
8th - 10th Grade
15 questions
Round 2 Debug-The-Code

Quiz
•
University
10 questions
ICT Java programming workshop

Quiz
•
9th Grade
10 questions
Python Revision Tour

Quiz
•
12th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
18 questions
Company Logos

Quiz
•
6th - 8th Grade
10 questions
Proper Keyboarding Techniques

Interactive video
•
6th - 10th Grade
14 questions
Inputs and Outputs: Computer Science Intro

Lesson
•
5th - 9th Grade
10 questions
Understanding Computers: Hardware, Software, and Operating Systems

Interactive video
•
7th - 12th Grade