stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
Python Programming Basics Flashcards | StudBud
Explore
/
Python Programming Basics
Python Programming Basics
10 terms
·
StudBud Administration
Test your knowledge on fundamental concepts of Python programming language with these quiz questions
Flashcards
10 cards
F
Practice quiz
P
Host live
L
Questions
10
Answers
1
Which logical operator returns True if either condition is True?
is
or
not
and
2
Which of the following is a comparison operator?
>=
+
or
is not
3
Which operator checks if two variables are the exact same object?
==
or
!=
is
4
Which of the following would return True?
3 == 4
10 <= 10
5 != 5
'hello' == 'Hello'
5
How do you access the first item in a Python list?
list.first()
list(0)
list[0]
list{0}
6
What are the only two Boolean values in Python?
On and Off
0 and 1
True and False
Yes and No
7
What does the 'not' operator do?
Checks identity
Adds numbers
Compares strings
Returns the opposite boolean
8
What will this code print? a = 3; b = 3; print(a is b)
Error
None
True
False
9
What does the expression 5 > 3 and 2 < 1 return?
None
True
False
Error
10
Which data type is used to store an ordered, changeable collection?
string
tuple
set
list