Lesson Notes By Weeks and Term v5 - Grade 12

Revision and examination preparation (Grade 12 IT) – Week 4 focus

Download the Lessonotes Mobile South Africa app for faster lesson access on Android and iPhone.

Subject: Information Technology

Class: Grade 12

Term: Term 4

Week: 4

Theme: General lesson support

Lesson Video

This page supports the lesson note with a companion video and a short classroom-ready summary.

For class groups and homework, share this lesson page so learners also get the summary, objectives, and full lesson context.

Performance objectives

Lesson summary

This week is dedicated to intensive revision and examination preparation. We'll be focusing on topics crucial for your Grade 12 IT exam, with an emphasis on problem-solving and application of knowledge. This revision isn't just about memorizing facts; it's about understanding how different IT concepts connect and how you can use them to create innovative solutions. In a world increasingly reliant on technology, a solid understanding of IT is essential, opening doors to various career paths, from software development to data analysis, and even entrepreneurial ventures addressing uniquely South African challenges.

Lesson notes

This week's focus is a comprehensive revision of core IT topics. Let's dive into some key concepts and provide detailed explanations. A. Object-Oriented Programming (OOP) in Delphi OOP is a programming paradigm that revolves around "objects," which are instances of classes. A class is a blueprint or template that defines the characteristics (attributes) and behavior (methods) of an object.

Encapsulation: Bundling data (attributes) and methods that operate on that data within a class. This protects the data from outside access and manipulation, promoting data integrity.

Example: Imagine a `BankAccount` class. Attributes would be `accountNumber`, `accountHolderName`, and `balance`. Methods could be `deposit()`, `withdraw()`, and `getBalance()`. Encapsulation ensures that the balance can only be modified through the `deposit()` and `withdraw()` methods, preventing direct, potentially erroneous changes. This is particularly crucial in financial applications, common in South Africa's banking sector.

Inheritance: Allows a class (subclass or derived class) to inherit properties and methods from another class (superclass or base class). This promotes code reusability and reduces redundancy.

Example: A `SavingsAccount` class could inherit from the `BankAccount` class. `SavingsAccount` would inherit the `accountNumber`, `accountHolderName`, `balance`, `deposit()`, and `withdraw()` methods. It could then add its own attributes like `interestRate` and methods like `applyInterest()`. This reflects real-world banking practices.

Polymorphism: The ability of an object to take on many forms. This is achieved through method overriding (in subclasses) and interfaces.

Example: Both `SavingsAccount` and `ChequeAccount` inherit from `BankAccount`. The `calculateFees()` method, however, might be implemented differently in each class (overridden) to reflect the different fee structures of savings and cheque accounts. This allows you to treat both types of accounts generically as `BankAccount` objects while still applying the correct fee calculation.

Delphi-Specific OOP Concepts: Properties: Provide controlled access to class attributes. They often include `read` and `write` access specifiers, allowing you to execute code when an attribute is accessed or modified. Constructors (Create) and Destructors (Destroy): Special methods used to create and destroy objects. The constructor initializes the object's attributes, while the destructor releases any resources held by the object. It is critical to correctly use destructors to prevent memory leaks. B. Relational Databases and SQL Relational databases organize data into tables with rows (records) and columns (fields). Relationships between tables are established using keys. SQL (Structured Query Language) is used to interact with relational databases.

Key Concepts: Primary Key: A unique identifier for each record in a table (e.g., `studentID` in a `Students` table).

Foreign Key: A field in one table that refers to the primary key of another table, establishing a relationship (e.g., `courseID` in a `Enrollments` table, referencing the `courseID` in the `Courses` table).

Relationships: One-to-One: One record in table A corresponds to at most one record in table

B. One-to-Many: One record in table A can correspond to many records in table

B. Many-to-Many: Many records in table A can correspond to many records in table B (typically implemented using a junction table).

SQL Commands: `SELECT`: Retrieves data from one or more tables. `INSERT`: Adds new data to a table. `UPDATE`: Modifies existing data in a table. `DELETE`: Removes data from a table. `CREATE TABLE`: Creates a new table. `ALTER TABLE`: Modifies an existing table. `JOIN`: Combines data from two or more tables based on a related column.

Example Scenario (South African context): Tables: `Learners` (learnerID, name, surname, grade), `Subjects` (subjectID, subjectName), `Marks` (learnerID, subjectID, mark).

SQL Query: To retrieve the names of all learners who scored above 80 in Mathematics: ```sql SELECT L.name, L.surname FROM Learners L JOIN Marks M ON L.learnerID = M.learnerID JOIN Subjects S ON M.subjectID = S.subjectID WHERE S.subjectName = 'Mathematics' AND M.mark > 80; ``` This is relevant to tracking student performance and identifying areas for improvement in South African schools. C. Networking Basics Networking involves connecting devices to share resources and communicate.

Network Topologies: Bus: All devices connect to a single cable. Simple but vulnerable to failure.

Star: All devices connect to a central hub or switch. More reliable than bus.

Ring: Devices connect in a closed loop. Data travels in one direction.

Mesh: Each device connects to multiple other devices. Highly redundant but expensive.

Network Protocols: TCP/IP (Transmission Control Protocol/Internet Protocol): The foundation of the internet. Manages data transmission.

HTTP (Hypertext Transfer Protocol): Used for transferring web pages.