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

WGU E010 FOUNDATIONS OF PROGRAMMING ADVANCED ASSESSMENT

Document preview thumbnail
Preview 3 out of 23 pages

WGU E010 FOUNDATIONS OF PROGRAMMING ADVANCED ASSESSMENT

Content preview

WGU E010 FOUNDATIONS OF
PROGRAMMING ADVANCED
ASSESSMENT




1. Which Boolean operator results in true only if both operands are true?

A. OR


B. XOR


C. NOT


D. AND


Answer: D


Conceptual Explanation: The AND operator requires all input conditions to be true for the

result to be true.


2. In programming, what is the term for a logical error that occurs when a loop executes one

too many or one too few times?

A. Infinite loop


B. Off-by-one error


C. Syntax error

,D. Buffer overflow


Answer: B


Conceptual Explanation: An off-by-one error happens when a loop iterates one time more

or less than intended, often due to incorrect boundary conditions.


3. Which data structure follows the Last-In-First-Out (LIFO) principle?

A. Queue


B. Array


C. Linked List


D. Stack


Answer: D


Conceptual Explanation: A stack is a linear data structure where the last element added is

the first one to be removed.


4. What is the primary difference between a ‘while’ loop and a ‘do-while’ loop?

A. The do-while loop ensures the body is executed at least once before checking the

condition.


B. The do-while loop evaluates the condition before the first execution.


C. The while loop runs at least once regardless of the condition.


D. There is no functional difference between the two.

, Answer: A


Conceptual Explanation: A do-while loop is an exit-controlled loop, meaning the code

block runs once before the condition is ever tested.


5. Which of the following is a characteristic of a low-level programming language?

A. High abstraction from hardware


B. Portability across different operating systems


C. Easier for humans to read and write


D. Direct control over CPU and memory


Answer: D


Conceptual Explanation: Low-level languages like Assembly provide little abstraction and

allow direct manipulation of hardware components.


6. What does the term ‘scope’ refer to in the context of variables?

A. The visibility and lifetime of a variable within parts of a program.


B. The amount of memory a variable occupies.


C. The data type assigned to a variable.


D. The speed at which a variable can be accessed.


Answer: A

Document information

Uploaded on
August 20, 2026
Number of pages
23
Written in
2026/2027
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.
TheStar
3.7
(140)
Sold
711
Followers
178
Items
27005
Last sold
2 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