
Python Basics Worksheet

Quiz
•
Computers
•
9th Grade
•
Hard
Bouazza Bilam
Used 4+ times
FREE Resource
26 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A variable in Python is:
a named location used to store data
a type of loop
a built-in function
a Python module
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Assigning a value to a variable in Python is done by:
using the = operator
using the := operator only
using the == operator
using the => operator
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of: python x = 5 y = "5" print(x + int(y))
10
55
TypeError
5
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A variable name can start with a digit in Python. Which of the following statements is correct?
No, variable names cannot start with a digit in Python.
Yes, variable names can start with a digit in Python.
Variable names must always start with a digit in Python.
Variable names can only start with special characters in Python.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The difference between = and == in Python is:
= is used for assignment, == is used for comparison
= is used for comparison, == is used for assignment
Both are used for assignment
Both are used for comparison
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The output of 3 ** 2 in Python is:
6
9
8
5
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The difference between // and / operators can be explained with the example: 7 // 2 gives 3, while 7 / 2 gives 3.5. Which of the following best describes this difference?
// gives the integer division result, while / gives the floating-point division result.
// gives the floating-point division result, while / gives the integer division result.
Both // and / give the same result for all numbers.
// is used for multiplication, while / is used for division.
Create a free account and access millions of resources
Similar Resources on Wayground
21 questions
Revision Starter for term 1 assessment

Quiz
•
9th Grade
25 questions
untitled

Quiz
•
8th Grade - University
26 questions
The First Programming Languages

Quiz
•
9th - 12th Grade
21 questions
Python-Checkpoint revision

Quiz
•
9th - 12th Grade
25 questions
Basics of Python

Quiz
•
9th - 12th Grade
30 questions
Python (Week 7)

Quiz
•
9th Grade
22 questions
Java Program Parts

Quiz
•
9th Grade
25 questions
Understanding Input, Selection and Loops in Python

Quiz
•
7th Grade - University
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