Indentation in Python is for readability only

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
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 Quizizz
11 questions
Python Intro 1

Quiz
•
7th - 12th Grade
12 questions
Python Print Statement

Quiz
•
6th - 10th Grade
12 questions
Year 7 Python

Quiz
•
7th Grade
15 questions
Python basics

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

Quiz
•
5th - 7th Grade
15 questions
ASK F2 -KOD ARAHAN (PYTHON)

Quiz
•
1st Grade - University
12 questions
Python

Quiz
•
7th - 9th Grade
15 questions
Basic Python Coding

Quiz
•
11th - 12th Grade
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Computers
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
11 questions
Decimal/fraction conversions quick check

Quiz
•
5th - 7th Grade
10 questions
Identifying equations

Quiz
•
KG - University
44 questions
El fin del año- 7th

Quiz
•
7th - 12th Grade
20 questions
Math Review

Quiz
•
7th Grade
14 questions
Subtracting Integers

Lesson
•
6th - 8th Grade
15 questions
Exponent Properties

Quiz
•
7th - 9th Grade