PROGRAMMING - FOUNDATIONS (CEO1) PCEO
Attempt #1
Status:
Passed
1.
Which operator should be used to determine if a number is evenly divisible by 5?
YOUR
CORRECT
ANSWE
ANSWER
R
+
-
*
%
2.
A car drove 200 miles using 10 gallons of fuel.
Which operation should be used to compute the miles per gallon, which is 20?
YOUR
CORRECT
ANSWE
ANSWER
R
Addition
Subtraction
Multiplication
Division
3.
A variable should hold a person's height in
meters. Which data type should the
1/45
,variable be?
2/45
, YOUR
ANSWE CORRECT
R ANSWER
Intege
r Float
String
Boolean
4.
A variable should hold the names of all past U.S.
presidents. Which data type should the variable be?
YOUR
ANSWE CORRECT
R ANSWER
Integer array
Float array
String array
Boolean array
5.
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?
YOUR
CORRECT
ANSWE
ANSWER
R
Constant float
userTime Variable
float userTime
Constant integer secondsPerMinute
3/45
, Variable integer secondsPerMinute
4/45