11 - Defensive Design and testing

Defensive Design and Testing
Revision
1 / 17
next
Slide 1: Slide
ComputingUpper Secondary (Key Stage 4)GCSE

This lesson contains 17 slides, with interactive quizzes and text slides.

time-iconLesson duration is: 50 min

Items in this lesson

Defensive Design and Testing
Revision

Slide 1 - Slide

Defensive Design
and Testing

Slide 2 - Mind map

Comments in code are primarily for aesthetic purposes.
A
True
B
False

Slide 3 - Quiz

Which of the following best describes defensive design?
A
Designing software to protect against cyber attacks
B
Designing software to anticipate and handle unexpected situations
C
Designing software with a focus on user interface aesthetics
D
Designing software without considering potential errors

Slide 4 - Quiz

What is the primary purpose of commenting in code?
A
To explain the purpose and functionality of the code
B
To make the code run faster
C
To hide the code from other developers
D
To add unnecessary complexity to the code

Slide 5 - Quiz

Which of the following is NOT a reason for testing code?

A
To find and fix bugs
B
To ensure the code runs quickly
C
To ensure the code is maintainable
D
To verify the code meets the requirements

Slide 6 - Quiz

Explain why defensive design is important in software development.

Slide 7 - Open question

A function accepts a number input between 1 and 10.
Normal Data testing would involve entering a number like 5.
Provide an example of boundary testing and explain why it fits that description.

Slide 8 - Open question

A function accepts a number input between 1 and 10.
Normal Data testing would involve entering a number like 5.
Provide an example of invalid data testing and explain why it fits that description.

Slide 9 - Open question

A function accepts a number input between 1 and 10.
Normal Data testing would involve entering a number like 5.
Provide an example of erroneous data testing and explain why it fits that description.

Slide 10 - Open question

An iterative test is performed when _________

Slide 11 - Open question

Final testing is performed when __________

Slide 12 - Open question

Why would we iteratively test?

Slide 13 - Open question

What are we looking for in logic testing?

Slide 14 - Open question

What are we looking for in syntax testing?

Slide 15 - Open question

Create a test plan
Create a test plan for a calculator, using all the concepts we've talked about today

Slide 16 - Slide

Slide 17 - Slide