
Python Basics Assessment

Quiz
•
Computers
•
12th Grade
•
Medium
SUNITA YADAV
Used 1+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What are the basic data types in Python?
int, float, str, bool, list, tuple, set, dict
char, float, array, dict
int, float, str, bool, array, dict
int, float, str, boolean, list
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you declare a variable in Python?
declare variable_name as value
variable_name : value
You declare a variable in Python by using the syntax: variable_name = value.
value = variable_name
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the difference between a list and a tuple in Python?
The main difference is that lists are mutable and tuples are immutable.
Tuples are created using square brackets, while lists use parentheses.
Lists can contain only numbers, while tuples can contain any data type.
Lists are faster than tuples in all operations.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the 'if' statement in Python?
To define a function in Python.
To execute code conditionally based on a boolean expression.
To create a loop in Python.
To import modules in Python.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you create a loop that iterates over a list in Python?
for item in my_list: print(item)
for item in range(len(my_list))
while item in my_list:
foreach item in my_list:
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a function in Python and how is it defined?
A function in Python is defined using the 'def' keyword, followed by the function name and parentheses.
A function in Python is created with the 'create' keyword.
A function in Python is defined using the 'func' keyword.
A function in Python is defined by writing its name followed by a colon.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the 'return' statement in a function?
To define the function's parameters.
To create a loop within the function.
The purpose of the 'return' statement is to provide a value from a function to its caller.
To end the function execution immediately.
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Python Nested Loops Quiz

Quiz
•
9th - 12th Grade
20 questions
Data handling using pandas and Data visualization

Quiz
•
12th Grade
10 questions
Python Generators

Quiz
•
10th Grade - University
14 questions
Python Syntax

Quiz
•
6th - 12th Grade
15 questions
Python Inbuilt functions

Quiz
•
12th Grade
15 questions
Unit 8 CS Python Test

Quiz
•
12th Grade
11 questions
Python Boolean

Quiz
•
11th - 12th Grade
10 questions
Python Strings

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
20 questions
Digital Citizenship

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

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

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

Interactive video
•
9th - 12th Grade
19 questions
AP CSP Unit 1 Review (code.org)

Quiz
•
10th - 12th Grade