Past Papers
Multimedia
Forum
QuizHub
Tutorial
School

Computer Science 9618/42 May June 2021 | Cambridge AS Level Past Papers With Mark Scheme

1. Declaration and initialization of a record type node, 1D array `linkedList`, and pointers for an unordered linked list with procedures for outputting, adding, and testing nodes in a high-level programming language (Python, Java, Visual Basic). Keywords: `linkedList`, `addNode`, `outputNodes`.

2. Implementation of a 1D array `arrayData` storing integers, a linear search function `linearSearch()` with user interaction for input and output, and a bubble sort procedure for descending order. Keywords: `arrayData`, `linearSearch`, `bubbleSort`.

3. Object-oriented programming class `TreasureChest` with attributes (`question`, `answer`, `points`), methods (`getQuestion`, `checkAnswer`, `getPoints`), and procedures for data handling from a text file, including exception handling for file errors. Keywords: `TreasureChest`, `object-oriented programming`, `class diagram`.

4. Program handling user input to select questions, validate answers through methods (`checkAnswer`, `getPoints`), and calculate awarded points based on attempts using the class `TreasureChest`. Keywords: `user interaction`, `attempt-based scoring`, `method testing`.

5. Testing programs by validating inputs, outputs, and program behavior under various scenarios including linked list operations, search and sort functions, and question-answer systems in games. Keywords: `testing`, `debugging`, `validation`.

6. Application of programming principles such as array manipulation, function declaration, object-oriented design, exception handling, and user-interface integration within practical tasks. Keywords: `programming principles`, `array manipulation`, `exception handling`.

Laura Bellini

Classification: Paper 4
Page count: 12
Viewed: 75
Last update: 2 months ago
Crash report
Create Quiz

Releated questions

Related Past Papers