Skip to content

b. Test Your Knowledge

Activity A - Multiple-Choice Review (1 mark each)

(Recall-style, Section A format)

1. Which data structure is best for storing a set of scores of the same data type in order?

A. Record

B. Array

C. Function

D. Class

Answer

B. Array


2. Which statement best describes a record?

A. A loop that stores repeated values

B. A collection of related fields that may use different data types

C. A method that returns a value

D. A Boolean value used for decisions

Answer

B. A collection of related fields that may use different data types


3. What is the main difference between a function and a procedure?

A. A function is always longer

B. A procedure always uses arrays

C. A function usually returns a value, while a procedure usually performs an action

D. A procedure can only exist inside a class

Answer

C. A function usually returns a value, while a procedure usually performs an action


4. Which OOP principle is mainly about hiding unnecessary complexity from the user?

A. Encapsulation

B. Abstraction

C. Validation

D. Sequencing

Answer

B. Abstraction


5. Which OOP principle helps protect data from unsafe direct changes?

A. Abstraction

B. Encapsulation

C. Iteration

D. Scope

Answer

B. Encapsulation


Activity B - Short Answer Practice (2-4 marks each)

(Section B format - active recall)

1. Explain one difference between an array and a record.


2. Describe one situation where a list may be more useful than separate individual variables.


3. Explain why functions and procedures help improve program structure.


4. Distinguish between a class and an object.


5. Explain abstraction using a real-world or software example.


6. Explain why encapsulation supports data integrity.


Activity C - Scenario Application (3-6 marks each)

(Section C style - applied retrieval)

Scenario 1 - Student result tracker

A program needs to store:

  • a list of five test scores
  • one student's first name, house and year level together

Tasks:

  1. Identify the most suitable data structure for the list of scores.
  2. Identify the most suitable structure for the grouped student details.
  3. Explain why each choice is suitable.

Scenario 2 - Reusable calculation

A programmer writes the same average-score calculation in three different places in a program.

Tasks:

  1. State one better programming approach.
  2. Explain why that approach is better.
  3. Identify whether the calculation would more likely suit a function or a procedure.

Activity D - Extended Response (6-8 marks)

(Analytical / evaluation task)

Prompt:

Discuss how data structures, modular programming and OOP principles help programmers manage larger solutions more effectively.

In your response, refer to:

  • at least one data structure
  • functions, procedures or methods
  • abstraction and encapsulation