You can run an algorithm like you can run code. (1 point)

Responses

True
True

False
False
Question 2
Which of these scenarios is BEST suited for a switch case statement?(1 point)
Responses

determining whether it's raining or not
determining whether it's raining or not

choosing whether a number is odd or even
choosing whether a number is odd or even

determining the rate for a ferry based on vehicle type
determining the rate for a ferry based on vehicle type

choosing a random number between 1 and 100
choosing a random number between 1 and 100
Question 3
Which of these is NOT a factor in improving an algorithm’s efficiency?(1 point)
Responses

memory
memory

time to run
time to run

number of loops
number of loops

number of lines of code
number of lines of code
Question 4
Which type of loop is BEST suited for displaying the names of 10 students in a class from a file?(1 point)
Responses

do...while loop
do...while loop

while loop
while loop

switch case statement
switch case statement

for loop

1 answer

Here are the answers to your questions:

Question 1: You can run an algorithm like you can run code.
Response: True

Question 2: Which of these scenarios is BEST suited for a switch case statement?
Response: determining the rate for a ferry based on vehicle type

Question 3: Which of these is NOT a factor in improving an algorithm’s efficiency?
Response: number of lines of code

Question 4: Which type of loop is BEST suited for displaying the names of 10 students in a class from a file?
Response: for loop

Let me know if you have any other questions!