ALL COMBINED STUDY
GUIDE/ACTUAL EXAMS REVIEW
COMPLETE QUESTIONS AND
CORRECT VERIFIED
SOLUTIONS||A+ GRADED!!!
1. What is the informal language, used by programmers to create
models of programs, that has no syntax rules and is not meant to
be compiled or executed? - ANSWER ✓ pseudocode
2. A(n) ___ is a diagram that graphically depicts the steps that take
place in a program? - ANSWER ✓ flowchart
3. The ____ built-in function is used to read a number that has been
typed on the keyboard. - ANSWER ✓ input ( )
4. What symbol is used to mark the beginning and end of a string? -
ANSWER ✓ a quote mark ("")
5. 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. -
ANSWER ✓ end
6. To use Python's turtle graphics, you must include which of the
following statements in your program? - ANSWER ✓ import turtle
, 7. What is the output of the following print statement?
print 'I\'m ready to begin' - ANSWER ✓ I'm ready to begin
8. After the execution of the following statement, the variable sold
will reference the numeric literal value as (n) ____ data type.
sold = 256.752 - ANSWER ✓ float
9. The line continuation character is a - ANSWER ✓ \
10. The python turtle is initially positioned in the ___ of a
graphics window and it first appears, by default, to be heading
___ - ANSWER ✓ center, east
11. What is the output of the following command, given that
value1 = 2.0 and value2 = 12
print (value1 * value2) - ANSWER ✓ 24.0
12. Which of the following will display 20% - ANSWER ✓
print(format(0.2 , '.0%)) <enter>
13. 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. - ANSWER ✓ input ( )
14. What is the output of the following print statement?
print('The path is D:\\sample\\test.') - ANSWER ✓ The path is
D:\sample\test.
15. Which mathematical operator is used to raise 5 to the
second power in Python? - ANSWER ✓ **