Mid-Term Python Exam With
complete verified solutions
already graded A+
False - answer True or False: Computer science is the study of computers
CPU - answer The "brain" of the computer is the
RAM (Random Access Memory) - answer Main memory is also called
main memory - answer All information that a computer is currently working on is
stored in
Syntax - answer _______ of a language is its form
Semantics - answer _______ of a language is its meaning
Compiler - answer A complex computer program that takes another program written
in a high-level language and translates it into an equivalent program in the machine
language of some computer
Interpreter - answer A program that simulates a computer that understands a high-
level language which analyzes and executes the source code instruction by
instruction as necessary
Function - answer A ________ definition is a sequence of statements that defines a
new command
Programming environment - answer A special computer program that provides
facilities to make programming easier
,variable - answer An identifier that labels a value for future reference
loop - answer a control construct for executing portions of a program multiple times
False - answer True or False: A chaotic function can't be computed by a computer
What can be computed? - answer The fundamental question of computer science is
recipe - answer An algorithm is like a
It's not practical to solve - answer A problem is intractable when
high-level computer languages - answer Computer languages designed to be used
and understood by humans
a complete computer command - answer A statement is
compiler - answer used to translate high-level language into machine language
main - answer by convention, the statements of a program are often placed in a
function called
comments - answer Are intended for human readers, ignored by Python, and begin
with a # sign
parameters - answer The items listed in the parentheses of a function definition are
called
False - answer The best way to write a program is to immediately type in some code
and then debug it until it works
, True - answer An algorithm can be written without using a programming language
False - answer Programs no longer require modification after they are written and
debugged
True - answer Python identifiers must start with a letter or underscore
False - answer keywords make good variable names
True - answer expressions are built from literals, variables, and operators
True - answer in Python, x = x + 1 is a legal statement
False - answer Python does not allow the input of multiple values with a single
statement
True - answer A counted loop is designed to iterate a specific number of times
False - answer In a flowchart, diamonds are used to show statements, and
rectangles are used for decision points
Specification, Testing/Debugging, and Maintenance - answer What are the steps in
the software development process?
F = 9/5(C) + 32 - answer Formula for converting Celsius into Fahrenheit
specification - answer The process of describing exactly what a computer program
will do to solve a problem is called
number - answer Legal Identifiers cannot start with a
complete verified solutions
already graded A+
False - answer True or False: Computer science is the study of computers
CPU - answer The "brain" of the computer is the
RAM (Random Access Memory) - answer Main memory is also called
main memory - answer All information that a computer is currently working on is
stored in
Syntax - answer _______ of a language is its form
Semantics - answer _______ of a language is its meaning
Compiler - answer A complex computer program that takes another program written
in a high-level language and translates it into an equivalent program in the machine
language of some computer
Interpreter - answer A program that simulates a computer that understands a high-
level language which analyzes and executes the source code instruction by
instruction as necessary
Function - answer A ________ definition is a sequence of statements that defines a
new command
Programming environment - answer A special computer program that provides
facilities to make programming easier
,variable - answer An identifier that labels a value for future reference
loop - answer a control construct for executing portions of a program multiple times
False - answer True or False: A chaotic function can't be computed by a computer
What can be computed? - answer The fundamental question of computer science is
recipe - answer An algorithm is like a
It's not practical to solve - answer A problem is intractable when
high-level computer languages - answer Computer languages designed to be used
and understood by humans
a complete computer command - answer A statement is
compiler - answer used to translate high-level language into machine language
main - answer by convention, the statements of a program are often placed in a
function called
comments - answer Are intended for human readers, ignored by Python, and begin
with a # sign
parameters - answer The items listed in the parentheses of a function definition are
called
False - answer The best way to write a program is to immediately type in some code
and then debug it until it works
, True - answer An algorithm can be written without using a programming language
False - answer Programs no longer require modification after they are written and
debugged
True - answer Python identifiers must start with a letter or underscore
False - answer keywords make good variable names
True - answer expressions are built from literals, variables, and operators
True - answer in Python, x = x + 1 is a legal statement
False - answer Python does not allow the input of multiple values with a single
statement
True - answer A counted loop is designed to iterate a specific number of times
False - answer In a flowchart, diamonds are used to show statements, and
rectangles are used for decision points
Specification, Testing/Debugging, and Maintenance - answer What are the steps in
the software development process?
F = 9/5(C) + 32 - answer Formula for converting Celsius into Fahrenheit
specification - answer The process of describing exactly what a computer program
will do to solve a problem is called
number - answer Legal Identifiers cannot start with a