Chapter 2 Quiz
Which mathematical operator is used to raise 5 to the second power in Python?
**
After the execution of the following statement, the variable price will reference the value ________.price = int(68.549)
68
What is the output of the following print statement? print 'I\'m ready to begin'
I'm ready to begin
The line continuation character is a
\
What symbol is used to mark the beginning and end of a string?
a quote mark (")
The Python turtle is initially positioned in the ________ of a graphics window and it first appears, by default, to be heading ________.
center, east
In a print statement, you can set the ________ argument to a space or empty string to stop the output from advancing to a new line.
end
After the execution of the following statement, the variable sold will reference the numeric literal value as (n) ________ data type.sold = 256.752
float
Which of the following will display 20%?
print(format(0.2, '.0%'))
What is the informal language, used by programmers use to create models of programs, that has no syntax rules and is not meant to be compiled or executed?
pseudocode