Subtopic Notes

A - Introduction

9-11. Data Types and Structures, Programming

Note: In this chapter, the notes do not follow the exact sequence of the syllabus. Instead, they are structured in a way that makes it easier for candidates to understand the content and follow the flow. The content of Chapters 9-11 can be found in this chapter.

Programming is the process of writing instructions in a language a computer can understand to solve problems or perform tasks. It is a transferable skill, meaning the skills developed for one scenario can be easily transferred to another.

Algorithm

Solution to a problem expressed as a sequence of defined steps

Stages of Computer Program

  • Input: Takes in values from the user to the program
  • Storage: Temporarily or permanently saves data for use during or after program execution
  • Process: Operations that transform inputs into outputs
  • Output: Displays values to the user

Output

PYTHON

Python can be executed directly in the browser.

Editor — Python
Output
No output yet.

PSEUDOCODE

Pseudocode uses basic Cambridge-style keyword highlighting. Execution is not supported yet.

Editor — Pseudocode

Comments

You may wish to write something in the code which the computer will ignore which is why comments are needed. Text written in a program but not run by the computer is called a comment. These are basically used to explain why a part of code is used, help other people reading the code understand it faster, or Ignore a line of code.

PYTHON

Python can be executed directly in the browser.

Editor — Python
Output
No output yet.

PSEUDOCODE

Pseudocode uses basic Cambridge-style keyword highlighting. Execution is not supported yet.

Editor — Pseudocode