Lesson 2: Coding and debugging

Following on from the previous lesson, pupils continue coding their programs, making them more efficient and incorporating structures such as sequencing, selection, repetition, variables, inputs and outputs

Before the lesson

Learning objective

  • To code and debug a program

National curriculum

Pupils should be taught to:

  • Design, write and debug programs that accomplish specific goals, including controlling or simulating physical systems; solve problems by decomposing them into smaller parts
  • Use sequence, selection, and repetition in www.dadstout
  • Use logical reasoning to explain how some simple algorithms work and to detect and correct errors in algorithms and programs
  • Select, use and combine a variety of software (including internet services) on a range of digital devices to design and create a range of programs, systems and content that accomplish given goals

Success criteria

Cross-curricular links

Attention grabber

Main event

Differentiation

Pupils needing extra support: should use existing code to adapt. Encourage them to explain how it works and experiment with different values.

 

Pupils working at greater depth: should be encouraged to incorporate selection, repetition and variables in their programs.

Wrapping up

Assessing pupils' progress and understanding

Vocabulary

Created by:
Cat Lamin,  
Computing specialist
Cat was a committed primary school teacher for twelve years. After starting her independent consultancy ‘Crossover Solutions’ she has travelled to Argentina, Brazil and America to share her wealth of knowledge of computer science with other teachers. Her enjoyment for…
Find out more