stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
Article Flashcards | StudBud
Explore
/
Article
Article
19 terms
·
StudBud Administration
Imported from external platform
Flashcards
19 cards
F
Practice quiz
P
Host live
L
Questions
19
Answers
1
Which of these is a valid variable name?
my_variable
1st_variable
my variable
my-variable
2
What does 'return' do in a function?
Prints output
Imports libraries
Outputs value
Creates a variable
3
Which symbol is used for comments?
Empty choice
//
/*
#
4
What does 'len()' function do?
Prints value
Creates a list
Returns length
Defines a variable
5
Which of these is a Python data type?
Object
Node
String
Element
6
What does 'append()' do?
Removes from list
Adds to list
Creates a variable
Prints output
7
Which of these is a conditional statement?
print
loop
define
if
8
What does 'break' do in a loop?
Continues the loop
Prints a value
Exits the loop
Starts a new loop
9
What is Python primarily used for
Gardening tips
Web development
Cooking recipes
Graphic design
10
Which operator is used for exponentiation?
**
//
%%
^
11
Which of these is a loop in Python?
each
for
repeat
until
12
True or false: Python is case-sensitive.
False
True
13
Which function converts to string?
string()
str()
convert()
toString()
14
What does 'import' do in Python?
Defines a variable
Brings in libraries
Creates a function
Prints output
15
Which keyword defines a function?
func
define
function
def
16
What is a list in Python?
Ordered collection
Function output
Random data
Single value
17
What is a tuple?
Random data
Immutable list
Function output
Mutable list
18
What is a dictionary in Python?
Single value
Key-value pairs
Function output
Ordered list
19
What does 'print()' do?
Imports libraries
Saves to file
Creates a variable
Displays output