stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
Python Quiz Flashcards | StudBud
Explore
/
Python Quiz
Python Quiz
17 terms
·
StudBud Administration
Test your knowledge on Python programming with this engaging quiz
Flashcards
17 cards
F
Practice quiz
P
Host live
L
Questions
17
Answers
1
What is the purpose of 'self' in Python?
To refer to class instance
To import modules
To define a variable
To create a function
2
True or false: Python supports multiple programming paradigms.
False
True
3
What does 'len()' function do?
Defines a function
Imports a module
Creates a list
Counts characters
4
True or false: Python is case-sensitive.
False
True
5
What data type is used for true/false in Python?
float
bool
str
int
6
True or false: Python can be used for web scraping.
False
True
7
Which operator is used for exponentiation?
%%
//
**
^
8
What is the correct way to create a list?
()
Empty choice
{}
[]
9
Which function is used to get user input?
input()
scan()
read()
get()
10
Which symbol is used for comments in Python?
**
/*
//
#
11
True or false: Python uses indentation to define blocks of code.
False
True
12
True or false: Python is a snake species.
True
False
13
What is the output of print(2 * 3)?
3
6
8
5
14
Which keyword starts a function in Python?
start
def
function
func
15
True or false: Python can only run on Windows.
True
False
16
Which of these is a Python library?
Pandas
HTML
CSS
Java
17
What is Python primarily used for?
Data analysis
Game design
Web development
Graphic design