Igcse CH - 4 Worksheet - 1
Igcse CH - 4 Worksheet - 1
2023
Ans
i)
• it is easier / quicker to read/write/understand
• it is easier / quicker to debug
• code is portable.
ii)
• not able to directly manipulate the hardware
• may need to wait for translation before running
• program may be less efficient.
Ans
Software that provides useful functions for a programmer writing a computer program.
Ans
Ans
Compiler
• Checks all code before executing any code
• Produces error report with all errors found for the whole code (before
translating/running any of the code)
• Produces executable file
Interpreter
• Checks/translates one line of code and then executes it before moving on to the next
line
• Stops when an error is found
• … when corrected the program can be run from the same position // allows error
correction in real time
Ans
System
Application
Operating
Hardware
Ans
a)
Close to the language processed by computers
May use mnemonics
An example is assembly language/machine code
b)
Can directly manipulate the hardware
No requirement for the program to be portable
Program will be more memory efficient
No requirement for a compiler/interpreter
Quicker to execute
Can use specialised hardware
Ans
C
The programmer uses a compiler to translate the computer program.
(i) Describe how the compiler translates the computer program.
Ans
Ans
Code editors
Run-time environment
Built-in interpreter
Error diagnostics
Auto-completion
Auto-correction
Prettyprint
Ans
B
ANS
ANS
A)
B)
ANS
− Division by zero
− Two processes accessing the same memory location
− Null value
ANS
− Touchscreen
− Microphone
− Keyboard
− Keypad
− Digital camera
− Sensor // by example
− Biometric device
− Button
(b) Give one example of an output device that would be built into a mobile
telephone.
ANS
− Screen
− Speaker
− LED/Light
− Actuator/Motor
ANS