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

WGU INTRO TO COMPUTER SCIENCE PRACTICE WITH QUESTIONS AND ANSWERS WITH 100% VERIFIED SOLUTION GRADE A+ CORRECT ANSWERS

Document preview thumbnail
Preview 3 out of 24 pages

WGU INTRO TO COMPUTER SCIENCE PRACTICE WITH QUESTIONS AND ANSWERS WITH 100% VERIFIED SOLUTION GRADE A+ CORRECT ANSWERS

Content preview

Which statement is an example of a dual-alternative if statement?
if (condition) then
while (condition)
if (condition) then . . . else
for each item in list


Give this one a try later!


if (condition) then . . . else




What is the primary purpose of a loop body in pseudocode?
To contain the statements repeated in a loop
To define functions
To declare variables
To make decisions based on conditions

,Give this one a try later!


To contain the statements repeated in a loop




Which sorting algorithm repeatedly steps through the list, compares adjacent elements,
and swaps them if they are in the wrong order?
Insertion
Selection
Bubble
Quick


Give this one a try later!


Bubble




What is one example of a language that uses the declarative paradigm?
-SIMULA
-Java
-Python
-Scheme


Give this one a try later!


-Scheme




Which operation is common to most file systems?
-Decrypt

, -Increment
-Decode
-Append


Give this one a try later!


-Append




Which data structure is best suited for storing a collection of different data types?
Array
Linked list
Record
Stack


Give this one a try later!


Record




What is the pseudocode that calculates the average of val_1 and val_2?
-if (val_1 < val_2) Set temp to val_1 else Set temp to val_2
-if (val_1 < val_2) Set temp to val_1 else Set temp to val_2
-Set temp to val_1 Set val_1 to val_2 Set val_2 to temp
-Set temp to val_1 + val_2 Set n to 2 Set x to temp / n


Give this one a try later!


-Set temp to val_1 + val_2 Set n to 2 Set x to temp / n

Document information

Uploaded on
June 18, 2026
Number of pages
24
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers
$3.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

Sold
0
Followers
0
Items
836
Last sold
-



Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their exams and reviewed by others who've used these revision notes.

Didn't get what you expected? Choose another document

No problem! You can straightaway pick a different document that better suits what you're after.

Pay as you like, start learning straight 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 smashed 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