Search Header Logo
N5 SDD - Testing (revision)

N5 SDD - Testing (revision)

Assessment

Presentation

Computers

10th Grade

Practice Problem

Medium

Created by

G Alexander-Doyle

Used 11+ times

FREE Resource

10 Slides • 18 Questions

1

​Software Design & Development (Testing)

National 5 Computing Science

2

​Iteration

Iteration reminder

The software development process is described as being Iterative because processes are often repeated. This happens often after the testing stage because errors are located in the program. The development team will re-visit the design and implementation stages to fix the issue.

National 5 Computing Science - Software Design & Development (Testing)

media

3

​Testing

The purpose of testing software

Software development teams will spend a lot of time testing their software before it is handed over to the client. This is to ensure the software functions as it should.

The reputation of the software development company could be harmed if they release software with lots of errors in the code.​

National 5 Computing Science - Software Design & Development (Testing)

4

​Normal Test Data

Software solutions are tested with normal, extreme and exceptional data. These can be explained as follows:

Normal data is data which is acceptable but not at the extreme edges of acceptability. Normal data for a percentage would be any number(s) between 1 and 99.

National 5 Computing Science - Software Design & Development (Testing)

5

​Extreme Test Data

Extreme data is data which is acceptable but is at the edge of the range of acceptability. Extreme data for a percentage would be the numbers 0 and 100. These numbers fall within the range of acceptability but represent the lowest and highest possible entries.

National 5 Computing Science - Software Design & Development (Testing)

6

​Exceptional Test Data

Exceptional data is test data which falls outwith the range of acceptability. ​In the case of a percentage any number less than 0 or greater than 100 would be an example of exceptional data.

National 5 Computing Science - Software Design & Development (Testing)

7

Multiple Select

Question image

A program is being developed to evaluate a test score for a maths test covering Geometrics. The test is out of 35. Which of the following numbers represent normal test data for this program?

THERE ARE TWO CORRECT ANSWERS!

1

20

2

35

3

11

4

40

8

Multiple Select

Question image

A program is being developed to evaluate a test score for a maths test covering Geometrics. The test is out of 35. Which of the following numbers represent extreme test data for this program?

THERE ARE TWO CORRECT ANSWERS!

1

22

2

35

3

0

4

-3

9

Multiple Select

Question image

A program is being developed to evaluate a test score for a maths test covering Geometrics. The test is out of 35. Which of the following numbers represent exceptional test data for this program?

THERE ARE TWO CORRECT ANSWERS!

1

-1

2

35

3

0

4

36

10

Multiple Select

Question image

A program is being developed to allow primary school pupils to enter the number of points a school football team wins over the course of 3 games.

A team receives three points for a win, one point for a draw and zero points for a loss. Which of the following numbers represent normal test data for this program?

THERE ARE TWO CORRECT ANSWERS!

1

3

2

6

3

9

4

10

11

Multiple Select

Question image

A program is being developed to allow primary school pupils to enter the number of points a school football team wins over the course of 3 games.

A team receives three points for a win, one point for a draw and zero points for a loss. Which of the following numbers represent extreme test data for this program?

THERE ARE TWO CORRECT ANSWERS!

1

5

2

0

3

9

4

-3

12

Multiple Select

Question image

A program is being developed to allow primary school pupils to enter the number of points a school football team wins over the course of 3 games.

A team receives three points for a win, one point for a draw and zero points for a loss. Which of the following numbers represent exceptional test data for this program?

THERE ARE TWO CORRECT ANSWERS!

1

10

2

9

3

5

4

-1

13

Multiple Select

Question image

A program is being developed to allow a vet to process pet insurance claims at their practice. Clients can claim on their pet insurance for bills which are between £300 and £4500.

Which of the following numbers represent normal test data for this program?

THERE ARE TWO CORRECT ANSWERS!

1

£450.50

2

£4500.00

3

£350.00

4

£5000.00

14

Multiple Select

Question image

A program is being developed to allow a vet to process pet insurance claims at their practice. Clients can claim on their pet insurance for bills which are between £300 and £4500.

Which of the following numbers represent extreme test data for this program?

THERE ARE TWO CORRECT ANSWERS!

1

£1500.00

2

£4500.00

3

£300.00

4

£250.00

15

Multiple Select

Question image

A program is being developed to allow a vet to process pet insurance claims at their practice. Clients can claim on their pet insurance for bills which are between £300 and £4500.

Which of the following numbers represent exceptional test data for this program?

THERE ARE TWO CORRECT ANSWERS!

1

£6000.00

2

£4500.00

3

£250.00

4

£25.00

16

​Errors

Types of error

When testing a software solution, we need to be aware of the different error types ​we might encounter. The three main classifications of error messages are Syntax, Logic and Execution errors.

Some text here about the topic of discussion

17

​Syntax errors

A syntax error is a grammatical mistake in the program code. In Python these can occur when you:

  • Forget to close brackets

  • Forget to include a colon : after a selection statement or start of a loop​

Some text here about the topic of discussion

18

​Logic errors

A logic error occurs when the wrong logical operator is used, the program will still run to completion provided there are no other errors but unexpected results will be produced. They occur when:

  • The wrong logical operator is used, for example using an AND instead of an OR.

  • The wrong arithmetic operator is used, for example speed = distance * time

Some text here about the topic of discussion

19

​Execution errors

Some text here about the topic of discussion

An execution error occurs once the program has been translated into machine code. It will cause the program to crash and can be caused by:

  • Assigning a value of one type to a variable of a different type​

  • Attempting to divide by 0

  • Entering a conditional loop and being unable to enter the data which meets the condition​

20

Multiple Choice

Question image

State the type of error which produces unexpected results but does not stop the program from running.

1

Syntax Error

2

Logic Error

3

Execution Error

21

Multiple Choice

Question image

State the type of error which occurs once the program has been translated from a high-level language to binary.

1

Syntax Error

2

Logic Error

3

Execution Error

22

Multiple Choice

Question image

State the type of error which occurs when a mistake is made in the spelling or grammar used when coding.

1

Syntax Error

2

Logic Error

3

Execution Error

23

Multiple Choice

Question image

State the type of error located on line 11 of this program.

1

Syntax Error

2

Logic Error

3

Execution Error

24

Multiple Choice

Question image

State the type of error located on line 12 of this program.

1

Syntax Error

2

Logic Error

3

Execution Error

25

Multiple Choice

Question image

State the type of error located on line 12 of this program.

1

Syntax Error

2

Logic Error

3

Execution Error

26

Multiple Choice

Question image

Which line of code contains a logic error?

1

7

2

9

3

11

4

13

27

Multiple Choice

Question image

Which line of code contains a syntax error?

1

7

2

9

3

11

4

13

28

Multiple Choice

Question image

Which line of code contains an execution error?

1

3

2

5

3

9

4

11

​Software Design & Development (Testing)

National 5 Computing Science

Show answer

Auto Play

Slide 1 / 28

SLIDE