stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
Python Fundamentals for Elementary School Students Flashcards | StudBud
Explore
/
Python Fundamentals for Elementary School Students
Python Fundamentals for Elementary School Students
18 terms
·
StudBud Administration
Imported from external platform
Flashcards
18 cards
F
Practice quiz
P
Host live
L
Questions
18
Answers
1
Which keyword defines a function?
func
function
def
define
2
Which is a Python loop type?
for
until
repeat
while-do
3
Which is a valid variable name?
my variable
my_variable
2myvariable
my-variable
4
True or false: Python is case-sensitive.
False
True
5
Which symbol is used for comments?
#
:
/*
//
6
What does 'import' do?
Creates variables
Prints output
Brings in modules
Defines functions
7
What is Python primarily used for?
Fashion design
Web development
Cooking recipes
Gardening tips
8
What does 'return' do?
Creates variable
Exits function
Prints output
Defines function
9
What is an exception?
Error handling
Data type
Function type
Variable name
10
Which is a Python data type?
Graph
List
Table
Matrix
11
Which operator is used for addition?
/
-
*
+
12
What does 'print()' do?
Saves to file
Runs a loop
Creates variable
Displays output
13
Which is a built-in function?
max()
total()
add()
sum_all()
14
What is a loop used for?
Create functions
Store data
Handle errors
Repeat actions
15
What is a function in Python?
Error handler
Reusable code block
Data storage
User input
16
What does 'len()' do?
Creates a list
Returns length
Deletes items
Sorts data
17
What does 'input()' do?
Creates variable
Defines function
Gets user input
Prints output
18
What is a dictionary in Python?
Function block
Ordered list
Data type
Key-value pairs