Search Header Logo
Higher SDD - Testing

Higher SDD - Testing

Assessment

Presentation

Computers

8th Grade

Practice Problem

Easy

Created by

G Alexander-Doyle

Used 3+ times

FREE Resource

20 Slides • 6 Questions

1

media

2

Aims & Achievements

I can create a comprehensive test plan for a given program with normal, extreme and exceptional data sets along with expected results

I can identify syntax, execution and logic errors in a program design.  

I can conduct a dry run with the use of a trace table to map the expected values of variables while a program is running. 

I can describe how breakpoints and watchpoints can be used to aid in debugging a program. 

Achievements

We are learning how to develop a set of test data to comprehensively test a program. 

We are leaning how to identify syntax, execution and logic errors in program code. 

We are learning how to use new debugging techniques. Specifically:

dry runs  

trace tables/tools  

breakpoints 

watchpoints 

Aims

3

media

4

media

5

Categorize

Options (6)

1

56

0

100

-1

101

Question image

A program is developed to take in a percentage score achieved in the Higher Computer Systems class test. Categorise the following test data.

Normal
Extreme
Exceptional

6

Categorize

Options (6)

39

12

0

40

42

41

Question image

A program is developed to take in a Computing Science coursework score. Categorise the following test data.

Normal
Extreme
Exceptional

7

media

8

media

9

media

10

media

11

Fill in the Blanks

media image

Type answer...

12

Fill in the Blanks

media image

Type answer...

13

media

14

Fill in the Blanks

media image

Type answer...

15

Fill in the Blanks

media image

Type answer...

16

media

17

media

18

media

19

media

20

media

21

media

22

media

23

media

Past paper question

A mathematician has written a program to generate the first six numbers in a mathematical sequence. The next number in the sequence is the sum of the previous two numbers. For example, if the sequence starts with 5,7, . . . Then the first six numbers of the sequence would be 5, 7, 12, 19, 31, 50  

 

The following code has been developed to generate the sequence of six numbers. 

A logic error in the code means that an incorrect sequence is generated. The trace table below shows the line numbers where a variable has changed. 

media

24

media

Past paper question

A logic error in the code means that an incorrect sequence is generated. The trace table below shows the line numbers where a variable has changed. 

State the missing values at A, B and C. (3 marks) 

media
media

25

media

Past paper question - Solution

A= [5,7,0,0,0,0]
B= [5,7,7,0,0,0]
C= [5,7,7,7,0,0]


1 mark per line

media
media

26

media
media

Show answer

Auto Play

Slide 1 / 26

SLIDE