Screen sizes are measured along the diagonal of the screen and is usually quoted in inches. For example, a typical computer monitor or laptop screen may be 15” in size.
Resolution
Screen resolution refers to the quality and level of detail that can be displayed on the screen. The screen is made up of a matrix of individual dots that can be coloured differently. Each dot is know as a picture element or pixel for short.
Example of pixels. Shows a zoomed section of an image to demonstrate how it is made up of pixels.
Maximizing the number of dots in a unit area of the screen will result in a sharper image with more detail , or as we say, a higher resolution image.
A monitor’s screen resolution is denoted as horizontal pixels x vertical pixels. e.g 1920 * 1080
How does Size and Resolution relate to each other?
It’s possible for a monitor with large screen to have a small resolution, to the average person, the screen may display images which are blocky, where the pixels are discernable and the image is not smooth.
It’s also possible to have a very small screen have a high resolution, as in the case of a high end smartphone.
Size and resolution consideration depends on where the screen needed, for example, having a large screen with a low resolution at a train station or airport is feasible since a lot of people can easily view the screen at once , however , we do not require the need to display detailed images, just formatted text or cursive fonts.
On the other side of the spectrum, a graphic artist travelling on a long train ride may opt to get his/her/them/they/us work done on a portable tablet computer which has a small but very high resolution stylus touch screen to allow for fine and detailed designs to be viewed while being created.
When developing a solution to a problem in program code, we usually aim to write a bit of code that implements part of the solution and run it to see if works.
Bugs can start here, they manifest as errors that prevent your code from being compiled or executed out right, or produce incorrect results.
It’s important to note in our context that programs written in source code must be translated to machine code , which is directly executable by your computer’s CPU.
The translation can take place
with the entire file, that is, the entire source code compiled into executable code or
line by line, i.e a single line of source code is interpreted as machine code, then executed and so on.
Syntax , Logical and Runtime Errors
The errors or bugs experienced while we develop our code can be classified into three types:
Syntax – this is were the rules for structuring the code are broken, or not followed which prevents the translation process – this applies to both the compiler and interpreter which performs these tasks. The result of a syntax error is that the entire program cannot be executed. The programmer must fix the errors and try running the program again.
Logical – this is where the translation process completes successfully, but when the program is run it produces incorrect results or undesired behavior. After producing the logical error, the program continues to run indefinitely or until it stops by reaching the end of code produced by the programmer.
For example, let’s say we were developing a solution that would prompt the user to enter 2 numbers, and output the sum, the following are some logical errors:
if the user entered 5.1 and 5, and the program outputs 10, this is an incorrect result
if the user entered 5.1 and 5, and the program doesn’t output anything – this is incorrect behavior
if the user entered 5.1 and 5, and the program continues to prompt the user to enter another and another indefinitely.
Runtime – this is where the program halts abruptly during execution and stops running (sometimes called a crash). It definitely passed the translation process, and can be run successfully in most cases (with or without logical errors), however some cases of user input or abnormal conditions of the computer system , the program crashes. Some reasons include:
the program attempts to divide by 0,
the program tries to access a memory location that it is not allowed to by the operating system
the operating system runs out of resources to provide to the program.
Video
Teacher Demonstration In class: bugs in Flowgorithm
Can you give instructions so clear that nobody could get them wrong? It sounds easy… until you try it! This quick partner activity shows why computers need precise, step-by-step instructions.
In Class Exercise
Students are arranged into groups of two.
✏️ Student 1 – writes instructions for student 2 to perform a simple task. Student 2 is not allowed to see the instructions as they are written.
🎯 Student 2 – Performs the task according to the given instructions.
Tasks include
Drawing
Draw a triangle
Draw a square
Even a simple drawing needs clear instructions! Credit: Revital Salomon, CC BY-SA 4.0, via Wikimedia Commons
Quick check: Did Student 2 ever have to guess what to do? Which word or step caused the most confusion?
Written Instruction in Book
📝 Your task
Instruction: Students are instructed to rewrite the instructions in a concise and precise manner with the expectation that the recipient of the instruction is motivated to achieve the goals of the instruction; i.e. the recipient understands the intent of the instructions and is not subject to trivial misinterpretation which can lead to faults.
NB - not all ports are mentioned in this post e.g ps2, serial, parallel ports etc. This content focuses on the requirements of our NCSE ICT syllabus.
Computer Ports
Computer ports can be found on the system unit and serves as points of connection to various peripheral devices via wired cabled or wireless transmission media.
A view of a system unit’s ports is shown below:
Output Devices And Ports
Video output to a computer monitor (or any other visual display unit [VDU]) can be achieved by sending signals from the system unit’s graphics circuits via specific display port over a cable and to the monitor/screen.
Two types of video ports are VGA and HDMI
VGA – Video Graphics Array
This technology has been around since 1978 , and is essentially a chipset for graphical display. A VGA cable connects one end to the system unit’s VGA port and the other to a VGA port on the VDU (Projector, computer monitor, Smart TV, etc)
The system unit’s VGA port is shown below:
Below is an image showing the end of the cable VGA Cable which connects the VGA Port:
Below is an image shown how the cable is intended to be connected via the port for our VGA technology:
Characteristics of VGA Technology
VGA technology,
is affordable and the cheapest option. VGA only Devices are very cheap, as opposed to other devices that include HDMI etc.
is widespread, popular and can be easily found world wide
can display up to 256 colors
Displays a reliable resolution for most applications, however other technologies can display sharper and clearer images at high resolution.
HDMI – High Definition Multimedia Interface
This is an another output technology which outputs high quality , high resolution video and sound via HDMI ports and cables. One cable’s end connects to the System unit’s hdmi port and the other to a VDU which can also output sound.
An image is shown below of an HDMI Cable:
An image is shown below of an HDMI Cableport on a VDU:
Communication Ports
Communication Ports allow for computer networking.
Ethernet port (RJ45)
This is a very common standard of networking which uses a wired cable connected via and ethernet port. The ethernet cable can be used to connect 2 PCs, or a pc to network hardware, or even one network to the next.
An image of an ethernet cable with a RJ45 connector end is shown next to a laptop’s RJ45 connector(Right). (The port on the left on the laptop is a RJ11 Connector used for land line phone connection):
A special type of port , USB – Universal Serial Bus
USB technology was developed with the intention to connect many device types to the computer system and/or each other via USB Ports and Cables. E.g networking 2 computer systems, connecting to game consoles to each other for playing videogames etc.
Devices include input , output , external storage devices, communications devices and specialized devices.
Input devices
Keyboard, Mouse, Graphics tablets
Output
Printers,VDUs, Audio
External storage devices
Flash Drives, External Hard Drives
Communications devices
Wireless Networking, Wireless Modems
Specialized devices
Security dongles, Video Cameras, Audio equipment, Midi Keyboards and Controllers.
Fire wire
Firewire is a standard similar to USB that was developed to connect multiple device types to the computer system.
Below is an image of a firewire port:
A firewire cable end:
Internal Ports – SATA and IDE
Within the computer’s system unit various ports, connectors and cables are used to connect devices internally so that they can be manipulated by the computer system
Mass storage devices, such as optical disk drives and hard drives, are connected to the system using two types of technologies:
IDE – Integrated Drive Electronics
SATA – Serial Advanced Technology Attachment
IDE – Integrated Drive Electronics
This was an earlier technology which was created for mass storage via the device and a multi wired cable in the form of a ribbon. This method of data transfer uses “parallel communication”. (At this level we will not delve into what parallel communication is, more so that we note that it is a defining characteristic of the technology.)
An IDE Hard drive is shown below with a space of connection to the ribbon cable on the bottom left:
An IDE ribbon cable is shown below for connection to either the storage device or the computer system’s circuitry (motherboard):
An IDE Connector on the computer system’s circuitry (motherboard)
SATA – Serial Advanced Technology Attachment
SATA was developed as an improvement over older IDE/PATA technology. SATA connects mass storage devices using SATA ports and cables. This method of data transfer uses “serial communication”. SATA data cables are less bulky than IDE ribbon cables. SATA generally supports higher data transfer rates than older IDE/PATA technology. The actual speed depends on the version of SATA and the storage device being used.
Below is a picture of a SATA hard drive:
A SATA Data Cable
Below is an image of SATA Cables connected to the computer system’s circuitry (Motherboard)
UPDATES TO THIS POST
28th Sept 2022 – Added “Smart TV with a HDMI port” as an example for a VDU. 17th Nov 2026 – Corrected SATA data transmission to serial communication following a helpful observation by Savir Singh (Form 3S). Clarified the comparison of SATA and IDE/PATA transfer speeds by removing the unsupported “45 times faster” claim.
pen down
repeat 3
move 200 steps
repeat 2
turn right 120 degrees
move 200 steps
end repeat
repeat 2
turn left 120 degrees
move 200 steps
end repeat
turn right 120 degrees
end repeat
Draw the shapes from the following snippets of scratch code:
Exercise 1
pen down
repeat 4
move 100 steps
turn right 90 degrees
end repeat
Exercise 2
pen down
repeat 3
move 100 steps
turn right 120 degrees
end repeat
Exercise 3
pen down
repeat 3
move 200 steps
repeat 2
turn right 120 degrees
move 200 steps
end repeat
repeat 2
turn left 120 degrees
move 200 steps
end repeat
turn right 120 degrees
end repeat
Task: Create a solution which accepts 10 temperatures in Celsius and outputs “it is hot” if the temperature is greater than 30 degrees, otherwise output “it is cold”
Start
// Task: Create a solution which accepts 10 temperatures in Celsius and outputs "it is hot" if the temperature is greater than 30 degrees, otherwise output "it is cold"
//
// Start Declaring Variables
// End Declaring Variables
// Start Variable Initialization
//
counter = 1
maximum = 10
currentTemperature = -999.99
// End Variable Initialization
//
loop while counter <= maximum
output "Please enter temperature value #" + counter
input currentTemperature
if currentTemperature > 30 then
output "it is hot"
else
output "it is cold"
end If
counter = counter + 1
end while
output "Ending program"
end