A variable can hold more than one value at any given time. (T/F) |
False |
Because one memory location can be used repeatedly with different values, you can write program instructions once and then use them for thousands of separate calculations. (T/F) |
True |
In many programming languages, if you declare a variable and do not initialize it, the variable contains an unknown value until it is assigned a value. (T/F) |
True |
Variable names can be more than on word with blanks between the words. (T/F) |
False |
The assignment operator has left-to-right-to-left associativity, which means that the value of the expression to the left of the assignment operator is evaluated first and the result is assigned to the operand on the right. (T/F) |
False |
A string variable can hold digits such as phone numbers and zip codes. (T/F) |
True |
Programmers generally write programs as one long series of steps. (T/F) |
False |
Modularization makes it harder for multiple programmers to work on a problem. (T/F) |
False |
Program comments are a type of internal documentation. (T/F) |
True |
Most modern programming languages require that program statements be placed in specific columns. (T/F) |
False |
When you write programs, you work with data in three different forms: ____________. |
Variables; Literals, or Unnamed constants, and named constants. |
A specific numeric value is often called a(n) _________ constant. ** Named, defined, arithmetic, or nummeric |
Numeric |
Fractional numeric variables that contain a decimal point are known as _____________________ variables. ** Partial, String, Integer, Floating-point |
Floating-point |
In most programming languages, before you can use any variable, you must include a _______ for it. ** Declaration, definition, header, or proclamation |
Declaration |
The process of naming program variables and assigning a type to them is called ________ variables. ** Initializing, declaring, identifying, or proclaiming |
Declaring |
A variable’s unknown value is commonly called _________. ** Initial, default, deterministically random, garbage |
Garage |
Declaring a starting value for a variable is known as ______________ the variable. ** Initializing, declaring, defining, or identifying |
Initializing |
When the variable starts with a lowercase letter and any subsequent word begins with an uppercase letter, this is called ______________. ** Hungarian notation, Pascal casing, camel Casing, or Turing notation |
camel Casing |
When the first letter of a variable in uppercase, as in HourlyWage, the format is known as _______________________ casing. ** Hungarian notation, Pascal casing, camel Casing, or Turing notation |
Pascal Casing |
___________ is where a variable’s data type or other information is stored as part of the name. ** Hungarian notation, Pascal casing, camel Casing, or Turing notation |
Hungarian notation |
The assignment operator is the _______ sign. *, +, =, / |
= |
A(n) ______ is similar to a variable, except it can be assigned a value only once. ** Unnamed constant, literal, named constant, or constant |
Named constant |
The ______ dictate the order in which operations in the same statement are carried out. |
Rules of Precedence |
Depending on the programming language being used, modules are also known as _____ . |
Subroutines, procedures, or methods |
The process of breaking down a large program into modules is called ___________. ** Decomposition, modularization, unification, orientation |
Modularization |
_________ is the process of paying attention to important properties while ignoring nonessential details. ** Abstraction, modularization, abbreviation, or decomposition |
Abstraction |
Programmers say the statements that are contained in a module have been _______ . ** Embedded, decomposed, encapsulated, or modularized |
Encapsulated |
Programmers say that the variables and constants declared within a module are _________________ only within that module. ** Abstracted, out of scope, in scope, or in refrence |
In scope |
_________ variables and constants are known to the entire program. ** Local, Transient, Heap, Global |
Global |
The mainline logic of almost every procedural computer program consists of these three distinct parts: _______. |
Housekeeping tasks, detail loop tasks, and end-of-job tasks |
When a program has several modules calling other modules, programmers often use a program _____________, which operates similarly to an organizational chart, to show the overall picture of how modules are related to one another. ** Hierarchy chart, tree chart, flowchart, data diagram. |
Hierarchy |
As programs become larger and more complicated, the need for good planning and design _____________. ** Decreases, is inefficient, is not necessary, or increases. |
Increases |
A(n) ______________ symbol is most often represented by a three-sided box that is connected to the steps it references by a dashed line. ** Abstraction, annotation, abbreviation, enumeration |
Annotation |
Programmers refer to programs that contain meaningful names as __________. ** Undocumented, procedurally documented, formally documented, self-documenting |
Self documenting |
A ______ variable is not used for input or output, but instead is just a working variable that you use during a program’s execution. **Programming, throw away, temporary, calculating |
Temporary |
Chapter 2 Review
Share This
Unfinished tasks keep piling up?
Let us complete them for you. Quickly and professionally.
Check Price