ECZ Grade 12 Computer Studies Programming & Database Guide

Computer Studies 7010 in the Senior Secondary ECZ curriculum covers algorithm design, pseudocode, flowcharting symbols, database architecture, and software development methodologies. Master these core theoretical and practical skills for Paper 1 and Paper 2 exams.

Pseudocode Exam Rule:

In ECZ Computer Studies, pseudocode algorithms must use uppercase keywords (e.g., INPUT, OUTPUT, IF...THEN...ELSE, WHILE...DO) and proper indentation!

1. Flowcharts & Pseudocode Algorithm Design

Candidates must trace and write algorithms for common mathematical procedures (e.g., finding the average of numbers, calculating tax, or identifying maximum values).

Standard Flowchart Symbols:
  • Oval (Terminator): Indicates Start or Stop.
  • Parallelogram (Input/Output): INPUT score or PRINT "Passed".
  • Rectangle (Process): Arithmetic operations or variable assignment (e.g., total = sum + 5).
  • Diamond (Decision): Conditional checks (e.g., mark >= 50?) with YES/NO branches.
Pseudocode Construct Standard ECZ Syntax Example Execution Logic
Selection (IF) IF mark >= 50 THEN
  OUTPUT "Pass"
ELSE
  OUTPUT "Fail"
ENDIF
Executes the THEN branch if true; otherwise executes ELSE branch.
Count Loop (FOR) FOR i = 1 TO 10 DO
  OUTPUT i
ENDFOR
Repeats loop body exactly 10 times with counter variable i.
Condition Loop (WHILE) WHILE count < 5 DO
  INPUT num
  count = count + 1
ENDWHILE
Evaluates condition before each iteration. Loop stops when condition becomes FALSE.

2. Relational Database Concepts & SQL Queries

ECZ Paper 2 practical and Paper 1 theory examine relational database design:

  • Fields & Records: Fields are vertical table columns (data attributes); Records are horizontal rows (single entity data).
  • Primary Key vs Foreign Key: Primary key uniquely identifies a record (e.g., Student_ID). Foreign key links to a primary key in another table to establish 1-to-many relationships.
  • Basic SQL Query Syntax:
    SELECT Student_Name, Exam_Mark
    FROM Students_Table
    WHERE Exam_Mark >= 50
    ORDER BY Exam_Mark DESC;
Teacher Lab Strategy:

Have candidates build relational database tables in Microsoft Access during lab sessions, defining data types (Text, Number, Date/Time, Currency) and running criteria queries.

Parent Support:

Encourage your child's interest in ICT. Digital literacy and database management are high-demand career skills across banking, healthcare, and software development in Zambia.

Offline Pseudocode Practice:

Practice hand-writing 5 pseudocode algorithms on paper weekly. Check your logic by dry-running trace tables with sample numerical inputs.

Frequently Asked Questions

What is the difference between a Primary Key and a Foreign Key in databases?
A Primary Key uniquely identifies a record in a table. A Foreign Key is a field in one table that links to the Primary Key of another table to establish relationships.
What are the 6 stages of the System Development Life Cycle (SDLC)?
The 6 stages of SDLC are: Analysis, Design, Development & Testing, Implementation, Documentation, and Maintenance.
How do loop structures work in pseudocode (FOR vs WHILE)?
A FOR loop is a count-controlled loop used when the exact number of iterations is known. A WHILE loop is condition-controlled and continues while a condition remains TRUE.