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

WGU - Scripting and Programming Foundations - D278: (Latest Update 2025 / 2026) Questions and Certified Answers | 100% Correct | A+ Grade.

Rating
-
Sold
-
Pages
45
Grade
A+
Uploaded on
27-08-2025
Written in
2025/2026

WGU - Scripting and Programming Foundations - D278: (Latest Update 2025 / 2026) Questions and Certified Answers | 100% Correct | A+ Grade. Joe is building an online game. He wants to provide a riddle and have the player guess the answer. The game needs to prompt the user to enter the answer, check to see if it the input provided does not match the correct answer, and continue prompting the user until the answer entered matches the correct answer. Which control structure supports Joe's needs? - ANSWER Do-while loop What is put to output by the following pseudocode? x = 3 do Put x to output Put " " to output x = x - 1 while x 0 - ANSWER 3 2 1 A variable ___ declares a new variable, specifying the variable's name and type. - ANSWER A variable declaration declares a new variable, specifying the variable's name and type. How should the item that holds the minimum age be declared? - ANSWER Constant integer minAge Given integer x = 3 and integer y = 5. What is the value of the expression (x / 2.0) + y? - ANSWER 6.5 Given float x = 10.2 and float y = 1.0. What is the value of the expression x / y? - ANSWER 10.2 What kind of operator is the == in the expression i == 20? - ANSWER Equality What is the purpose of parentheses () in a programming expression? - ANSWER To group expressions Given float x = 3.0. Which expression evaluates to 2.0? - ANSWER x / 2 + 0.5 /2 + .25 Which expression represents all the values of x, when x is the age ranging from 18 to 24 years old? - ANSWER (x = 18) and (x = 24)

Show more Read less
Institution
WGU - Scripting And Programming Foundations -D278
Course
WGU - Scripting and Programming Foundations -D278

Content preview

WGU - Scripting and Programming
Foundations - D278: (Latest Update 2025
/ 2026) Questions and Certified Answers |
100% Correct | A+ Grade.



Joe is building an online game. He wants to provide a
riddle and have the player guess the answer. The game
needs to prompt the user to enter the answer, check to see
if it the input provided does not match the correct answer,
and continue prompting the user until the answer entered
matches the correct answer.


Which control structure supports Joe's needs? - ANSWER
✓ Do-while loop


What is put to output by the following pseudocode?
x=3
do
Put x to output

,Put " " to output
x=x-1
while x > 0 - ANSWER ✓ 3 2 1


A variable ___ declares a new variable, specifying the
variable's name and type. - ANSWER ✓ A variable
declaration declares a new variable, specifying the
variable's name and type.


How should the item that holds the minimum age be
declared? - ANSWER ✓ Constant integer minAge


Given integer x = 3 and integer y = 5.


What is the value of the expression (x / 2.0) + y? -
ANSWER ✓ 6.5


Given float x = 10.2 and float y = 1.0.

,What is the value of the expression x / y? - ANSWER ✓
10.2


What kind of operator is the == in the expression i ==
20? - ANSWER ✓ Equality


What is the purpose of parentheses () in a programming
expression? - ANSWER ✓ To group expressions


Given float x = 3.0.


Which expression evaluates to 2.0? - ANSWER ✓ x / 2 +
0.5 /2 + .25


Which expression represents all the values of x, when x
is the age ranging from 18 to 24 years old? - ANSWER ✓
(x >= 18) and (x <= 24)

, Which data type is used for items that are measured in
length? - ANSWER ✓ Float


Which data type should be used to keep track of how
many planes are in a hangar? - ANSWER ✓ Integer


A function should convert hours and minutes to seconds,
such as converting 1 hour and 10 minutes to 4,200
seconds.


What should be the input to the function? - ANSWER ✓
Hours and minutes


A function returns a number x cubed. For example, if x is
3, the function returns 3 * 3 * 3, or 27.


What should be the input to the function? - ANSWER ✓ x


A function calculates the weight difference (Diff) given
two sample weights (S1 and S2).

Written for

Institution
WGU - Scripting and Programming Foundations -D278
Course
WGU - Scripting and Programming Foundations -D278

Document information

Uploaded on
August 27, 2025
Number of pages
45
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers
$14.49
Get access to the full document:

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

Get to know the seller
Seller avatar
QuizWhiz

Get to know the seller

Seller avatar
QuizWhiz Havard School
View profile
Follow You need to be logged in order to follow users or courses
Sold
4
Member since
2 year
Number of followers
1
Documents
474
Last sold
6 months ago
Ultimate Q&amp;A Hub | Verified Answers for Success

Welcome to Ultimate Q&amp;A Hub | Verified Answers for Success – your go-to source for high-quality, well-structured Q&amp;A study materials! Whether you're preparing for exams, quizzes, or assignments, my carefully curated question-and-answer documents will help you grasp key concepts quickly and effectively. All resources are clear, accurate, and designed to help you study smarter, not harder. Browse now and start acing your subjects with confidence! For every student you refer to me with an order that is completed and paid transparently, I will do one assignment for you, FREE of any fee.

Read more Read less
0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

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