WGU C173 Pre-Assessment
Questions with Verified Answers
Grade A+ Guarantee
1. Which operator should be used to determine if a number is evenly divisible b
g g g g g g g g g g g g g
y 5?
g
A+ g
B- g
C* g
D% g
g ANS D g
2. A car drove 200 miles using 10 gallons of fuel.
g g g g g g g g g
Which operation should be used to compute the miles per gallon, which is 20?
g g g g g g g g g g g g g
A Addition
g
B Subtraction
g
C Multiplication
g
D Division
g
g ANS D g
1g/g14
, 3. A variable should hold a person's height in meters.
g g g g g g g g
Which data type should the variable be?
g g g g g g
A Integer
g
B Float
g
C String
g
D Boolean
g
g ANS B g
4. A variable should hold the names of all past U.S. presidents.
g g g g g g g g g g
Which data type should the variable be?
g g g g g g
A Integer array
g g
B Float array
g g
C String array
g g
D Boolean array
g g
g ANS C g
5. A program uses the number of seconds in a minute in various calculations.
g g g g g g g g g g g g
How should the item that holds the number of seconds in a minute be de-
g g g g g g g g g g g g g g
2g/g14
, clared?
A Constant float userTime
g g g
B Variable float userTime
g g g
C Constant integer secondsPerMinute
g g g
D Variable integer secondsPerMinute
g g g g
ANS C g
6. A program determines if a user's age is high enough to run for U.S. presi-
g g g g g g g g g g g g g g
g dent. The minimum age requirement is 35.
g g g g g g
How should the item that holds the minimum age be declared?
g g g g g g g g g g
3g/g14
Questions with Verified Answers
Grade A+ Guarantee
1. Which operator should be used to determine if a number is evenly divisible b
g g g g g g g g g g g g g
y 5?
g
A+ g
B- g
C* g
D% g
g ANS D g
2. A car drove 200 miles using 10 gallons of fuel.
g g g g g g g g g
Which operation should be used to compute the miles per gallon, which is 20?
g g g g g g g g g g g g g
A Addition
g
B Subtraction
g
C Multiplication
g
D Division
g
g ANS D g
1g/g14
, 3. A variable should hold a person's height in meters.
g g g g g g g g
Which data type should the variable be?
g g g g g g
A Integer
g
B Float
g
C String
g
D Boolean
g
g ANS B g
4. A variable should hold the names of all past U.S. presidents.
g g g g g g g g g g
Which data type should the variable be?
g g g g g g
A Integer array
g g
B Float array
g g
C String array
g g
D Boolean array
g g
g ANS C g
5. A program uses the number of seconds in a minute in various calculations.
g g g g g g g g g g g g
How should the item that holds the number of seconds in a minute be de-
g g g g g g g g g g g g g g
2g/g14
, clared?
A Constant float userTime
g g g
B Variable float userTime
g g g
C Constant integer secondsPerMinute
g g g
D Variable integer secondsPerMinute
g g g g
ANS C g
6. A program determines if a user's age is high enough to run for U.S. presi-
g g g g g g g g g g g g g g
g dent. The minimum age requirement is 35.
g g g g g g
How should the item that holds the minimum age be declared?
g g g g g g g g g g
3g/g14