Grade 8 - EOS1 - Revision 1
Grade 8 - EOS1 - Revision 1
GRADE 8 – COMPUTING
Data Types – classification applied to a data item specifying which type of data that item
represent.
Using the example code below, decide whether each variable is a string, an integer or real
and the explain why it Is that data type.
Error Processing
Logic error
Error that allows a program to run but not output what is expected.
Syntax error
Error in program code that stops the program from running. e.g. missing a quotation mark or
spelling a function wrongly
Runtime error
Error that occurs while a program is running; the instructions cannot be completed.
Sequence
Order that program code needs to be in to work correctly.
Conditional statement
Code that includes a condition and will run diDerent code depending on whether the condition
evaluated (calculated) to equal TRUE ! Activity !
or FALSE.
There are syntax errors in the codes, identify what is the error and write the correct code beside
the boxes.
________________________________________________________________________________
________________________________________________________________________________
________________________________________________________________________________
________________________________________________________________________________
________________________________________________________________________________
________________________________________________________________________________
________________________________________________________________________________
________________________________________________________________________________
________________________________________________________________________________
________________________________________________________________________________
Python Codes
Example 1:
Ask the user to enter their name and then display their name three times.
Example 2:
Ask the user to enter a number between 1 and 12 and then display the multiplication table for
that number.
An array is fixed in size and can only contain data of the same type.
Look at the Python program for a chatbot to identify how much money is left from a
shopping trip. Complete the trace table if the amount spent at the three shops was 126, 36
and 56.
• It is important to test program with lots of diDerent types of data to make sure the program
works.
• It also checks that the program cannot be broken, for example, by entering something that
the program cannot use.
• Normal
• Invalid
• Boundary
• Extreme
UNIT 2 – Computer System
Digital Assistant - An electronic device that can be used to help a user complete tasks such as
switching on other appliances, controlling heating systems, searching the internet for
information or organizing music playlist. (EXAMPLES : ALEXA, GOOGLE ASSISTANT, SIRI)
Hardware Is the physical components of the computer, such as CPU, hard disk, monitor,
keyboard and mouse.
Application Software - Software designed to do a particular task (like word processing, web
browser)
System Software - A software that manages all the hardware and application software
available in digital device.
Operating System
Acts as an interface between the computer hardware components and the user and provides a
platform where application can run.
Without the Operating System, the user would not be able to interact with the device and other
program cannot run. It has a number of key task:
Utility Programs - Software that helps maintain the smooth functioning of a digital device by
helping the operating system manage task and resources.
Device Drivers - Software program that operates a hardware device connected to a computer.
Many devices now are known to be plug-and-play devices, meaning that the devices is
automatically detected and set up correctly for use by the OS.
Security Software - Any type of software that secures and protect a digital device Passwords,
PIN (Personal Identification Number), Biometric System such as fingerprints and facial
recognitions. May include firewalls, antivirus, anti-spyware, anti-malware
Disk Defragmenter - Reorganising files stored on a hard drive to ensure that all parts of the
same file is located one after the other on the drive.
Computer Programming Language
FETCH-DECODE-EXECUTE
LOGIC CIRCUITS
All processing inside a digital device is carried out using logic circuits. Most logic gates accepts
two inputs. Logic gates can be represented using the followin g symbols:
Logic gates can be combined to represent conditional statements that have two or more
inputs to consider. Conditional statements. use conditional operators.
Exercise 1:
X = NOT A AND (B OR C)
X = (A OR B) OR NOT C
Exercise 2:
Computer programs are needed to ensure that digital devices operate the way you expect them
to when you are using them. Many digital devices are able to make decisions or perform task that
they were not originally designed or programmed to do; this is made possible through machine
learning.
Machine Learning is found on many of the digital applications you use on a daily basis, such as:
LESSON 01 – SPREADSHEET
Cell Reference - A combination of letters and numbers used to identify cells in a spreadsheet
(example: A1, D3, C5)
Cell Range – collection of cells identified by the starting cell : closing cell (B2:D3)
COUNT function - checks all the cells in a specified range in a spreadsheet and outputs how
many contain a numeric value. Format : =COUNT (B2:C6)
IF function – this evaluates (calculates) a condition and returns diDerent value depending on
whether it was TRUE or FALSE. Format =IF(C3>50, “Pass”,”Fail”)
MIN function – returns the lowest value in a specified range of cells in a spreadsheet. Format
=MIN(B2:C6)
MAX function - returns the highest value in a specified range of cells in a spreadsheet. Format
=MAX(B2:C6)
LESSON 2 – DATABASE
Database – A computer application that is used to organize data that can be stores, processed
and accessed electronically.
Primary Key – A value that is unique for every record in a database and can be used to identify a
record.
• A primary key must not only be numbers, but it should also be a combination of letters
and numbers.
• A primary key cannot be left blank in some records.
Examples of Primary Keys: Student ID, Book ID, Employee ID, License Plate Numbers.
Foreign Key – When the primary key from one table appears in another table to establish a link
between two entities
SQL (Structured Query Language) – Specialized language for accessing data in relational
database.
Query – A search for data in a database that meets specific rules or criteria.
Big Data - Datasets that are too large or complex for traditional data-processing applications, e.g.
databases or spreadsheets, to process.
5Vs - The terms used to describe the concept of Big Data: volume, velocity, variety, value, veracity.