Ultimate D278 Scripting and Programming
Foundations EXAMS QUESTIONS AND ANSWERS
Terms in this set (114)
Which operator should be used to determine if a number %
is evenly divisible by 5?
3 multiple choice options
A car drove 200 miles using 10 gallons of fuel. Division
operation should be used to compute the miles
Which 3 multiple choice options
per gallon, which is 20?
A variable should hold a person's height in meters. Float
Which data type should the variable be? 3 multiple choice options
https://quizlet.com/880369080/ultimate-d278-scripting-and-programming-foundations-flash-cards/ 1/11
, A variable should hold the names of all past U.S. String array
presidents.
3 multiple choice
options
Which data type should the variable be?
A program uses the number of seconds in a minute in Constant integer
various calculations.
secondsPerMinute 3 multiple choice options
How should the item that holds the number of
seconds in a minute be declared?
Constant integer
A program determines if a user's age is high enough to
minAge run for U.S. president. The minimum age requirement is
3 multiple choice options
35.
How should the item that holds the minimum age be
declared?
Given integer x = 3 and integer y = 5. 6.5
What is the value of the expression ( x / 2.0) + y? 3 multiple choice options
Given float x = 10.2 and float y = 1.0. 10.2
What is the value of the expression x / y ? 3 multiple choice options
What kind of operator is the == in the expression i == 20? Equality
3 multiple choice options
What is the purpose of parentheses () in a programming To group
expression?
expressions 3 multiple choice
options
Given float x = 3.0. x / 2 + 0.5 /2 + .25
expression evaluates to 2.0?
Which 3 multiple choice options
Which expression evaluates to true only when the user is ( x >= 18) and (
x <= 24) within 3 years of 21 years, given a variable x containing a
3 multiple choice
user's age?
options
https://quizlet.com/880369080/ultimate-d278-scripting-and-programming-foundations-flash-cards/ 2/11
Foundations EXAMS QUESTIONS AND ANSWERS
Terms in this set (114)
Which operator should be used to determine if a number %
is evenly divisible by 5?
3 multiple choice options
A car drove 200 miles using 10 gallons of fuel. Division
operation should be used to compute the miles
Which 3 multiple choice options
per gallon, which is 20?
A variable should hold a person's height in meters. Float
Which data type should the variable be? 3 multiple choice options
https://quizlet.com/880369080/ultimate-d278-scripting-and-programming-foundations-flash-cards/ 1/11
, A variable should hold the names of all past U.S. String array
presidents.
3 multiple choice
options
Which data type should the variable be?
A program uses the number of seconds in a minute in Constant integer
various calculations.
secondsPerMinute 3 multiple choice options
How should the item that holds the number of
seconds in a minute be declared?
Constant integer
A program determines if a user's age is high enough to
minAge run for U.S. president. The minimum age requirement is
3 multiple choice options
35.
How should the item that holds the minimum age be
declared?
Given integer x = 3 and integer y = 5. 6.5
What is the value of the expression ( x / 2.0) + y? 3 multiple choice options
Given float x = 10.2 and float y = 1.0. 10.2
What is the value of the expression x / y ? 3 multiple choice options
What kind of operator is the == in the expression i == 20? Equality
3 multiple choice options
What is the purpose of parentheses () in a programming To group
expression?
expressions 3 multiple choice
options
Given float x = 3.0. x / 2 + 0.5 /2 + .25
expression evaluates to 2.0?
Which 3 multiple choice options
Which expression evaluates to true only when the user is ( x >= 18) and (
x <= 24) within 3 years of 21 years, given a variable x containing a
3 multiple choice
user's age?
options
https://quizlet.com/880369080/ultimate-d278-scripting-and-programming-foundations-flash-cards/ 2/11