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

logical operator Treats operands as being true or false, and evaluates to true or false. Logical operators include and, or, not. Epsilon The difference threshold indicating that floating-point numbers are equal. 0.0001 is common. loop a programming con

Document preview thumbnail
Preview 2 out of 8 pages

logical operator Treats operands as being true or false, and evaluates to true or false. Logical operators include and, or, not. Epsilon The difference threshold indicating that floating-point numbers are equal. 0.0001 is common. loop a programming construct that repeats a group of commands (loop body). Each time through a loop is an iteration. sentinel value a special (pre-selected) value indicating the end of a list, such as a list of positive integers ending with 0, as in 10 1 6 3 0. loop expression The expression checked for whether to enter the

Content preview

logical operator Treats operands as being true or false, and evaluates to true or
false. Logical operators include and, or, not. Epsilon The difference threshold
indicating that floating-point numbers are equal. 0.0001 is common. loop a
programming construct that repeats a group of commands (loop body). Each
time through a loop is an iteration. sentinel value a special (pre-selected) value
indicating the end of a list, such as a list of positive integers ending with 0, as in
10 1 6 3 0. loop expression The expression checked for whether to enter the



Q: while loop a loop that repeatedly executes the loop body while the loop's
expression

Answer:
for loop a loop consisting of a loop variable initialization, a loop expression, and a
loop
variable update that typically describes iterating for a specific number of times.
Three parts: a
loop variable initialization, a loop expression, and a loop variable update.
do-while loop a loop that first executes the loop body's statements, then checks the
loop
condition. Compared to a while loop, a do-while loop is useful when the loop should
iterate at
least once.
function a named list of statements
function definition consists of the new function's name and a block of statements.
The
function's name can be any valid identifier.

, Q: parameter a function input specified in a function definition. Ex: A pizza area
function might

Answer:
have diameter as an input.
A parameter is like a variable declaration. Upon a call, the parameter's memory
location is
allocated, and the parameter is assigned with the argument's value. Upon return, the
parameter is deleted from memory.
argument a value provided to a function's parameter during a function call.
An argument may be an expression, like 12.0, x, or x * 1.5.
return variable A function may return one value and does so by assigning a return
variable
with the return value.
Modular development the process of dividing a program into separate modules that
can be
developed and tested separately and then integrated into a single program.
Incremental development a process in which a programmer writes and tests a few
statements, then writes and tests a small amount more (an incremental amount), and
so on.
function stub a function definition whose statements have not yet been written.
Algorithm sequence of steps that solves a problem, generating correct output for any
valid
input values.
algorithm time efficiency The number of calculations required to solve a problem.
Systems Development Life Cycle (SDLC) Analysis phase - defines a program's
goals.

Document information

Uploaded on
July 1, 2026
Number of pages
8
Written in
2025/2026
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.
SpencerHenderson
3.7
(53)
Sold
269
Followers
117
Items
47781
Last sold
18 hours 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