
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
9 questions
Premiers pas avec turtle

Quiz
•
11th Grade
12 questions
Python

Quiz
•
7th - 9th Grade
15 questions
Python Basics Quiz

Quiz
•
9th - 12th Grade
15 questions
Python2

Quiz
•
8th Grade - University
13 questions
Python Basics Revision

Quiz
•
6th - 8th Grade
12 questions
Python Print Statement

Quiz
•
6th - 10th Grade
15 questions
Python basics

Quiz
•
6th - 8th Grade
10 questions
Python Statements

Quiz
•
5th - 7th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

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

Interactive video
•
6th - 10th Grade
15 questions
Acceptable Use Policy (Quiz)

Quiz
•
6th - 8th Grade
25 questions
Career Vs. Job

Quiz
•
6th - 8th Grade
20 questions
Copyright and Fair Use

Quiz
•
6th - 8th Grade
20 questions
Hardware vs. Software Quiz

Quiz
•
7th - 10th Grade
21 questions
Input Output Storage Device

Quiz
•
5th - 8th Grade