WGU D278
WGU D278
Study online at https://quizlet.com/_dshcjb
1. A car drove 200 miles using 10 gallons of fuel. Which Division
operation should be used to compute the miles per
gallon, which is 20?
2. Which operator should be used to determine if a %
number is evenly divisible by 5?
3. A variable should hold the names of all past U.S. String array
presidents. Which data type should the variable be?
4. A variable should hold a person's height in meters. Float
Which data type should the variable be?
5. A program uses the number of seconds in a minute Constant integer secondsPer-
in various calculations. How should the item that Minute
holds the number of seconds in a minute be de-
clared?
6. A program determines if a user's age is high enough Constant integer minAge
to run for U.S. president. The minimum age require-
ment is 35. How should the item that holds the min-
imum age be declared?
7. Given integer x = 3 and integer y = 5.What is the value 6.5
of the expression (x / 2.0) + y?
8. Given float x = 10.2 and float y = 1.0.What is the value 10.2
of the expression x / y?
9. What kind of operator is the == in the expression i == Equality
20?
10. What is the purpose of parentheses () in a program- To group expressions
ming expression?
1/9
1
, WGU D278
WGU D278
Study online at https://quizlet.com/_dshcjb
11. Given float x = 3.0. Which expression evaluates to x / 2 + 0.5 /2 + .25
2.0?
12. Which expression represents all the values of x, (x >= 18) and (x <= 24)
when x is the age ranging from 18 to 24 years old?
13. Which data type is used for items that are measured Float
in length?
14. Which data type should be used to keep track of how Integer
many planes are in a hangar?
15. What does a programmer do first to use an existing Include the library
programming library?
16. What relationship is common among a program- Functions all relate to the
ming library's functions? same purpose.
17. What is an advantage of using a programming li- The code has already been
brary? tested.
18. Which language is dynamically typed? Python
19. Which language is not built on object-oriented de- C
sign principles?
20. A language substantially supports a programmer Object-oriented
creating items like person, teacher, and students.
Each item has internal data and some operations.
Which characteristic describes that language?
21. Statically typed
2/9
2
WGU D278
Study online at https://quizlet.com/_dshcjb
1. A car drove 200 miles using 10 gallons of fuel. Which Division
operation should be used to compute the miles per
gallon, which is 20?
2. Which operator should be used to determine if a %
number is evenly divisible by 5?
3. A variable should hold the names of all past U.S. String array
presidents. Which data type should the variable be?
4. A variable should hold a person's height in meters. Float
Which data type should the variable be?
5. A program uses the number of seconds in a minute Constant integer secondsPer-
in various calculations. How should the item that Minute
holds the number of seconds in a minute be de-
clared?
6. A program determines if a user's age is high enough Constant integer minAge
to run for U.S. president. The minimum age require-
ment is 35. How should the item that holds the min-
imum age be declared?
7. Given integer x = 3 and integer y = 5.What is the value 6.5
of the expression (x / 2.0) + y?
8. Given float x = 10.2 and float y = 1.0.What is the value 10.2
of the expression x / y?
9. What kind of operator is the == in the expression i == Equality
20?
10. What is the purpose of parentheses () in a program- To group expressions
ming expression?
1/9
1
, WGU D278
WGU D278
Study online at https://quizlet.com/_dshcjb
11. Given float x = 3.0. Which expression evaluates to x / 2 + 0.5 /2 + .25
2.0?
12. Which expression represents all the values of x, (x >= 18) and (x <= 24)
when x is the age ranging from 18 to 24 years old?
13. Which data type is used for items that are measured Float
in length?
14. Which data type should be used to keep track of how Integer
many planes are in a hangar?
15. What does a programmer do first to use an existing Include the library
programming library?
16. What relationship is common among a program- Functions all relate to the
ming library's functions? same purpose.
17. What is an advantage of using a programming li- The code has already been
brary? tested.
18. Which language is dynamically typed? Python
19. Which language is not built on object-oriented de- C
sign principles?
20. A language substantially supports a programmer Object-oriented
creating items like person, teacher, and students.
Each item has internal data and some operations.
Which characteristic describes that language?
21. Statically typed
2/9
2