SCRIPTING AND PROGRAMMING
FOUNDATIONS 2026 FULL SOLVED QUESTIONS
ANSWERS PYTHON AND SCRIPTING REVIEW
SHEET
◉ What is an advantage of interpreted programs?
Answer: They can be modified at run time.
◉ Which characteristic specifically describes a markup language?
Answer: Tags surround text to describe desired formatting.
◉ Which characteristic specifically describes interpreted languages?
Answer: They can be run one statement at a time.
◉ Which characteristic specifically describes interpreted languages?
Answer: They can run on any machine having the right interpreter.
◉ A car drove 200 miles using 10 gallons of fuel. Which operation
should be used to compute the miles per gallon, which is 20?
Answer: Division
, ◉ Which operator should be used to determine if a number is evenly
divisible by 5?
Answer: %
◉ A variable should hold a person's height in meters. Which data
type should the variable be?
Answer: Float
◉ A variable should hold the names of all past U.S. presidents. Which
data type should the variable be?
Answer: String array
◉ 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?
Answer: Constant integer secondsPerMinute
◉ A program determines if a user's age is high enough to run for U.S.
president. The minimum age requirement is 35. How should the
item that holds the minimum age be declared?
Answer: Constant integer minAge
◉ Given integer x = 3 and integer y = 5. What is the value of the
expression (x / 2.0) + y?
FOUNDATIONS 2026 FULL SOLVED QUESTIONS
ANSWERS PYTHON AND SCRIPTING REVIEW
SHEET
◉ What is an advantage of interpreted programs?
Answer: They can be modified at run time.
◉ Which characteristic specifically describes a markup language?
Answer: Tags surround text to describe desired formatting.
◉ Which characteristic specifically describes interpreted languages?
Answer: They can be run one statement at a time.
◉ Which characteristic specifically describes interpreted languages?
Answer: They can run on any machine having the right interpreter.
◉ A car drove 200 miles using 10 gallons of fuel. Which operation
should be used to compute the miles per gallon, which is 20?
Answer: Division
, ◉ Which operator should be used to determine if a number is evenly
divisible by 5?
Answer: %
◉ A variable should hold a person's height in meters. Which data
type should the variable be?
Answer: Float
◉ A variable should hold the names of all past U.S. presidents. Which
data type should the variable be?
Answer: String array
◉ 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?
Answer: Constant integer secondsPerMinute
◉ A program determines if a user's age is high enough to run for U.S.
president. The minimum age requirement is 35. How should the
item that holds the minimum age be declared?
Answer: Constant integer minAge
◉ Given integer x = 3 and integer y = 5. What is the value of the
expression (x / 2.0) + y?