0% found this document useful (0 votes)
3 views8 pages

Igcse CH - 4 Worksheet - 1

The document discusses the advantages and disadvantages of using high-level languages versus low-level languages in programming, highlighting aspects like ease of use and hardware manipulation. It explains the role of integrated development environments (IDEs) and the functions of compilers and interpreters in translating code. Additionally, it covers hardware and software interrupts, as well as input and output devices in mobile telephones, and the purpose of operating systems.

Uploaded by

RIHAAN GAWANDE
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views8 pages

Igcse CH - 4 Worksheet - 1

The document discusses the advantages and disadvantages of using high-level languages versus low-level languages in programming, highlighting aspects like ease of use and hardware manipulation. It explains the role of integrated development environments (IDEs) and the functions of compilers and interpreters in translating code. Additionally, it covers hardware and software interrupts, as well as input and output devices in mobile telephones, and the purpose of operating systems.

Uploaded by

RIHAAN GAWANDE
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 8

IGCSE CH -4

2023

A programmer uses a high-level language to create a computer program.


(a)
(i) Identify two advantages to the programmer of using a high-level language
instead of a low-level language.
1 ........................................................................................................................................
2 ................................................................................................................................... [2]
(ii) Suggest one disadvantage to the programmer of using a high-level language
instead of a low-level language.
...................................................................................................................................... [1]

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.

The programmer uses an integrated development environment (IDE) when


creating the computer program.
State what is meant by an IDE.

Ans

Software that provides useful functions for a programmer writing a computer program.

JAGRUT AMIN [9898 206804] Page 1


IGCSE CH -4

Ans

If the programmer chooses a high‑level language, they can use a compiler or an


interpreter to translate the high‑level language into a low‑level language.
Describe the operation of a compiler and of an interpreter.

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

JAGRUT AMIN [9898 206804] Page 2


IGCSE CH -4

Ans
 System
 Application
 Operating
 Hardware

A programmer uses a low‑level language to write a computer program for a


vending machine.
(a) Describe what is meant by a low‑level language.
............................................................................................................................................. [2]
(b) Give two reasons why the programmer would choose to write the computer
program in a
low‑level language instead of a high‑level language.
1 ................................................................................................................................................
2 ................................................................................................................................................
...................................................................................................................................................
[2]

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

JAGRUT AMIN [9898 206804] Page 3


IGCSE CH -4

 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

 It translates the (high-level language) to low-level language/object


code/machine code
 It translates all the code before it is executed
 It creates an executable file

Describe how the compiler reports errors.


Ans
 It creates an error report after trying to compile
 … displaying all errors in the code
 … that require correction before execution can take place
The programmer uses an integrated development environment (IDE) to create
the computer program.
One function of the IDE is that it has the built‑in compiler.
Give three other common functions of an IDE.

Ans
 Code editors
 Run-time environment
 Built-in interpreter
 Error diagnostics
 Auto-completion
 Auto-correction
 Prettyprint

JAGRUT AMIN [9898 206804] Page 4


IGCSE CH -4

Ans
B

ANS

JAGRUT AMIN [9898 206804] Page 5


IGCSE CH -4

ANS
A)

Operating system // Interrupt handler

B)

− Key press generates the interrupt


− Interrupt given a priority
− Interrupt is sent to CPU
− Interrupt is placed in a queue
− CPU stops current task to check the queue/service the interrupt …
− … using an interrupt service routine
− If key press is highest priority the interrupt is processed

Interrupts can be hardware based or software based.


A key press is one example of a hardware interrupt.
(i) Give two other examples of a hardware interrupt.

JAGRUT AMIN [9898 206804] Page 6


IGCSE CH -4

ANS

− Moving the mouse


− Clicking a mouse button
− Plugging in a device
− Paper jam in printer
− Printer out of paper

(ii) Give two examples of a software interrupt.


ANS

− Division by zero
− Two processes accessing the same memory location
− Null value

A mobile telephone has built-in input and output devices.


(a) Give two examples of an input device that would be built into a mobile
telephone.
1 ................................................................................................................................................
2 ................................................................................................................................................
[2]

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

JAGRUT AMIN [9898 206804] Page 7


IGCSE CH -4

The mobile telephone has an operating system.


Describe the purpose of the operating system.

ANS

− It performs the basic functions of a computer


− It manages the hardware
− It provides a platform to run software
− It provides a user interface
− It performs tasks such as (any example of function of an operating system)

JAGRUT AMIN [9898 206804] Page 8

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy