Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Document preview thumbnail
Preview 2 out of 10 pages
Exam (elaborations)

Programming Logic and Design (Chapter I-V Review) Questions with Complete Answers

Document preview thumbnail
Preview 2 out of 10 pages

Programming Logic and Design (Chapter I-V Review) Questions with Complete Answers

Content preview

Programming Logic and Design
(Chapter I-V Review) Questions with
Complete Answers

The value stored in an uninitialized variable is - ANSWER-garbage

The value 3 is an example of - ANSWER-a numeric constant

The assignment operator - ANSWER-is a binary operator

Multiplication has a lower precedence than - ANSWER-parantheses

Which of the following is not a term used as a synonym for module? - ANSWER-
object

This facilitates reusability - ANSWER-Modularization

What is the name for the process of paying attention to important properties while
ignoring nonessential details? - ANSWER-abstraction

Every module has all of the following except - ANSWER-local variables

Programmers say that one module can _______________ another, meaning that the
first module causes the second module to execute. - ANSWER-call

The more that a module's statements contribute to the same job, the greater the
_______________ of the module - ANSWER-functional cohesion

In most modern programming languages, a variable or constant that is declared in a
module is _______________ in that module - ANSWER-in scope

Which of the following is not a typical housekeeping task? - ANSWER-printing
summaries

Which module in a typical program will execute the most times? - ANSWER-the
detailed loop

A hierarchy chart tells you - ANSWER-which modules call other modules

What are nonexecuting statements that programmers place within code to explain
program statements in English? - ANSWER-comments

Program comments are - ANSWER-neither required in a program nor a form of
external documentation

, Which of the following is valid advice for naming variables? - ANSWER-To make
names easier to read, separate long names by using underscores or capitalization
for each new word.

A message that asks a user for input is a(n) - ANSWER-prompt

Snarled program logic is called _______________ code. - ANSWER-spaghetti

The three structures of structured programming are - ANSWER-sequence, selection,
and loop

A sequence structure can contain how many tasks? - ANSWER-any number of tasks

Which of the following is not another term for a selection structure? - ANSWER-loop
structure

A _______________ expression has one of two values, often expressed as true or
false. - ANSWER-Boolean

Placing a structure within another structure is called _______________ structures. -
ANSWER-nesting

Attaching structures end to end is called _______________ - ANSWER-stacking

When an action is required if a condition is true, but no action is needed if it is false,
you use a _______________. - ANSWER-single-alternative selection

To take action repeatedly as long as a condition remains true, you use a
_______________. - ANSWER-loop

When you must perform one action when a condition is true and a different one
when it is false, and then the program continues, you use a _______________. -
ANSWER-dual-alternative selection

What attributes do all three basic structures share? - ANSWER-They all have one
entry and one exit point

What is true of stacking structures? - ANSWER-Each structure has only one point
where it can be stacked on top of another.

When you input data in a loop within a program, the input statement that precedes
the loop _______________. - ANSWER-is called a priming input

A group of statements that executes as a unit is a _______________. - ANSWER-
block

Placing a decision within a loop is _______________ - ANSWER-an acceptable
structured programming technique

Document information

Uploaded on
March 22, 2025
Number of pages
10
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers
$15.99

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
lectknancy
3.8
(80)
Sold
327
Followers
27
Items
26139
Last sold
4 days ago



Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions