Programming Fundamentals - Input & Output

Computer Science: Cambridge International GCSE, topic 2.2.3

Input and Output

We need some method of getting data into and out of the computer. That's where input and output commands come in.

Input

Input

  • Input is collecting data, usually by the keyboard.
  • This is written in pseudocode as:
  • variable = input("Please enter [something]...")
Output

Output

  • Output is putting data to the screen, usually as text.
  • This is written in pseudocode as:
  • print("Text goes here")

Test yourself on Programming Fundamentals - Input & Output

  • The user input method takes data from what device?

  • Which of these statements will output the text, 'Hello world!'?

Practise this topic for free