7 (a) A low-level language is used to write programs that directly control the hardware of a computer.
Identify the:
low-level language: ........................................
translator used: ........................................
7 (b) A high-level language can be translated into a low-level language, using a compiler or an interpreter.
Describe the advantages of using an interpreter instead of a compiler during software development.
7 (c) Integrated development environments (IDEs) provide translators.
Identify three other common functions of an IDE.
6 (a) Complete the paragraph about asymmetric encryption.
Use the terms from the list:
algorithm binary cipher text compression error hardware hexadecimal meaningless plain text private public readable transmission unreadable
Data is encrypted using an encryption key. This is a type of ................... that scrambles the ................... and turns it into ................... . This makes the data ................... .
A ................... key is used to encrypt the data. This key cannot be used to decrypt the data. A ................... key is used to decrypt the data. Any device is able to request the ................... key, but only your device knows the ................... key.
6 (b) Data can also be encrypted using symmetric encryption.
Give one reason why a person would use asymmetric encryption instead of symmetric encryption.
9 (a) Each computer has an operating system. One function of the operating system is to manage memory.
Describe the role of the operating system in managing memory.
A programmer writes a program to store and sort all the data for the books in her home library.
(a) The programmer uses a high-level language to write the program.
One reason for writing the program using a high-level language is that it is easier to read and write.
Give two other reasons why the programmer chose to use a high-level language.
1
2
[2]
One function of the IDE is to provide a translator.
(i) Complete the statements about translators.
Use the terms from the list. Some of the terms will not be used. You should only use a term once.
all together all assembler binary error
executable file executing interrupt line by line
partial code some translating whole code
A compiler translates the at once before it. A compiler produces an error report that displays errors.
An interpreter translates and executes the code . An interpreter stops execution when an is found and continues once it is corrected.
[5]
State the role of each function.
Function 1
Role
Function 2
Role
[4]
(i) Identify a suitable type of printer that she could use to print this list.
[1]
Give a suitable method of data transmission that could be used to connect the computer to the printer.
Explain your choice.
Data transmission method
Explanation
[6]
Describe how an even parity check detects an error.
[4]
4 A computer has an operating system. One function of the operating system is handling interrupts.
(a) Describe the role of the operating system in handling interrupts.
[2]
(b) Give two other functions of an operating system.
1
2 [2]
(c) Hardware and software interrupts are two types of interrupt.
(i) Give one example of a hardware interrupt.
[1]
(ii) Give one example of a software interrupt.
[1]
(d) The computer game developers use a high-level language to create a computer game.
(i) State what is meant by a high-level language.
(ii) One benefit of using a high-level language is that the code is easy to debug.
Give two other benefits of using a high-level language.
1 .........................................................................................................................................................................................................
2 .........................................................................................................................................................................................................
(iii) One drawback of using a high-level language is that it must be converted to a low-level language before it can be run.
Give one other drawback of using a high-level language.
(iv) The computer game developers use an interpreter instead of a compiler when developing the computer game.
Explain why an interpreter would be more appropriate for developing the computer game.
(b) Handling interrupts is one function of an operating system.
(i) An interrupt is sent to the CPU every time a key is pressed on the keyboard.
Give the name of this type of interrupt.
(ii) Give the name of the program that services the interrupt.
(iii) Give one other function of an operating system.
3 A programmer uses assembly language to create a program for a coffee machine.
(a) Describe what is meant by assembly language.
(b) Identify the translator needed for assembly language.
(c) Tick (✓) one box to show which statement is an advantage of using assembly language.
| A | It is close to human language. | ☐ |
| B | It is memory efficient. | ☐ |
| C | It is easy to debug. | ☐ |
| D | It is machine independent. | ☐ |
(c) The computer game is programmed using a high-level language.
Explain one difference between a high-level language and a low-level language.
...................................................................................................................................................................................................................
...................................................................................................................................................................................................................
...................................................................................................................................................................................................................
......................................................................................................................................................................................... [2]
(d) The programmer uses translators to translate the high-level language source code into machine code.
Identify the name of the translator that would be used for each of the statements. Each name may be used more than once.
(i) Translates and executes the source code one line at a time.
................................................................................................................................................................................................. [1]
(ii) Translates the source code and will not execute it if errors are found. It instead produces a full report of the errors in the source code.
................................................................................................................................................................................................. [1]
(iii) Translates the source code and produces an executable file.
................................................................................................................................................................................................. [1]
(iv) Stops execution of the machine code where an error is found and will resume execution of the machine code once the error is fixed.
................................................................................................................................................................................................. [1]