- | P a g e
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
- 157
- 156
- 8
- 28 - Answer-a) 157
What is the largest value that can be stored in one byte?
- 255
- 8
- 65535
- 128 - Answer-a) 255
- / 4
- | P a g e
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.
- output ()
- eval_input ()
- input ()
- 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
- float
- currency
- str
- int - Answer-a) float
After the execution of the following statement, the variable price will reference the value ________. price = int(68.549)
- / 4
- | P a g e
- 68.6
- 69
- 68
- 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
- '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%?
- print(format(0.2, '.0%'))
- print(format(0.2, '%'))
- print(format(0.2 * 100, '.0%'))
- print(format(20, '.0%')) - Answer-a) print(format(0.2,
'.0%'))
- / 4
- | P a g e
What symbol is used to mark the beginning and end of a string?
- a quote mark (")
- an asterisk (*)
- a comma (,)
- a slash (/) - Answer-a) a quote mark (")
Select all that apply. Which of the following are steps in the program development cycle?
- correct logic errors
- design the program
- write the code and correct syntax errors
- 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?
- / 4