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 12 pages
Exam (elaborations)

Programming Logic and Design Mid-Term Review Exam Questions with Correct Answers

Document preview thumbnail
Preview 2 out of 12 pages

Programming Logic and Design Mid-Term Review Exam Questions with Correct Answers

Content preview

Programming Logic and Design Mid-
Term Review Exam Questions with
Correct Answers

The amount by which a for loop control variable changes is often called a ____
value.

a. group
b. key
c. step
d. sentinel - ANSWER-c. step

Named ____ hold values that do not change during a program's execution.

a. constants
b. variables
c. objects
d. items - ANSWER-a. constants

One advantage to using a named constant is that the statement becomes ____.

a. self-perpetuating
b. self-documenting
c. self-referencing
d. self-mitigating - ANSWER-b. self-documenting

The action or actions that occur within a loop are known as a(n) ____.

a. loop body
b. action body
c. loop internals
d. structure body - ANSWER-a. loop body

Programmers use the term ____ to describe programs that are well designed and
easy to understand and maintain.

a. industrial
b. intractable
c. well behaved
d. elegant - ANSWER-d. elegant

A ____ error results when you use a syntactically correct statement but use the
wrong one for the current context.

a. syntax

, b. logical
c. semantic
d. programming - ANSWER-b. logical

Because they enable you to locate a particular record directly (without reading all of
the preceding records), random
access files are also called ____ files.

a. direct access
b. indirect access
c. sequential access
d. pointed access - ANSWER-a. direct access

With a(n) ____, you perform an action or task, and then you perform the next action,
in order.

a. ordered structure
b. sequence problem
c. sequence structure
d. loop sequence - ANSWER-c. sequence structure

Programmers employ the acronym ____ to mean that if your input is incorrect, your
output is worthless.

a. IBOW
b. GIGO
c. IIOW
d. GIGS - ANSWER-b. GIGO

A loop within another loop is known as a(n) ____ loop.

a. indefinite
b. infinite
c. nested
d. hidden - ANSWER-c. nested

Usually, ____ variables are not considered to be equal unless they are identical.

a. string
b. integer
c. character
d. floating point - ANSWER-a. string

You can perform a ____ by making comparisons using either the lowest or highest
value in a range of values.

a. range check
b. nested if
c. logic check
d. trivial expression - ANSWER-a. range check

Document information

Uploaded on
March 22, 2025
Number of pages
12
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