1/19
Name | Mastery | Learn | Test | Matching | Spaced |
---|
No study sessions yet.
What does a declaration always provide for a variable? (2.1)
A name, a data type, and a value.
A variable’s data type describes all the following except ___. (2.1)
the scope of the variable
The value stored in an uninitialized variable is ____. (2.1)
garbage
The value 3 is a ___. (2.1)
numeric constant
The assignment operator ___. (2.1)
is a binary operator.
Multiplication has a lower precedence than ___. (2.2)
parentheses
Which of the following is not a term used as a synonym for module? (2.3)
object
Modularization ___. (2.3)
facilitates reusability
What is the name for the process of paying attention to important properties while ignoring nonessential details? (2.3)
abstraction
Every module has all of the following except ___. (2.4)
local variables
Programmers say that one module can ___ another, meaning that the first module causes the second module to execute. (2.3)
call
The more that a module’s statements contribute to the same job, the greater the ___ of the module. (2.4)
function cohesion
In most modern programming languages, a variable or constant that is declared in a module is ____ in that module. (2.4)
global
Which of the following is not a typical housekeeping task? (2.4)
printing summaries
Which module in a typical program will execute the most times? (2.4)
the detail loop
A hierarchy chart tells you ___. (2.4)
which modules call other modules
What are nonexecuting statements that programmers place within code to explain program statements in English?
comments
Program comments are ___. (2.5)
neither required in a program nor a form of external documentation.
Which of the following is valid advice for naming variables? (2.5)
To make names easier to read, separate long names by underscores or capitalization for each new word.
A message that asks a user for inputs is a(n) ___.
prompt