
Y11 Computer Science Pre release Quiz
Authored by Michael Harrington
Instructional Technology
11th Grade
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Adrian asks - How do you calculate the ratio between healthy and unhealthy food
healthy food / unhealthy food
unhealthy food / healthy food
healthy food / unhealthy food : healthy food / healthy food
healthy food / unhealthy food : unhealthy food / unhealthy food
2.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
matt asks - which is a suitable name for an array in the program
Item_Codes_Of_Fruits
FR
Fruit_Code
BANANANANANANA
3.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
David asks - What type of data should be used to store the value of whether the fruit is healthy or not
String
Intiger
Boolean
Float
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Leilani asks - How will you apply a discount?
apply 20% discount to all food
apply 10% discount to all food
apply a 20% if more than half of all foods are healthy, 10% if not
apply a 20% if all the food is healthy, 10% if not
5.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Charlie asks - what is an appropriate name to hold all the information for fruits if it was a 2D array?
Array
Fruit
Sandwhich
Apple
6.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Adrian asks - How will you make a loop to keep the user shopping
WHILE loop
FOR loop
IF statement
pray to god
7.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Jacob asks - Explain how your algorithm functions efficiently and changes you can make to make it more efficient.
I used various vaidations and checks in order to make sure that the user eventually makes a correct input if incorrect inputs are being made. One way I could make the program more efficient would be to shorten it.
I used 6 seperated for loops full of validation to ensure correct input. One way I could make the program more efficient would be to make the program longer.
My program is efficent because i used 2d arrays. I could make it more efficient by using 1d arrays
My program is efficient because it uses minimal indications to the user to tell them what is going on, thus saving space within the code. I could make to program more efficient by removing all information statements from in the code.
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?