stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
Python ETA Review Flashcards | StudBud
Explore
/
Python ETA Review
Python ETA Review
46 terms
·
StudBud Administration
·
22 plays
A #python review of basics
Flashcards
46 cards
F
Practice quiz
P
Host live
L
Questions
46
Answers
1
Select the variable below that is of the float data type.
25.624
12
False
Snakes bite!
2
What doe the following code output?
4
10
14
Error
3
What does the word syntax mean?
It is a tax the teacher charges every student who curses.
it has no meaning as it relates to computer science.
Syntax is another word for "code."
It is a foreign language.
4
What doe the following code output?
False
0
True
1
5
What will be the highest number stored in this list?
9
10
11
8888
6
What is the file extension for a Python file?
.python
.java
.py
.doc
7
What is the output of the following code?
4
2
3
1
8
What doe the following code output?
True
False
8
5
9
What is in values2[3]?
11
3
5
7
10
What data type am I printing here? "001001"
string
boolean
int
floating point
11
IDE is sort for which of the following?
Integrated Development Environment
Integrated Development Environment but Python uses IDLE.
Investor Dynamic Environment
Initiation Developer Envoy
12
What doe the following code output?
4
3
6
2
13
The following Python code is an example of what? #variable
It is a string data type.
It is an int data type.
It is a Python comment.
It is a variable.
14
What will the following code output?
1
2
['tom', 'jerry']
3
15
What is the output of this expression? 3*1**3
3
1
27
9
16
Which is the correct operator for power(x^y)?
x^y
These answers are all wrong.
x^^y
x**y
17
What doe the following code output?
0
True
1
False
18
What operators cannot be used with strings?
None of these can be used.
+
-
*
19
What does the following code output?
hihihi
hihihihihi
5
hi
20
What doe the following code output?
3
10
7
8
21
Which variable name below is BAD in Python?
name_last
name
name-last
nameLast
22
What doe the following code output?
4
True
1
0
23
What is Python's order of precedence?
exponents, divide, multiply, add, subtract, parenthesis
parentheses, exponents, divide, multiply, add, subtract
exponents, parentheses, add, subtract, divide, multiply
divide, multiply, parentheses, exponent, add, subtract
24
In Python, what is turtle?
Special package of code to create new shell windows.
It's a package of code that allows you to draw.
It's a special function.
None of these is correct.
25
What is a datatype?
It is a character in Star Trek The Next Generation.
It is a conundrum.
It is a record in a database.
It is an information type.
26
What doe the following code output?
25
100
75
5
27
What does the following code output?
10
15
5
3
28
Select the data types we have studied so far.
string, shell, and terminal
shell, integer, and string
integer, boolean, and string
integer, floating point, and shell
29
What does the following code output?
6
17
18
19
30
Why do programmers leave comments in code?
To give extra info to Py interpreter to help process code.
None of the other answers are correct.
To leave jokes behind to entertain programmers.
To provide information to programmers about the code.
31
Mathematical operations can be performed on a string.
False
True
32
What doe the following code output?
18
19
20
17
33
The expression int(x) implies that the variable x is converted to an integer.
True
False
34
What does the following code output?
bob
True
False
Chicken
35
Python is case sensitive.
True
False
36
What does this function output?
That is my favorite number!
Peaches
You lose.
You are a winner!
37
What doe the following code output?
5
3
0
6
38
What's the highest number stored in this list?
17
16
15
8888
39
Which of the following would be a proper variable name using camel case?
motherAge
booMotherAge
Mother_Age
MotherAge
40
What is the output of the code snippet shown below? x = "hi" print("05d" % x)
0000hi
000hi
error
hi000
41
What is the output when the following statement is executed? >> "a" + "bc"
abc
bc
bca
a
42
What doe the following code output?
0
True
False
1
43
What doe the following code output?
15
3
12
4
44
How many items will be in this list?
27
8
2
infinite
45
What is the answer to this expression: 22% is 3
1
7
5
0
46
What does this function output?
You lose.
Peaches
That is my favorite number!
You are a winner!