
N5 SDD - Testing (revision)
Presentation
•
Computers
•
10th Grade
•
Practice Problem
•
Medium
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)
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
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
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
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
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
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
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
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
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
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 spelling or grammar used when coding.
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
State the type of error located on line 12 of this program.
Syntax Error
Logic Error
Execution Error
26
Multiple Choice
Which line of code contains a logic error?
7
9
11
13
27
Multiple Choice
Which line of code contains a syntax error?
7
9
11
13
28
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 / 28
SLIDE
Similar Resources on Wayground
22 questions
Quadrilaterals
Presentation
•
10th Grade
22 questions
Rigid Transformations
Presentation
•
10th Grade
20 questions
Descriptive Text
Presentation
•
10th Grade
22 questions
LOOPS
Presentation
•
10th Grade
21 questions
Angle Pair Relationships
Presentation
•
10th Grade
21 questions
La Ropa y los Colores
Presentation
•
10th Grade
21 questions
Scientific Method
Presentation
•
10th Grade
25 questions
Network Security
Presentation
•
10th Grade
Popular Resources on Wayground
20 questions
"What is the question asking??" Grades 3-5
Quiz
•
1st - 5th Grade
20 questions
“What is the question asking??” Grades 6-8
Quiz
•
6th - 8th Grade
10 questions
Fire Safety Quiz
Quiz
•
12th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
34 questions
STAAR Review 6th - 8th grade Reading Part 1
Quiz
•
6th - 8th Grade
20 questions
“What is the question asking??” English I-II
Quiz
•
9th - 12th Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
47 questions
8th Grade Reading STAAR Ultimate Review!
Quiz
•
8th Grade
Discover more resources for Computers
20 questions
“What is the question asking??” English I-II
Quiz
•
9th - 12th Grade
10 questions
Fire Prevention
Quiz
•
9th - 12th Grade
50 questions
STAAR English 2 Review
Quiz
•
10th Grade
20 questions
Figurative Language Review
Quiz
•
10th Grade
20 questions
Grammar
Quiz
•
9th - 12th Grade
16 questions
AP Biology: Unit 1 Review (CED)
Quiz
•
9th - 12th Grade
20 questions
verbos reflexivos en español
Quiz
•
9th - 12th Grade
11 questions
Expectations Review
Quiz
•
9th - 12th Grade