
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 Wayground
22 questions
Fundamentals of Programming (GCSE Computer Science AQA)
Quiz
•
9th - 11th Grade
20 questions
Python Quiz
Quiz
•
9th Grade
20 questions
Python Basics & Syntax
Quiz
•
10th - 12th Grade
20 questions
Python year 9
Quiz
•
8th - 11th Grade
20 questions
Python Programming Functions Q3
Quiz
•
University
20 questions
Geeks for Geeks PCCOER Info Session CP Quiz
Quiz
•
University
18 questions
Python 2D Lists Quiz
Quiz
•
10th Grade
25 questions
PYTHON CONTERST 3
Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games
Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines
Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22
Lesson
•
9th - 12th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
15 questions
Subtracting Integers
Quiz
•
7th Grade
20 questions
US Constitution Quiz
Quiz
•
11th 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
20 questions
Analog vs Digital
Quiz
•
9th - 12th Grade
10 questions
Exploring Cybersecurity Techniques and Threats
Interactive video
•
6th - 10th Grade
10 questions
Understanding the Internet and Data Transmission
Interactive video
•
7th - 12th Grade
