Python Basics Quiz

Quiz
•
Computers
•
9th - 12th Grade
•
Hard
Mr McCallion
Used 3+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a variable in Python?
A reserved memory location to store values
A mathematical equation
A type of snake in the Amazon rainforest
A type of data structure in Python
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What are all built-in data types in Python?
integer, float, string, boolean, list, dictionary
number, boolean, string, vector, class
variable, selection, iteration
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the difference between integer and float data types?
Float data type stores both whole and decimal numbers, while integer data type stores only whole numbers.
Integer data type stores whole numbers, while float data type stores decimal numbers.
Integer data type can be used for text data, while float data type is only used for numerical data.
Integer data type stores decimal numbers, while float data type stores whole numbers.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you assign a variable in Python?
value = variableName
variableName = value
variableName == value
value == variableName
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code: print(type(5))?
5
<type 'int'>
NoneType
integer
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code:
x = 5
y = 'Hello'
print(x + y)
None
TypeError
10
SyntaxError
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code:
x = 10
y = 3
print(x // y)
3
30
2.5
7
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
MM - JavaScript

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

Quiz
•
1st Grade - University
10 questions
Programming

Quiz
•
1st - 10th Grade
15 questions
# REVIEW 1 DATA TYPES

Quiz
•
10th Grade
15 questions
PTS Algoritma dan Pemrograman

Quiz
•
9th - 12th Grade
10 questions
Variables and Data Types

Quiz
•
3rd - 10th Grade
15 questions
Structuri neomogene

Quiz
•
9th - 12th Grade
12 questions
Topic 1 C++ Programming

Quiz
•
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
10 questions
1.2 OSI & TCP IP Models Quiz

Quiz
•
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