INTRODUCTION TO PYTHON FINAL TEST EXAM 2025
ACTUAL EXAM COMPLETE EXAM QUESTIONS WITH
DETAILED VERIFIED ANSWERS (100% CORRECT
ANSWERS) /ALREADY GRADED A+/ LATEST EXAM!!!
What is the decimal value of the following binary number?
10011101
a) 157
b) 156
c) 8
d) 28 - Answer-a) 157
What is the largest value that can be stored in one byte?
a) 255
b) 8
c) 65535
d) 128 - Answer-a) 255
,2|Page
The ________ function reads a piece of data that has
been entered at the keyboard and returns that piece of
data, as a string, back to the program.
a) output ()
b) eval_input ()
c) input ()
d) str_input () - Answer-c) input ()
After the execution of the following statement, the variable
sold will reference the numeric literal value as (n)
________ data type. sold = 256.752
a) float
b) currency
c) str
d) int - Answer-a) float
After the execution of the following statement, the variable
price will reference the value ________. price =
int(68.549)
,3|Page
a) 68.6
b) 69
c) 68
d) 68.55 - Answer-c) 68
What is the output of the following print statement? print
'I\'m ready to begin'
a) I\'m ready to begin
b) 'I\'m ready to begin'
c) Im ready to begin
d) I'm ready to begin - Answer-d) I'm ready to begin
Which of the following will display 20%?
a) print(format(0.2, '.0%'))
b) print(format(0.2, '%'))
c) print(format(0.2 * 100, '.0%'))
d) print(format(20, '.0%')) - Answer-a) print(format(0.2,
'.0%'))
, 4|Page
What symbol is used to mark the beginning and end of a
string?
a) a quote mark (")
b) an asterisk (*)
c) a comma (,)
d) a slash (/) - Answer-a) a quote mark (")
Select all that apply. Which of the following are steps in the
program development cycle?
a) correct logic errors
b) design the program
c) write the code and correct syntax errors
d) test the program - Answer-a,b,c,d
Select all that apply. Assume you are writing a program
that calculates a user's total order cost that includes sales
tax of 6.5%. Which of the following are advantages of
using a named constant to represent the sales tax instead
of simply entering 0.065 each time the tax is required in
the code?