FOUNDATIONS EXAM (ACTUAL 2025/2026) 170
QUESTIONS WITH 100% VERIFIED ANSWERS
GRADED A+| BRAND NEW!!!
Which operator should be used to determine if a number is
evenly divisible by 5?
A+
B-
C*
D % - <<<Answers>>>%
A car drove 200 miles using 10 gallons of fuel.
Which operation should be used to compute the miles per
gallon, which is 20?
A Addition
B Subtraction
C Multiplication
D Division - <<<Answers>>>Division
A variable should hold a person's height in meters.
Which data type should the variable be?
A Integer
,B Float
C String
D Boolean - <<<Answers>>>Float
A variable should hold the names of all past U.S. presidents.
What is the return value of a function?
A Output of a function
B Call to run the function
C Data passed to the function
D Variable in the declaration of the function -
<<<Answers>>>A
A program should continue accepting input numbers, adding
each to a sum, until a 0 is input.
Which control structure should be used?
A If statement
B For loop
C Multiple if statements
D While loop - <<<Answers>>>D
, Joe is building an online game. He wants to provide a riddle
and have the player guess the answer. The game needs to
prompt the user to enter the answer, check to see if it the input
provided does not match the correct answer, and continue
prompting the user until the answer entered matches the
correct answer.
Which control structure supports Joe's needs?
A For loop
B While loop
C Do-while loop
D If-else branch - <<<Answers>>>C
What is put to output by the following pseudocode?
x=3
do
Put x to output
Put " " to output
x=x-1
while x > 0
A3210
B 3 2 1 0 -1
C210