Chapter 2 Review

Your page rank:

Total word count: 733
Pages: 3

Calculate the Price

- -
275 words
Looking for Expert Opinion?
Let us have a look at your work and suggest how to improve it!
Get a Consultant

A variable can hold more than one value at any given time. (T/F)


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)


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)


Variable names can be more than on word with blanks between the words. (T/F)


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)


A string variable can hold digits such as phone numbers and zip codes. (T/F)


Programmers generally write programs as one long series of steps. (T/F)


Modularization makes it harder for multiple programmers to work on a problem. (T/F)


Program comments are a type of internal documentation. (T/F)


Most modern programming languages require that program statements be placed in specific columns. (T/F)


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


Fractional numeric variables that contain a decimal point are known as _____________________ variables. ** Partial, String, Integer, Floating-point


In most programming languages, before you can use any variable, you must include a _______ for it. ** Declaration, definition, header, or proclamation


The process of naming program variables and assigning a type to them is called ________ variables. ** Initializing, declaring, identifying, or proclaiming


A variable’s unknown value is commonly called _________. ** Initial, default, deterministically random, garbage


Declaring a starting value for a variable is known as ______________ the variable. ** Initializing, declaring, defining, or identifying


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


_________ is the process of paying attention to important properties while ignoring nonessential details. ** Abstraction, modularization, abbreviation, or decomposition


Programmers say the statements that are contained in a module have been _______ . ** Embedded, decomposed, encapsulated, or modularized


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


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.


As programs become larger and more complicated, the need for good planning and design _____________. ** Decreases, is inefficient, is not necessary, or 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


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


Share This

More flashcards like this

NCLEX 10000 Integumentary Disorders

When assessing a client with partial-thickness burns over 60% of the body, which finding should the nurse report immediately? a) ...

Read more


A client with amyotrophic lateral sclerosis (ALS) tells the nurse, "Sometimes I feel so frustrated. I can’t do anything without ...

Read more

NASM Flashcards

Which of the following is the process of getting oxygen from the environment to the tissues of the body? Diffusion ...

Read more

Unfinished tasks keep piling up?

Let us complete them for you. Quickly and professionally.

Check Price

Successful message