1
For Expert help and assignment solutions, +254707240657
C173 Scripting and Programming OA1
Questions and Answers (100% Correct
Answers) Already Graded A+
A program uses the number of seconds in a minute in various
calculations.
© 2025 Assignment Expert
How should the item that holds the number of seconds in a minute
be declared? —ANS: 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.
Guru01 - Stuvia
How should the item that holds the minimum age be declared?
—ANS: Constant integer minAge
Given integer x = 3 and integer y = 5.
What is the value of the expression ( x / 2.0) + y? —ANS: 6.5
What kind of operator is the == in the expression i == 20? —ANS:
Equality
Given float x = 3.0.
Which expression evaluates to 2.0? —ANS: x / 2 + 0.5 /2 + .25
A program should continue accepting input numbers, adding
each to a sum, until a 0 is input.
Which control structure should be used? —ANS: While loop
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
For Expert help and assignment solutions, +254707240657
C173 Scripting and Programming OA1
Questions and Answers (100% Correct
Answers) Already Graded A+
A program uses the number of seconds in a minute in various
calculations.
© 2025 Assignment Expert
How should the item that holds the number of seconds in a minute
be declared? —ANS: 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.
Guru01 - Stuvia
How should the item that holds the minimum age be declared?
—ANS: Constant integer minAge
Given integer x = 3 and integer y = 5.
What is the value of the expression ( x / 2.0) + y? —ANS: 6.5
What kind of operator is the == in the expression i == 20? —ANS:
Equality
Given float x = 3.0.
Which expression evaluates to 2.0? —ANS: x / 2 + 0.5 /2 + .25
A program should continue accepting input numbers, adding
each to a sum, until a 0 is input.
Which control structure should be used? —ANS: While loop
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