
Python 2

Quiz
•
Computers
•
9th Grade
•
Easy
Ayorinde Omojuwa
Used 1+ times
FREE Resource
23 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The correct way to convert user input is:
birth_year = number(input())
birth_year = int(input())
birth_year = (input(int))
birth_year = int(input)
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output for the following code?
100
50
20
130
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the purpose of variables in Python?
Variables in Python are used to store data values for later use.
Variables in Python are used for decoration purposes only.
Variables in Python are used to perform mathematical operations.
Variables in Python are used to confuse the programmer.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you declare a variable in Python?
variable_name = value
variable_name : value
variable_name = value =
value = variable_name
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What are the different types of conditional statements in Python?
when
unless
otherwise
if, elif, else
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the syntax for an if statement in Python?
if (condition) then
if condition:
if (condition):
if condition then:
Create a free account and access millions of resources
Similar Resources on Quizizz
20 questions
Python First Steps Homework Quiz

Quiz
•
7th - 9th Grade
20 questions
PY-BUILD

Quiz
•
University
20 questions
Basic Python

Quiz
•
10th - 12th Grade
20 questions
Python Basics Review (TSK)

Quiz
•
9th - 12th Grade
18 questions
PCEP 30-02 Practice Exam

Quiz
•
10th Grade
20 questions
Day 6 - ONLINE TEST - PL03 PYTHON PROGRAMMING

Quiz
•
University
18 questions
Computer Science (Python)

Quiz
•
9th Grade
20 questions
Python while loops

Quiz
•
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
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

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

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University