Lesson 4.4.1.10
4.4.1.10 Composition Quiz: AQA Computer Science, Unit 4
20 questions
In partnership with Revision Ninja
Lesson 4.4.1.10, Composition: 20 multiple choice questions for the AQA Computer Science (7517), Unit 4: Theory of computation, written with Revision Ninja.
Host it live on the board and students join with a game code on their own devices, or revise alone with Free Play. The answers are revealed in the game.
The 20 questions
-
What type of abstraction builds compound procedures by combining simpler procedures?
- Procedural composition
- Data abstraction
- Procedural decomposition
- Problem reduction
-
What action demonstrates procedural composition in functional programming?
- Dividing into subroutines
- Deleting unused code
- Declaring local variables
- Chaining function calls
-
In the functional composition expression f(g(x)), which function is evaluated first?
- Function f
- Both simultaneously
- Neither function
- Function g
-
According to the AQA specification, which data structure is a classic example of data composition?
- Tree structure
- Boolean flag
- Floating-point number
- Primitive integer
-
What is created when several different data types are combined into a single record?
- Atomic data type
- Compound data object
- Abstract model
- Procedural decomposition
-
How does composition fundamentally differ from procedural decomposition in problem solving?
- It combines parts
- It breaks down
- It removes detail
- It executes code
-
A program calculates a total price by first calling a function to find the tax and then a function to add it. Which principle is shown?
- Bubble sort
- Representational abstraction
- Binary search
- Composition of procedures
-
Which of the following represents a compound data structure built using data composition?
- Single character
- Integer constant
- Machine instruction
- Nested list
-
Implementing a stack using an array and a top pointer is an example of what?
- Procedural decomposition
- Automation
- Functional programming
- Data composition
-
If f(x) = x + 3 and g(x) = 2x, what is f(g(5))?
- 13
- 16
- 25
- 11
-
Two procedures are composed so that the first returns a list and the second sums it. What is the result for the list [1, 2, 3]?
- 123
- [1, 2, 3]
- 6
- 3
-
What is the main purpose of composition abstraction in computer science?
- Removing unnecessary details
- Breaking down problems
- Executing compiled code
- Combining simpler components
-
Which process builds compound procedures or data from simpler components?
- Composition
- Generalisation
- Automation
- Decomposition
-
A procedure is built from a sequence of smaller procedures, each used once. Which abstraction is this?
- Representational abstraction
- Information hiding
- Sorting
- Composition of procedures
-
What type of abstraction is formed by combining data objects into a tree structure?
- Procedural abstraction
- Data abstraction
- Functional abstraction
- Control abstraction
-
Combining multiple procedures to form a single compound procedure is an example of what?
- Procedural decomposition
- State transition
- Data modelling
- Procedural composition
-
What is formed when multiple procedures are combined using composition?
- Compound procedure
- State machine
- Abstract data type
- Decomposed module
-
Combining a parser function and a validator function into one single function demonstrates what?
- Decomposition
- Composition
- Encapsulation
- Automation
-
Given square(x) = x * x and add1(x) = x + 1, what is square(add1(2))?
- 5
- 4
- 6
- 9
-
Combining two data items together into a single structure creates what type of data?
- Compound data
- Decomposed data
- Atomic data
- Primitive data
Related quizzes
- Problem-solving and algorithms Quiz · 4.4.1.1 · 20 questions
- Abstraction Quiz · 4.4.1.3 · 20 questions
- Problem reduction and decomposition Quiz · 4.4.1.8 · 20 questions
- Automation Quiz · 4.4.1.11 · 20 questions
- Finite state machines Quiz · 4.4.2.1 · 20 questions
- Regular expressions Quiz · 4.4.2.3 · 20 questions
- Backus-Naur Form and syntax diagrams Quiz · 4.4.3.1 · 20 questions
- Comparing algorithms Quiz · 4.4.4.1 · 20 questions
- Order of complexity Quiz · 4.4.4.3 · 20 questions
- Limits of computation and computable problems Quiz · 4.4.4.4 · 20 questions