solutions7
What is the informal language that programmers use to create models of programs that have no
syntax rules and are not meant to be compiled or executed? - ANSWERS-pseudocode
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. - ANSWERS-input
The line continuation character is a _____. - ANSWERS-\
A(n) _______________ is a name that represents a value stored in the computer's memory. -
ANSWERS-variable
A(n) _____ structure is a logical design that controls the order in which a set of statements
execute. - ANSWERS-control
When using the _____ operator, one or both subexpressions must be true for the compound
expression to be true. - ANSWERS-Or
Boolean variable can reference one of two values: _____. - ANSWERS-true or false
True/False: Python allows you to compare strings, but it is not case sensitive. - ANSWERS-False
True/False: Expressions that are tested by the if statement are called Boolean expressions. -
ANSWERS-True
, A(n) _______________ statement will execute one block of statements if its condition is true, or
another block if its condition is false. - ANSWERS-if/else
Python provides a special version of a decision structure known as the _______________
statement, which makes the logic of the nested decision structure simpler to write - ANSWERS-if
elif else
algorithm - ANSWERS-A set of specific steps for solving a category of problems
comment - ANSWERS-Text in a program that is meant for other programmers (or anyone
reading the source code) and has no effect on the execution of the program
high-level language - ANSWERS-A programming language like Python that is designed to be easy
for humans to read and write.
print - ANSWERS-A function used in a program or script that causes the Python interpreter to
display a value on its output device.
runtime error - ANSWERS-An error that does not occur until the program has started to execute
but that prevents the program from continuing.
semantic error - ANSWERS-An error in a program that makes it do something other than what
the programmer intended.
semantic - ANSWERS-the meaning of a program
syntax - ANSWERS-The structure of a program