
N5 SDD - Testing (revision)
Presentation
•
Computers
•
10th Grade
•
Practice Problem
•
Medium
G Alexander-Doyle
Used 11+ times
FREE Resource
10 Slides • 17 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)
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
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!
20
35
11
40
36
8
Multiple Select
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!
22
35
0
-3
36
9
Multiple Select
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
35
0
36
24
10
Multiple Select
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!
3
6
9
10
0
11
Multiple Select
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!
5
0
9
-3
10
12
Multiple Select
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!
10
9
5
-1
0
13
Multiple Select
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!
£450.50
£4500.00
£350.00
£5000.00
£300.00
14
Multiple Select
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!
£1500.00
£4500.00
£300.00
£250.00
£10000.00
15
Multiple Select
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!
£6000.00
£4500.00
£250.00
£25.00
£300
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
State the type of error which produces unexpected results but does not stop the program from running.
Syntax Error
Logic Error
Execution Error
21
Multiple Choice
State the type of error which occurs once the program has been translated from a high-level language to binary.
Syntax Error
Logic Error
Execution Error
22
Multiple Choice
State the type of error which occurs when a mistake is made in the language rules of the programming language.
Syntax Error
Logic Error
Execution Error
23
Multiple Choice
State the type of error located on line 11 of this program.
Syntax Error
Logic Error
Execution Error
24
Multiple Choice
State the type of error located on line 12 of this program.
Syntax Error
Logic Error
Execution Error
25
Multiple Choice
Which line of code contains a logic error?
7
9
11
13
26
Multiple Choice
Which line of code contains a syntax error?
7
9
11
13
27
Multiple Choice
Which line of code contains an execution error?
3
5
9
11
Software Design & Development (Testing)
National 5 Computing Science
Show answer
Auto Play
Slide 1 / 27
SLIDE
Similar Resources on Wayground
21 questions
Intro to mole
Presentation
•
10th Grade
21 questions
Web Design
Presentation
•
10th - 11th Grade
22 questions
Cyber Security Lesson 2
Presentation
•
10th Grade
20 questions
Narrative Text
Presentation
•
10th Grade
20 questions
Relative clauses
Presentation
•
10th Grade
20 questions
Trig Ratios Review
Presentation
•
10th Grade
21 questions
question tags
Presentation
•
10th Grade
21 questions
Isosceles Triangle Theorems
Presentation
•
10th Grade
Popular Resources on Wayground
21 questions
Continents and Oceans
Quiz
•
6th Grade
20 questions
Parts of Speech
Quiz
•
5th Grade
16 questions
Subject & Predicate
Quiz
•
5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
6 questions
Rule of Law
Quiz
•
6th - 12th Grade
22 questions
Continents and Oceans
Quiz
•
5th Grade
10 questions
Movie Trivia
Quiz
•
KG - 2nd Grade
15 questions
Rounding Decimals
Quiz
•
5th Grade
Discover more resources for Computers
16 questions
Module 1 Topic 2 Vocabulary Test
Quiz
•
9th - 12th Grade
10 questions
Navigating Digital Citizenship and Online Safety
Interactive video
•
6th - 10th Grade
18 questions
[AP CSP] Python Coding: Conditionals + List + Algo Dev
Quiz
•
9th - 12th Grade
20 questions
Early Computing
Quiz
•
7th - 12th Grade