
Test - 1
Authored by LWsummer internship
Other
Vocational training
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
40 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a function in Python?
A way to store multiple values
A reusable block of code that performs a specific task
A type of variable
A module in Python
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you call a function named my_function in Python?
call my_function
execute my_function()
my_function()
run my_function
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is NOT a part of the code section?
Variables
Comments
Hardware specifications
Function definitions
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is stack memory used for?
Storing global variables
Managing the execution of function calls
Long-term data storage
Storing HTML files
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a variable in Python?
A fixed value
A reserved word
A name given to a memory location
A type of function
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a statement in Python?
A way to organize code
An instruction that Python can execute
A comment
A type of variable
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a string data type?
123
45.67
"Hello"
True
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?