Python Fundamentals for Grade 9 Students

Quiz
•
Computers
•
9th Grade
•
Hard
Srimoyi Banik
Used 7+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the output of 'print(5 + 3)' in Python?
8
7
2
10
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Explain the difference between '==' and 'is' in Python.
'==' compares values, 'is' compares types.
'==' compares values, 'is' compares memory addresses.
'==' compares memory addresses, 'is' compares values.
'==' compares memory addresses, 'is' compares types.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What data type is 'True' in Python?
list
integer
string
boolean
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you write an if-else statement in Python?
if condition: code_block_for_false_condition else: code_block_for_true_condition
if condition: code_block_for_true_condition else: code_block_for_false_condition
if condition: code_block_for_true_condition
if condition: code_block_for_true_condition else: code_block_for_false_condition
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of a 'for' loop in Python?
To iterate over a sequence and execute a block of code for each item in the sequence.
To perform mathematical calculations
To define classes and objects
To create conditional statements
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Define a function in Python that takes two parameters and returns their sum.
def sum_two_numbers(a, b): return a + b
def add_numbers(a, b): return a + b
def calculate_sum(a, b): return a + b
def sum(a, b): return a + b
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you take user input in Python?
get_input() method
user_input() function
read_input() function
input() function
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Unit 1 Post Test: Basic Python

Quiz
•
9th - 12th Grade
10 questions
Pyhton

Quiz
•
9th - 10th Grade
15 questions
Programming Review

Quiz
•
9th - 12th Grade
8 questions
Roblox Lua Scripting Quiz

Quiz
•
1st - 12th Grade
10 questions
Exploring Python: Input and Output Essentials

Quiz
•
9th Grade - University
10 questions
Начала Python 8-9 класс

Quiz
•
8th - 9th Grade
15 questions
Algorithms

Quiz
•
8th - 10th Grade
10 questions
Python Review 2023-01-12

Quiz
•
9th - 12th 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
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
30 questions
Introduction to Computers

Quiz
•
8th - 9th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
20 questions
Hardware vs. Software Quiz

Quiz
•
7th - 10th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade