WGU C173 SCRIPTING AND PROGRAMMING
FOUNDATIONS PA 2025/ 2026 ACTUAL EXAM
CURRENTLY TESTING COMPLETE EXAM QUESTIONS
WITH DETAILED VERIFIED ANSWERS WITH
RATIONALES (100% CORRECT ANSWERS) /ALREADY
GRADED A+||NEWEST EXAM!!!
Which operator should be used to determine if a number is
evenly divisible by 5? - Answer-%
A car drove 200 miles using 10 gallons of fuel.
Which operation should be used to compute the miles per
gallon, which is 20? - Answer-Division
floating-point literal - Answer-a number with a fractional
part, even if that fraction is 0, as in 1.0, 0.0, or 99.573
string literal - Answer-consists of text (characters) within
double quotes, as in "Go #57!". A character includes any
letter (a-z, A-Z), digit (0-9), or symbol (~, !, @, etc.).
,2|Page
A variable should hold a person's height in meters. -
Answer-Float
A variable should hold the names of all past U.S.
presidents. - Answer-String array
integer - Answer-A variable of type _______ can hold
whole number values, like 1, 999, 0, or -25 (but not 3.5 or
0.001).
A program uses the number of seconds in a minute in
various calculations.
How should the item that holds the number of seconds in
a minute be declared? - Answer-Constant integer
secondsPerMinute
A program determines if a user's age is high enough to run
for U.S. president. The minimum age requirement is 35.
How should the item that holds the minimum age be
declared? - Answer-Constant integer minAge
,3|Page
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
, 4|Page
Which expression evaluates to true only when the user is
within 3 years of 21 years, given a variable x containing a
user's age? - 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?
Ax