Screen size and resolution

Size

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.

Display size measurements

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.

Pixel-example
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.

Haneda-Airport-T2-STA Monorail-Gate-LED

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.

T-FLEX CAD - Коллективная работа

Attributions to media used in this post:

florisla, CC BY-SA 2.0, via Wikimedia Commons

ed g2s • talk, CC BY-SA 3.0, via Wikimedia Commons

MaedaAkihiko, CC BY-SA 4.0, via Wikimedia Commons

TopSystemsLTD, CC BY-SA 4.0, via Wikimedia Commons

© 2023 islandclass.org

.

Debugging in Context with Flowgorithm

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

© 2023 islandclass.org

Computational Thinking  – A simple task! (Optional Class Activity)

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
A pencil resting on white paper next to a simple hand-drawn smiley face
Even a simple drawing needs clear instructions!
Credit: Revital Salomon, CC BY-SA 4.0, via Wikimedia Commons

Dancing

Do the floss[1]

Discussion

💬 Talk about it

Were the instructions precise?

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.

Flowchart: Lamp doesn't work. Lamp plugged in? If no, plug in lamp. If yes, bulb burned out? If yes, replace bulb; if no, repair lamp.
Precise instructions can be written as steps or drawn as a flowchart, like this one for fixing a lamp.
Credit: Booyabazooka (SVG), Wapcaplet (original PNG), CC BY-SA 3.0, via Wikimedia Commons

Where does this fit in computational thinking?

Decomposition
Breaking a task into smaller steps.

Pattern recognition
Spotting steps that repeat.

Abstraction
Keeping only the details that matter.

Algorithms
Writing precise steps in the right order – today’s focus!

Moving from Documenting an Activity to Solving Problems

When solving a problem, the following steps are to be followed:

  1. Information gathering;
  2. Brainstorming;
  3. Identification of resources;
  4. Evaluation of pros and cons of multiple solutions;
  5. Determining most feasible solution.

See the plan for next class discussion here: Problem Solving Discussion

Homework

🏠 Try it at home

Visit scratch.mit.edu and create an account for class next week.

Tip: if you are under 13, ask a parent or guardian to help you sign up.

Related posts


[1] https://metro.co.uk/2018/04/18/floss-dance-created-everyone-7476359/

Attributions

Updates to this post

  • October 2026 – Refreshed layout and added visuals.

© 2022 Vedesh Kungebeharry. All rights reserved.

Hardware Specifications – Computer Ports

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:

ATX Computer cases, back view

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:

VGA port

Below is an image showing the end of the cable VGA Cable which connects the VGA Port:

Vga-cable

Below is an image shown how the cable is intended to be connected via the port for our VGA technology:

VGA-Buchse+Stecker

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:

HDMI Cable 1

An image is shown below of an HDMI Cable port on a VDU:

Connectors LAN RCA HDMI SCART

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):

RJ-45-Stecker-und-Buechse

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:

FireWire 800 port

A firewire cable end:

Firewire800

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:

200 Gb 7200 rpm Western digital ide hard drive

An IDE ribbon cable is shown below for connection to either the storage device or the computer system’s circuitry (motherboard):

PATA-cable

An IDE Connector on the computer system’s circuitry (motherboard)

IDE Connectors in PCChips M925LR Pentium 4

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:

Micro SATA pin-out on Toshiba MK1216GSG 20131114

A SATA Data Cable

SATA-cable

Below is an image of SATA Cables connected to the computer system’s circuitry (Motherboard)

SATA2

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.


Attributions to media used in this post

© 2022 islandclass.org

What do these scratch programs draw? – Solutions

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    

Solution: https://scratch.mit.edu/projects/700717121

https://upload.wikimedia.org/wikipedia/commons/3/3e/Drawing_Exercise_1.png

Exercise 2

pen down
repeat 3
    move 100 steps
    turn right 120 degrees
end repeat

Solution: https://scratch.mit.edu/projects/700720654

https://upload.wikimedia.org/wikipedia/commons/c/c6/Drawing_Exercise_2.png

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

Solution: https://scratch.mit.edu/projects/700721746

https://upload.wikimedia.org/wikipedia/commons/1/1f/Drawing_Exercise_3.png

Animated solution:

https://upload.wikimedia.org/wikipedia/commons/a/a1/Drawing_Exercise_3_-_Animation.gif

Solution with more pauses: https://scratch.mit.edu/projects/638143905

© 2022 islandclass.org

What do these scratch programs draw?

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

© 2022 islandclass.org

Scratch – Selection, Sensing, Repetition, Outputting Results.

Task 1

Create a solution in scratch which accepts a mark from the user and outputs whether or not the mark is a pass or a fail. Assume the pass mark is 50.

Solution: https://scratch.mit.edu/projects/699663431

Task 2

Modify your solution above to keep on prompting the user indefinitely and keep track of the number of marks entered.

In the above scenario, we add:

  • a forever block to achieve indefinite/infinite repetition
  • a variable to keep track of the number of marks, numMarks
  • the join operator to output results

Previously recorded classes

Input Sensing, Finding a pass Mark Form 3A – 2026-05-06_13-26-38

Updates to this post

2026-05-05: Added Previously recorded class section, recorded class from this date, and this update section

© 2022 islandclass.org

Selection and Iteration exercise

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”

Solution

See flowgorithm files here:

https://drive.google.com/drive/folders/1lvuR4sNPoV8ZfWN_GPL1DnZewjNm3bES?usp=sharing

Flowchart

Source: https://upload.wikimedia.org/wikipedia/commons/3/3a/Looping_and_Selection_Exercise.png

Pseudocode

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 

© 2022 islandclass.org