Community resourceWorksheet

OCR H446 1.2.4 Programming Languages exam transition

Part 10 of 10 · H446 1.2.4 · Types of programming language

An assessment for H446 1.2.4, intended to be worked independently and without checking answers along the way. It covers the whole topic at examination weight: paired language comparisons, LMC tracing, listing completion and construction, addressing resolution and object-oriented design.

Students will:

  • give paired differences between assembly and high-level languages under examination conditions
  • discuss and justify more than one language choice within a single system
  • trace an LMC routine and complete an input loop that halts when a zero is supplied
  • write LMC code that outputs the smaller of two inputs exactly once
  • design a class with validated state and subclasses that override a shared summary method

Inside: 3 explanation cells, 1 multiple-choice question, 1 fill-in-the-blanks cell, 7 written answers and 1 trace table. 56 marks, about 65 to 80 minutes.

Series: H446 1.2.4 · Types of programming language, part 10 of 10.

Shared by Coding PathwayVerified teacher

  • 13 cells
  • About 75 minutes
  • CC BY-SA 4.0
  • Shared 31 Aug 2026
  • Updated 3 Sept 2026

Preview

The whole resource, exactly as a class sees it. Answers and marking are held back.

Programming Languages examination transition

Complete this assessment independently and without checking answers as you go. Use the command words, supplied evidence and context carefully; correctness is held where the platform supports it.

Multiple choice1 mark

Which pairing is accurate?

  • AAssembly: interpreter only; machine code: assembler
  • BAssembly: assembler; high-level source: compiler or interpreter
  • CProcedural: always low level; OOP: always high level
  • DMachine code: no binary representation
Written answer4 marks

Give two paired differences between assembly and high-level languages.

Use the same criterion on both sides for each difference.

Students type their answer here.

Written answer12 marks

A medical-device team needs a portable records interface and a tiny controller that reads a proprietary sensor with strict memory limits. Discuss language choices for both components and justify why more than one approach may be needed.

Apply portability, development/maintenance, resource use, direct control and translation. Reach a supported conclusion.

Students type their answer here.

Trace table19 marks

Trace this LMC routine for input 3. Record accumulator, N, each output and HLT.

Record values only when they change. Record outputs in order and include the terminating state.

Use one row for each instruction carried out. Fill in a box only when that value changes on that row, and leave the rest blank. Put the address of the instruction being carried out in the Address column.

Input: "3"

ProgramLMC assembly
00INP01STA N02TOPLDA N03OUT04SUB ONE05STA N06BRZ END07BRA TOP08ENDHLT09NDAT 010ONEDAT 1
Trace table with 4 columns
RowAddressACCNOutput
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21

Complete an LMC input loop

Complete the four gaps so one execution repeatedly accepts and outputs non-zero values, then halts when the next input is zero. Use OCR Appendix mnemonics and the supplied labels.

Fill in the blanks4 marks
START   gap 1
        gap 2 FINISH
        OUT
        gap 3 START
FINISH  gap 4
Written answer5 marks

Amend the routine so that an initial input of 0 produces no output, while positive inputs retain the countdown behaviour. Explain the new path.

Use only Appendix LMC commands and make the test occur before the first OUT.

Students type their answer here.

Written answer7 marks

Write LMC code that inputs two different numbers and outputs the smaller exactly once, then halts.

Test both paths and place data after executable code.

Students type their answer here.

Written answer8 marks

Operand = 80, index = 5, memory[80] = 92, memory[85] = 17 and memory[92] = 31. Resolve all four addressing modes, stating route, effective address where applicable and final value.

Do not substitute parameter-passing vocabulary.

Students type their answer here.

Written answer8 marks

Write coherent OCR-style pseudocode for class Subscription with private plan/remainingDays, a two-parameter public constructor, a public extend(days) method that rejects non-positive days, and a getter for remainingDays.

Use the supplied parameters; do not ask for fresh input.

Students type their answer here.

Written answer7 marks

Create subclasses StudentSubscription and SchoolSubscription that inherit Subscription and override a common summary() method. Explain how a list containing both demonstrates polymorphism when a loop calls summary().

Use inheritance, overriding, actual type and one common call.

Students type their answer here.

Review your responses

Check every response against its command word and the supplied constraints. Strengthen unsupported assertions with an accurate mechanism and a contextual consequence before submitting.