1
For Expert help and assignment solutions, +254707240657
C173 Scripting and Programming OA
Questions and Answers (100% Correct
Answers) Already Graded A+
C173 Scripting and Programming OA1 Questions and Answers
(100% Correct Answers) Already Graded A+ A variable should
hold the names of all past U.S. presidents. Which data type should
the variable be? —ANS: String array
© 2025 Assignment Expert
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? —ANS: Constant integer
secondsPerMinute
Guru01 - Stuvia
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? —ANS: Constant
integer minAge
What kind of operator is the == in the expression i == 20? —ANS:
Equality
Which data type is used for items that are measured in length? —
ANS: Float
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? —ANS: Do-while loop
A programmer has developed the following code:
count = 0
, 2
For Expert help and assignment solutions, +254707240657
while count is less than 5:
print 'Hello'
What is the result of implementing this code? —ANS: 'Hello' will
print indefinitely.
What is the loop expression in the following pseudocode?
i=0
while i < 20
Put i to output
i = i + 1 —ANS: i < 20
© 2025 Assignment Expert
Order the tasks needed to create a pyramid (large on bottom,
small on top) on a table from first (1) to last (4). Select your answer
from the pull down list.
Guru01 - Stuvia
Clear Table
Place Smallest Shape
Place middle sized shape
Place largest shape —ANS: Clear table
Largest
Middle
Smallest
What does an output of 1 indicate for the following algorithm
running on a five-element list of integers?
i=0
x=0
while i < 5
if list[i] < 0
x=1
i=i+1
For Expert help and assignment solutions, +254707240657
C173 Scripting and Programming OA
Questions and Answers (100% Correct
Answers) Already Graded A+
C173 Scripting and Programming OA1 Questions and Answers
(100% Correct Answers) Already Graded A+ A variable should
hold the names of all past U.S. presidents. Which data type should
the variable be? —ANS: String array
© 2025 Assignment Expert
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? —ANS: Constant integer
secondsPerMinute
Guru01 - Stuvia
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? —ANS: Constant
integer minAge
What kind of operator is the == in the expression i == 20? —ANS:
Equality
Which data type is used for items that are measured in length? —
ANS: Float
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? —ANS: Do-while loop
A programmer has developed the following code:
count = 0
, 2
For Expert help and assignment solutions, +254707240657
while count is less than 5:
print 'Hello'
What is the result of implementing this code? —ANS: 'Hello' will
print indefinitely.
What is the loop expression in the following pseudocode?
i=0
while i < 20
Put i to output
i = i + 1 —ANS: i < 20
© 2025 Assignment Expert
Order the tasks needed to create a pyramid (large on bottom,
small on top) on a table from first (1) to last (4). Select your answer
from the pull down list.
Guru01 - Stuvia
Clear Table
Place Smallest Shape
Place middle sized shape
Place largest shape —ANS: Clear table
Largest
Middle
Smallest
What does an output of 1 indicate for the following algorithm
running on a five-element list of integers?
i=0
x=0
while i < 5
if list[i] < 0
x=1
i=i+1