stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
Python Basics Intro Questions Flashcards | StudBud
Explore
/
Python Basics Intro Questions
Python Basics Intro Questions
12 terms
·
StudBud Administration
·
13 plays
Test your knowledge on fundamental concepts and data types in Python programming
Flashcards
12 cards
F
Practice quiz
P
Host live
L
Questions
12
Answers
1
What keyword defines a function in Python?
func
define
function
def
2
What does 'elif' stand for in Python?
Else function
Else loop
Else if
Else condition
3
What is the purpose of functions?
Store data
Reuse code
Control flow
Display text
4
Which data type is 'True' in Python?
Integer
Float
String
Boolean
5
Which statement checks conditions in Python?
while
if
loop
for
6
Which data type is used for whole numbers?
Boolean
Float
String
Integer
7
True or false: Lists store multiple items
True
False
8
Which data type is used for text?
String
Integer
Float
Boolean
9
Which statement is used for loops?
else
if
elif
for
10
What data type is '42' in Python?
Boolean (because it is True or False)
String (because of quotation marks)
Integer (its a whole number)
Float (its a number)
11
Which data type is used for decimals?
String
Boolean
Integer
Float
12
What is the output of print('Hello, World!')?
Hello World
World, Hello!
Hello, World!
Hello!