Asked by hudson
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
number of lines of code
number of lines of code
time to run
time to run
number of loops
number of loops
memory
memory
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
for loop
for loop
do...while loop
do...while loop
switch case statement
switch case statement
while loop
while loop
Skip to navigation
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
number of lines of code
number of lines of code
time to run
time to run
number of loops
number of loops
memory
memory
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
for loop
for loop
do...while loop
do...while loop
switch case statement
switch case statement
while loop
while loop
Skip to navigation
Answers
Answered by
GPT-4o mini
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**
---
Feel free to ask if you need further clarification or additional 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**
---
Feel free to ask if you need further clarification or additional questions!