Computing
Computer Science LearnITWithMrC ⛯ Year 7 Year 8 Year 9 GCSE
Responsive image

Lesson Video

32

Lesson Tasks

  • Watch the Lesson video
    Make notes if needed.
  • Open your Learning Journal
    Complete Task 1 in your Learning Journal
  • Complete the learning activities
    Make sure you complete the book tasks in your Unit Booklet
  • Complete End of Task Assessment
    Update your learning objectives

What do I need to Learn?

0 results forGuest
I need to learn how to select suitable test data to test normal/typical user inputs.
I need to learn how to select suitable test data to test boundery/extreme user inputs.
I need to learn how to select suitable test data to test erroneuous user inputs.
I need to learn how to select and justify the choice of test data for a given progam.
I need to learn how to understand that there are different types of errors: eg logical, syntax
I need to learn how to identify and categorise errors within algorithms and programs.

Key Terms

Logic errors Syntax errors Runtime Errors valid normal invalid Erroneous extreme boundary requirements

There is no Powerpoint to go with this section. You can download the notes sheet from Task 1 and make some notes on the topic, however most tasks are to be completed in your book. Don't forget to update your learning objectives at the end!

Task 1 - Getting organised - notes Click to see more


Task 1: Fill in the heading.

Open your cornell notes word document, if you would rather fill it in by hand then feel free to print it out. Fill in the video title and the topic at the top of the page. See example below.

Open a Cornell notes sheet by clicking on the image below.

Avatar

Remember good notes allow students to help each other problem solve

Good notes will help you organise and process data and information

Cornell notes help you retain and recall information by having three different ways/sections where you process the information.

Note taking is a way of helping you to remember things you would otherwise forget. It also stimulates our critical thinking skills.

Remember! whenever you see the notes icon this means the information is important and you should write it down on your notes sheet.


Task 2 - Errors and testing Click to see more

Types of errors

There are three types of errors that may occur with when writing a computer program:

  • Syntax errors
  • Runtime errors
  • Logic errors

You will find that the errors become more difficult to discover and fix as you move down the above list


Syntax errors

A syntax errors is type of grammar error when using a programming language. Examples include:

  • Misspelled variable and function names
  • Missing colons or quotation marks
  • Missing or mismatched parentheses
  • Incorrect format in loops

Runtime errors

Runtime errors occur when a program tries to do something that it is unable to do. They are called runtime because they occur after the program has been compiled and is running. Examples include:

  • Trying to store a string in an int variable
  • Trying to divide by a variable by zero
  • Trying to open a file that doesn't exist

Logic errors

Logic errors occur when there is a mistake in your programming logic. Examples include:

  • Multiplying when you should be dividing
  • Adding when you should be subtracting
  • Outputting the wrong message

Testing

When we test our code we are looking to find runtime and logical errors in our code. To do this we create a test table and think of all possible types of input that might cause one of these errors.


Example - Grade Calculator

The user has to enter a test score between 0 and 100. It will then say the grade and how many marks they are off the next grade. The grade boundaries are:

1 = 70+
2 = 60+
3 = 50+
4 = 40+
U = < 40

Testing Table:

Task: Testing your programs

Open your student workbook at page 82 and read through the notes and complete the following tasks.
  1. Task 49
  2. Task 50


Task 3 - Identifying errors Click to see more

Task: Identifying errors

Open your student workbook at page 87 and read through the notes and complete the following tasks.
  1. Task 51
  2. Task 52


Task 4 - Practice tasks Click to see more

Coding activity

Task 1: Star Rating

Click on the link below and complete the tasks on the page getting all your tests to pass

Star Rating


Task 2: Voting Age Checker

Click on the link below and follow the tasks on the page starting with Task#2

Voting age Checker


Task 3: A Puzzling Algorithm

Predict the values from the algorithm then implement it using python, then run each test to check your predictions

A Puzzling Algorithm


Extension Task : Write a test table for the Password authentication routine

Create a test table and run appropriate tests on the extension task from the previous topic -> Password authentication routine



Task 5 - End of Task Assessment Click to see more

Copyright © 2013 - 2026 LearnITwithMrC