stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
Python Programming Basics Flashcards | StudBud
Explore
/
Python Programming Basics
Python Programming Basics
13 terms
·
StudBud Administration
·
62 plays
Test your knowledge on fundamental concepts and syntax of Python programming
Flashcards
13 cards
F
Practice quiz
P
Host live
L
Questions
13
Answers
1
What does the 'append()' method do?
Removes an item
Clears the list
Adds an item
Sorts the list
2
What does the modulus operator (%) do?
Returns product
Returns sum
Returns remainder
Returns quotient
3
What is the output of 'print(3 in [1,2,3])'?
False
3
True
Error
4
Which operator checks for equality?
==
!=
>
=
5
Which data type represents whole numbers?
Boolean
Float
Integer
String
6
What is the purpose of a tuple?
Ordered and immutable
Key-value pairs
Mutable collection
Unordered collection
7
How do you create a variable in Python?
Using ; sign
Using + sign
Using = sign
Using : sign
8
What does the 'in' keyword check for?
Function definition
Value existence
Data type
Variable assignment
9
What signifies a string in Python?
Brackets
Quotation marks
Curly braces
Parentheses
10
What does the 'not' operator do?
Checks equality
Adds numbers
Compares values
Inverts truth value
11
What is the purpose of variables in Python?
Delete data
Encrypt data
Display data
Store data
12
What is a dictionary in Python?
Mutable collection
Ordered collection
Immutable collection
Unordered collection
13
What is a list in Python?
Unordered collection
Immutable collection
Key-value pairs
Ordered collection