WGU D278 cb
Studycbonlinecbatcbhttps://quizlet.com/
_dshcjb
1.A car drove 200 miles using 10 gallons of fuel. Which operation shoul
cb cb cb cb cb cb cb cb cb cb cb cb
d be used to compute the miles per gallon, which is 20?: Division
cb cb cb cb cb cb cb cb cb cb cb cb
2.Which operator should be used to determine if a number is evenly divi
cb cb cb cb cb cb cb cb cb cb cb cb
sible by 5?: % cb cb cb
3.A variable should hold the names of all past U.S. presidents. Which
cb cb cb cb cb cb cb cb cb cb cb cb
data type should the variable be?: String array
cb cb cb cb cb cb cb
4.A variable should hold a person's height in meters. Which data type sh
cb cb cb cb cb cb cb cb cb cb cb cb
ould the variable be?: Float
cb cb cb cb
5.A program uses the number of seconds in a minute in various calculati
cb cb cb cb cb cb cb cb cb cb cb cb
ons. How should the item that holds the number of seconds in a minute
cb cb cb cb cb cb cb cb cb cb cb cb cb c
bbe de- clared?: Constant integer secondsPerMinute
cb cb cb cb cb
6.A program determines if a user's age is high enough to run for U.S. p
cb cb cb cb cb cb cb cb cb cb cb cb cb cb
resi-
dent. The minimum age requirement is 35. How should the item that hol
cb cb cb cb cb cb cb cb cb cb cb cb cb
ds the minimum age be declared?: Constant integer minAge
cb cb cb cb cb cb cb cb
7.Given integer x = 3 and integer y = 5.What is the value of the expressi
cb cb cb cb cb cb cb cb cb cb cb cb cb cb cb
n (x cb
/ 2.0) + y?: 6.5
cb cb cb cb
8.Given float x = 10.2 and float y = 1.0.What is the value of the expressi
cb cb cb cb cb cb cb cb cb cb cb cb cb cb cb
on x / y?: 10.2
cb cb cb cb
9.What kind of operator is the == in the expression i == 20?: Equality
cb cb cb cb cb cb cb cb cb cb cb cb cb
10.What is the purpose of parentheses () in a programming expression?
cb cb cb cb cb cb cb cb cb cb
: To group expressions
cb cb cb
11.Given float x = 3.0. Which expression evaluates to 2.0?: x /
cb cb cb cb cb cb cb cb cb cb cb
2 + 0.5 /2 + .25
cb cb cb cb cb cb
12.Which expression represents all the values of x, when x is the age ran
cb cb cb cb cb cb cb cb cb cb cb cb cb
ging from 18 to 24 years old?: (x >= 18) and (x <= 24)
cb cb cb cb cb cb cb cb cb cb cb cb cb
13.Which data type is used for items that are measured in length?: Float
cb cb cb cb cb cb cb cb cb cb cb cb
14.Which data type should be used to keep track of how many planes a
cb cb cb cb cb cb cb cb cb cb cb cb cb
re in a hangar?: Integer
cb cb cb cb
15.What does a programmer do first to use an existing programming librar
cb cb cb cb cb cb cb cb cb cb cb
?-
: Include the library
cb cb cb
16.What relationship is common among a programming library's functions
cb cb cb cb cb cb cb cb
-
: Functions all relate to the same purpose.
cb cb cb cb cb cb cb
17.What is an advantage of using a programming library?: The code
cb cb cb cb cb cb cb cb cb cb
has already been tested.
cb cb cb cb
18.Which language is dynamically typed?: Python
cb cb cb cb cb
1cb/
cb9
, WGU D278
cb
Studycbonlinecbatcbhttps://quizlet.com/
19.Which cblanguagecbiscbnotcbbuiltcboncbobject-orientedcbdesigncbprinciples?:cbC
_dshcjb
20.A language substantially supports a programmer creating items like p
cb cb cb cb cb cb cb cb cb
er-
son, teacher, and students. Each item has internal data and some operat
cb cb cb cb cb cb cb cb cb cb cb cb
ions. Which characteristic describes that language?: Object-oriented
cb cb cb cb cb cb
2cb/
cb9
Studycbonlinecbatcbhttps://quizlet.com/
_dshcjb
1.A car drove 200 miles using 10 gallons of fuel. Which operation shoul
cb cb cb cb cb cb cb cb cb cb cb cb
d be used to compute the miles per gallon, which is 20?: Division
cb cb cb cb cb cb cb cb cb cb cb cb
2.Which operator should be used to determine if a number is evenly divi
cb cb cb cb cb cb cb cb cb cb cb cb
sible by 5?: % cb cb cb
3.A variable should hold the names of all past U.S. presidents. Which
cb cb cb cb cb cb cb cb cb cb cb cb
data type should the variable be?: String array
cb cb cb cb cb cb cb
4.A variable should hold a person's height in meters. Which data type sh
cb cb cb cb cb cb cb cb cb cb cb cb
ould the variable be?: Float
cb cb cb cb
5.A program uses the number of seconds in a minute in various calculati
cb cb cb cb cb cb cb cb cb cb cb cb
ons. How should the item that holds the number of seconds in a minute
cb cb cb cb cb cb cb cb cb cb cb cb cb c
bbe de- clared?: Constant integer secondsPerMinute
cb cb cb cb cb
6.A program determines if a user's age is high enough to run for U.S. p
cb cb cb cb cb cb cb cb cb cb cb cb cb cb
resi-
dent. The minimum age requirement is 35. How should the item that hol
cb cb cb cb cb cb cb cb cb cb cb cb cb
ds the minimum age be declared?: Constant integer minAge
cb cb cb cb cb cb cb cb
7.Given integer x = 3 and integer y = 5.What is the value of the expressi
cb cb cb cb cb cb cb cb cb cb cb cb cb cb cb
n (x cb
/ 2.0) + y?: 6.5
cb cb cb cb
8.Given float x = 10.2 and float y = 1.0.What is the value of the expressi
cb cb cb cb cb cb cb cb cb cb cb cb cb cb cb
on x / y?: 10.2
cb cb cb cb
9.What kind of operator is the == in the expression i == 20?: Equality
cb cb cb cb cb cb cb cb cb cb cb cb cb
10.What is the purpose of parentheses () in a programming expression?
cb cb cb cb cb cb cb cb cb cb
: To group expressions
cb cb cb
11.Given float x = 3.0. Which expression evaluates to 2.0?: x /
cb cb cb cb cb cb cb cb cb cb cb
2 + 0.5 /2 + .25
cb cb cb cb cb cb
12.Which expression represents all the values of x, when x is the age ran
cb cb cb cb cb cb cb cb cb cb cb cb cb
ging from 18 to 24 years old?: (x >= 18) and (x <= 24)
cb cb cb cb cb cb cb cb cb cb cb cb cb
13.Which data type is used for items that are measured in length?: Float
cb cb cb cb cb cb cb cb cb cb cb cb
14.Which data type should be used to keep track of how many planes a
cb cb cb cb cb cb cb cb cb cb cb cb cb
re in a hangar?: Integer
cb cb cb cb
15.What does a programmer do first to use an existing programming librar
cb cb cb cb cb cb cb cb cb cb cb
?-
: Include the library
cb cb cb
16.What relationship is common among a programming library's functions
cb cb cb cb cb cb cb cb
-
: Functions all relate to the same purpose.
cb cb cb cb cb cb cb
17.What is an advantage of using a programming library?: The code
cb cb cb cb cb cb cb cb cb cb
has already been tested.
cb cb cb cb
18.Which language is dynamically typed?: Python
cb cb cb cb cb
1cb/
cb9
, WGU D278
cb
Studycbonlinecbatcbhttps://quizlet.com/
19.Which cblanguagecbiscbnotcbbuiltcboncbobject-orientedcbdesigncbprinciples?:cbC
_dshcjb
20.A language substantially supports a programmer creating items like p
cb cb cb cb cb cb cb cb cb
er-
son, teacher, and students. Each item has internal data and some operat
cb cb cb cb cb cb cb cb cb cb cb cb
ions. Which characteristic describes that language?: Object-oriented
cb cb cb cb cb cb
2cb/
cb9