Input & Output (CIE IGCSE Computer Science)

Revision Note

Test Yourself
Becci Peters

Expertise

Computer Science

Output

Output refers to the process of displaying or saving the results of a program to the user.

Pseudocode example:

OUTPUT "Hello, ", name

Python example:

print("Hello, ", name)

Java example:

System.out.println("Hello, " + name);

Visual Basic example:

Console.WriteLine( "Hello, " & name)

Input

Input refers to the process of providing data or information to a program.

'User Input' is data or information entered by the user during program execution.

Pseudocode example:

OUTPUT "Enter your name"

INPUT name

Python example:

name = input("Enter your name: ")

Java example:

Scanner input = new Scanner(System.in);

System.out.print("Enter your name: ");

String name = input.nextLine();   

Visual Basic example:

Console.WriteLine("Enter your name")

name = Console.Readline()

Exam Tip

  • Remember to prompt the user for input clearly, and format the output to make it readable and understandable.

You've read 0 of your 0 free revision notes

Get unlimited access

to absolutely everything:

  • Downloadable PDFs
  • Unlimited Revision Notes
  • Topic Questions
  • Past Papers
  • Model Answers
  • Videos (Maths and Science)

Join the 100,000+ Students that ❤️ Save My Exams

the (exam) results speak for themselves:

Did this page help you?

Becci Peters

Author: Becci Peters

Becci has been a passionate Computing teacher for over 9 years, teaching Computing across the UK helping to engage, interest and develop confidence in the subject at all levels. Working as a Head of Department and then as an educational consultant, Becci has advised schools in England, where her role was to support and coach teachers to improve Computing teaching for all. Becci is also a senior examiner for multiple exam boards covering GCSE & A-level. She has worked as a lecturer at a university, lecturing trainee teachers for Computing.