Using an example, explain a difference between a primary key and a foreign key in a relational database.
A primary key is a table field that uniquely identifies each record and ensures that duplicate entries are not allowed
A foreign key is primary key of a parent table placed in a child table to ensure that any record added to a child table is related to the one in parent table.
A foreign key is a field (or a set of fields) in one table that refers to the primary key of another table. It is used to establish and enforce a link between the data in the two tables, ensuring referential integrity.
Identify and describe four roles of the operating system when managing the resources of a personal computer.
Manages memory (RAM)
Ensures programs/data do not corrupt each other: Ensures all programs and data including itself is stored in correct memory locations
Manages processes: Ensures different processes can utilise the CPU and do not interfere with each other or crash •
Allows a user to run programs : On a multi-tasking O/S ensure that all tasks appear to run simultaneously
Define the term variable as used in programming
A variable is a memory location used to store a value
During data entry, Anne typed the letter S instead of 5. What type of error is this? (1mark)
Misreading error
List Three file organisation methods in a computer
State four factors to consider when acquiring computer software
State three features of the fifth generation computers (3mks) [2017 paper 1]
State three documents that are used during mail merging in word processing
b) Give one benefit of each type of data transmission
Serial
State five functions of network operating system
Describe the input, processing and output from a computerised traffic-control system.
input
processing
output
Why must operating system be installed in a computer before any other program
List two areas where infrared waves are used in data communication.
TV remote, wireless mouse , wireless keyboard, used by robots to gauge distance and avoid obstacles,
Explain two computer hardware features that may be considered when selecting a laptop computer to be used in developing a KCSE computer studies project (4mks)
Multimedia Capability - A laptop with strong multimedia capabilities is essential for a computer studies project submitted on CD-RW. This ensures that the laptop can efficiently handle multimedia content, providing a seamless experience in creating and presenting project materials.
Processor Speed - Opting for a laptop with a high processor speed is crucial. This feature enables the smooth execution of multiple applications simultaneously, enhancing overall project efficiency and reducing processing delays.
Hard Disk Capacity - Consider a laptop with ample hard disk capacity, as the Microsoft Office suite used in computer projects requires significant space for the installation and storage of project files. A spacious hard drive ensures that there is sufficient room for data and applications.
Main Memory Capacity - Given that students often work with multiple programs concurrently during a project, it's important to choose a laptop with an adequate main memory size. A smaller main memory may result in performance issues, hindering the seamless operation of various software applications during project development.
802.3 is the standard for ethernet wired networks and 802.11x is the standard for ethernet
wireless networks.
Outline why standards such as these are important in the development of network devices and
software.
Students are using their wireless notebooks to complete their work in a classroom. They will need to connect wirelessly to a printer to print their answers at the end of the lesson.
Describe how CSMA/CA (Carrier-sense multiple access with collision avoidance) operates in the above scenario.
State advantages of solid state storage media
A school intends to install a computer network. Explain three challenges that the school may experience after the installation (KCSE 2021 Computer Studies Q19(b))
Network Failure - when the network becomes faulty or the network is down, users may not access network resources hence operations of an organization may be brought to a standstill
Security Issues: A computer network can be accessed thus there is an increased chance of hacking
The rapid spread of viruses: Viruses can easily spread to terminals of a computer network which may be very expensive to clear
Cultural and moral effects: adult content may be shared in a networked environment which may be of negative impact on teenagers
State advantages and disadvantages of the following system implementation strategies
Phased:
Advantages:
Disadvantages:
Pilot:
Advantages:
Disadvantages:
Direct:
Advantages:
Disadvantages:
Parallel:
Advantages:
Describe each of the following types of a program errors, giving an example in each case.
(i) Syntax error.
(ii) Logic error.
(iii) Arithmetic error/runtime error
(i) Incorrect use of language, e.g. PLINT instead of PRINT
(ii) A mistake in the structure of the solution, e.g. a jump goes to the wrong line
(iii) Inappropriate arithmetic is used, e.g. division by 0 is attempted