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

WGU D278 PROGRAMMING COMPREHENSIVE QUESTIONS AND ANSWERS SET A.pdf

Document preview thumbnail
Preview 2 out of 7 pages

WGU D278 PROGRAMMING COMPREHENSIVE QUESTIONS AND ANSWERS SET A.pdf

Content preview

WGU D278 PROGRAMMING COMPREHENSIVE
QUESTIONS AND ANSWERS SET A+
✔✔Function - ✔✔A list of statements executed by invoking the function's name, with
such invoking known as a function call.

✔✔Type conversion - ✔✔A conversion of one data type to another, such as an integer
to a float.

✔✔Implicit conversion - ✔✔When a program automatically performs several common
conversions between integer and float types (as well as others).

✔✔Type cast - ✔✔Converts a value of one type to another type.

✔✔String - ✔✔A sequence of characters, like "Hello".

✔✔Boolean - ✔✔Refers to a quantity that has only two possible values, true or false.

✔✔Array - ✔✔An ordered list of items of a given data type, like an array of integers or
an array of floats. Array indices start from 0, not 1.

✔✔Constant - ✔✔A named value item that holds a value that cannot change.

✔✔Element - ✔✔Each item in an array.

✔✔Index - ✔✔In an array, each element's location number.

✔✔Scalar variable - ✔✔A single-item (non-array) variable.

✔✔Branch - ✔✔A sequence of statements only executed under a certain condition.

, ✔✔Nested branches - ✔✔A branch's statements can include any valid statements,
including another if-else branch.

✔✔Equality operator - ✔✔Checks whether two operand's values are the same (==) or
different (=!). Note that equality is ==, not just =.

✔✔Relational operator - ✔✔Checks how one operand's value relates to another, like
being greater than.

✔✔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.

✔✔if-else statement - ✔✔An if expression with the true branch's sub-statements,
followed by an else part with any false branch sub-statements.

✔✔if statement - ✔✔An if expression followed by sub-statements, with no else part.

✔✔if-elseif statement - ✔✔Starts with an if expression, followed by elseif expressions,
and ending with else; when a program reaches the statement, exactly one of those
branches will execute. When the else branch has no statements, the else part is
omitted.

✔✔Loop - ✔✔A program construct that repeatedly executes the loop's statements
(known as the loop body) while the loop's expression is true; when false, execution
proceeds past the loop. Each time through a loop's statements is called an iteration.

✔✔Infinite loop - ✔✔A loop that never stops iterating. A common error is to accidentally
create an infinite loop, often by forgetting to update a variable in the body, or by creating
a loop expression whose evaluation to false isn't always reachable.

✔✔Sentinel value - ✔✔A special value indicating the end of a list, such as a list of
positive integers ending with 0, as in 1 0 1 6 3 0.

✔✔While loop - ✔✔A loop that repeatedly executes the loop body *while* the loop's
expression evaluates to true.

✔✔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.

Document information

Uploaded on
August 8, 2026
Number of pages
7
Written in
2026/2027
Type
Exam (elaborations)
Contains
Questions & answers
$18.49

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

Sold
1
Followers
2
Items
2433
Last sold
1 week 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