
Abstraction in Programming (Football Program Scenario)

Quiz
•
Computers
•
9th Grade
•
Hard

Mark Ross
FREE Resource
42 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Abstraction is defined as:
The process of hiding unnecessary details and showing only essential features.
The process of converting code into machine language.
The process of writing code without any errors.
The process of compiling a program.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is an example of how abstraction could be used when developing this program?
Creating a function to handle user input without showing the internal code.
Writing all code in a single main function.
Using only global variables for all data storage.
Displaying all program details to the user at every step.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
State what is meant by a constant and give an example from the algorithm above.
A constant is a value that does not change during the execution of an algorithm; for example, 5 in the algorithm above.
A constant is a variable that can change its value during the execution of an algorithm; for example, x in the algorithm above.
A constant is a function used to repeat steps in an algorithm; for example, loop() in the algorithm above.
A constant is a type of input provided by the user; for example, userInput in the algorithm above.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
State what is meant by a variable and give an example from the algorithm above.
A variable is a named storage location in an algorithm, such as 'total' in the algorithm above.
A variable is a fixed value that cannot change, such as 5 in the algorithm above.
A variable is a type of algorithm, such as 'sort' in the algorithm above.
A variable is a step in the algorithm, such as 'start' in the algorithm above.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
State the number of goals that will be output by this algorithm for the following inputs. Wins = 30 Losses = 25
The answer cannot be determined from the image alone as the algorithm is not provided. The student is expected to explain their reasoning based on the algorithm, which is not visible in the image.
The number of goals will be 55 as it is the sum of wins and losses.
The number of goals will be 5 as it is the difference between wins and losses.
The number of goals will be 30 as it is equal to the number of wins.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
State the number of goals that will be output by this algorithm for the following inputs. Wins = 20 Losses = 5
The answer cannot be determined from the image alone as the algorithm is not provided. The student is expected to explain their reasoning based on the algorithm, which is not visible in the image.
The number of goals will be 25.
The number of goals will be 15.
The number of goals will be 0.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A computer program calculates the correct dose in grams of a type of medicine. The algorithm used is shown by the flow diagram below. According to the flowchart, what is the dose if the patient's age is 25?
2 grams
Age * 0.1 grams
1.5 grams
Dose * 0.5 grams
Create a free account and access millions of resources
Similar Resources on Wayground
43 questions
PEMROGRAMAN DASAR

Quiz
•
1st - 11th Grade
37 questions
1.1.1 - 1.1.6 CSE REVIEW FOR ASSESSMENT

Quiz
•
9th - 12th Grade
40 questions
Python Unit 01 - Introduction to Python

Quiz
•
7th - 9th Grade
40 questions
UAS TIK KELAS 4

Quiz
•
1st - 10th Grade
40 questions
Latihan PAS Kelas 9

Quiz
•
9th Grade
40 questions
DASAR KOMP2

Quiz
•
1st - 10th Grade
40 questions
Ujian Sekolah Informatika 2022/2023

Quiz
•
9th Grade
40 questions
Computer Science Pre-Assessment Quiz

Quiz
•
9th - 12th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
Appointment Passes Review

Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
Grammar Review

Quiz
•
6th - 9th Grade