2210/11/M/J/20 question 9: worked solution (May/June 2020, paper 11)

Show as plain text

Cambridge O Level Computer Science 2210 · 1.1 Number systems Worked solution from the Data representation Paper 1 Computer Systems booklet, Part 1 of 3. Q1 2210/11/M/J/20 original Q9 Structured · 11 marks Worked solution (a) Write any three features of a low-level language: It is close to machine code . [1] It may use mnemonics . [1] It may need an assembler to translate it. [1] One line of code is one single instruction . It is machine dependent . It has direct access to memory locations and registers . Write any three of these. (b) Write two different examples: Assembly language [1] Machine code [1] (c) Write any one drawback: It is more difficult to understand than a high-level language. [1] Other accepted answers: error prone; you must handle memory locations yourself; machine dependent. (d)(i) Use place values 128, 64, 32, 16, 8, 4, 2, 1. 180 = 128 + 32 + 16 + 4, so write 10110100 [1] 201 = 128 + 64 + 8 + 1, so write 11001001 [1] (d)(ii) 250 = 128 + 64 + 32 + 16 + 8 + 2. In 8 bits this is 11111010. Add four leading zeros to make 12 bits: 000011111010 [1] (d)(iii) Split each value into two groups of 4 bits and change each group to hexadecimal. 10010011: 1001 = 9 and 0011 = 3, so write 93 [1] 00011101: 0001 = 1 and 1101 = D, so write 1D [1] KEY IDEA Binary to denary uses place values; binary to hexadecimal uses groups of 4 bits. TOTAL 11 marks Official mark scheme VIDEO ▶ Topic lesson A lesson on this topic · by Mr Bulmer's Learning Zone. Tap the picture to open it on YouTube.