iGCSE Computer Science
  • Introduction
  • Past Papers
    • Set of 2019
    • Set of 2021
  • Pre-Exam Notes
    • Paper 1
    • Paper 2
  • Data Representation
    • 1.1 Number Systems
    • 1.2 Text, Sound & Images
    • 1.3 Data Storage & File Compression
  • Data Transmission
    • 2.1 Types & Methods of Data Transmission
    • 2.2 Methods of Error Detection
    • 2.3 Symmetric & Asymmetric Encryption
  • Hardware
    • 3.1 Computer Architecture
    • 3.2 Input & Output Devices
    • 3.3 Data Storage
    • 3.4 Network Hardware
  • Software
    • 4.1 Types of Software & Interrupts
    • 4.2 Types of Programming Languages, Translators & IDEs
  • The Internet & Its Uses
    • 5.1 The Internet & The World Wide Web
    • 5.2 Digital Currency
    • 5.3 Cyber Security
  • Automated & Emerging Technologies
    • 6.1 Automated Systems
    • 6.2 Robotics
    • 6.3 Artificial Intelligence
  • Databases (P2)
    • 9.1 Databases
  • Boolean Logic (P2)
    • 10.1 Logic Gates
  • Miscellaneous (P2)
    • Flowchart Symbols
    • Standard Methods of Solution
    • Validation & Verification
    • Identifying Errors
Powered by GitBook
On this page
  • Local Variables
  • Global Variables
  • Types of Test Data
  • Data Types
  • Functions
  • Flowchart Symbols
  • Types of Statements
  • SQL Commands
  • Types of Checks
  • Definitions

Was this helpful?

  1. Pre-Exam Notes

Paper 2

Last minute exam notes to go through before sitting the Paper 2 exam.

PreviousPaper 1Next1.1 Number Systems

Last updated 6 months ago

Was this helpful?


Local Variables

  • Only accessible within a function

  • Not visible outside the function

  • Used to store temporary data or values


Global Variables

  • Accessible throughout the whole program and visible throughout the code

  • Variable exists as long as the program is running

  • Used to store values that need to be modified or accessed by the program


Types of Test Data

There are 4 types (for more info go ):

  1. Normal

  2. Abnormal

  3. Extreme

  4. Boundary


Data Types

You can have a string, character, Boolean, integer, and a real number.

To define a string -> it's a group of characters consisting of letters, numbers, and special characters. To define a character -> it's a single character, or letter

If asked to give an example of any of the above, make sure that your answer includes everything within the definition of that specific data type.

Example: if asked to give an example of a string. You must say (Variable2024!) to show that the string can include all of those characters. While if asked about a boolean, you can say either true or false.

In Python a real value, is equivalent to a float value.


Functions

The main thing to note is the difference between defining and calling a function.

When you are defining a function, you are creating that function. It's where you specify what the functions should do.

When you are calling a function, you are using the function you defined and you are telling the program to execute the code inside that function.


Flowchart Symbols


Types of Statements

  1. Conditional Statements Used to make decisions in a program (e.g. an if / case statement)

  2. Iteration (or looping) Statements Repeats a block of code multiple times (e.g. a for / while loop)

  3. Assignment Statements Where you are assigning a value to a variable (e.g. x = 5)

  4. Input / Output Statements

  5. Declaration Statements You declare the data type of a constant or variable (e.g. string, integer)

  6. Contol Transfer Statements This is when you change the flow of a program (e.g. using break / return)

  7. Function Call Statements

  8. Exception Handling Statements To deal with error handling (e.g. using try / catch)


SQL Commands


Types of Checks


Definitions

Pre-Condition Loop Condition is evaluated before the loop is executed (e.g. a while loop).

Post-Condition Loop Condition is evaluated afterwards so the loop executes regardless of the condition (e.g. a repeat until loop).

Constant A value that is set once and cannot be changed during the execution of the program. Is used instead of a variable if the variable shouldn't change during the program's execution.

Variable A storage location in memory with a name that is used to hold data that can change during the program's execution.

Array A data structure that holds multiple values of the same data type indexed by position.

Library Routines A collection of standard programs available for immediate use.

Subroutine Performs a specific task and does not necessarily return a value (generally used to execute a set of instructions that are used frequently). It can be called when required and used by other programs.

Abstraction When you simplify a problem by removing unnecessary details from the problem and filtering out irrelevant characteristics from elements.

Function Performs a specific task and returns a value when called (generally used to perform calculations which are used later on in the code).

Primary Key The field that is used has to be a unique identifier or alphanumeric value.


Will most likely come up. Need to know the symbols mean and be able to explain what they do. All info about flowcharts can be found .

Look through this list and understand what each one does. Revise .

This comes up frequently in exam questions. Read up on it .

here
here
here
here