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 1 out of 3 pages
Exam (elaborations)

Programming Logic and Design Chapter 1 Key Terms Questions and Answers

Document preview thumbnail
Preview 1 out of 3 pages

Programming Logic and Design Chapter 1 Key Terms Questions and Answers

Content preview

Programming Logic and Design
Chapter 1 Key Terms Questions and
Answers

exception - ANSWER-a problem or change in conditions that causes the
microprocessor to stop what it is doing and handle the situation in a separate routine.
An exception is similar to an interrupt; both refer the microprocessor to a separate
set of instructions.

expression - ANSWER-a combination of symbols—identifiers, values, and operators
—that yields a result upon evaluation. The resulting value can then be assigned to a
variable, passed as an argument, tested in a control statement, or used in another
expression.

flowchart - ANSWER-a graphic map of the path of control or data through the
operations in a program or an information-handling system.

for loop - ANSWER-Combines the three elements of iteration—the initialization
expression, the termination condition expression, and the counting expression—into
more readable code.

foreach loop - ANSWER-Useful for iterating through the elements of a collection.

garbage collection - ANSWER-a process for automatic recovery of heap memory.

heap - ANSWER-a portion of memory reserved for a program to use for the
temporary storage of data structures whose existence or size cannot be determined
until the program is running. To build and use such elements, programming
languages such as C and Pascal include functions and procedures for requesting
free memory from the heap, accessing it, and freeing it when it is no longer needed.
In contrast to stack memory, heap memory blocks are not freed in the reverse order
in which they were allocated, so free blocks maybe interspersed with blocks that are
in use. As the program continues running, the blocks may have to be moved around
so that small free blocks can be merged together to form larger ones to meet the
program's needs.

if - ANSWER-A statement that executes a given sequence of statements only if the
corresponding Boolean expression evaluates to true.

if-else - ANSWER-A statement that allows your program to perform one action if the
Boolean expression evaluates to true and a different action if the Boolean expression
evaluates to false.

iterate - ANSWER-to execute one statements or a block of statements repeatedly.
Statements so executed are said to be in a loop.

Document information

Uploaded on
March 22, 2025
Number of pages
3
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers
$13.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