Search Header Logo
N5 SDD Revision

N5 SDD Revision

Assessment

Presentation

Computers

11th Grade

Practice Problem

Easy

Created by

Tracy Mutter

Used 2+ times

FREE Resource

8 Slides • 29 Questions

1

media

S4 SDD Revision

2

media

Software Design and Development

We need to be able to answer questions on each stage of the development process:


Analysis – input, process and output
Design – pseudocode algorithms, flowcharts and structure diagrams
Implementation – all the code
Testing – test data and types of error
Evaluation – fitness for purpose, efficiency, robustness, readability

3

Multiple Choice

A program is to be created to allow users to calculate their BMI​

Body Mass Index (BMI) is a way to measure if your weight is in a healthy range for your height. BMI is calculated using the formula weight in kg divided by the square of your height in meters BMI = kg/m2

What would be the inputs for this program?​

1

BMI

2

BMI

Height

Weight

3

Height

Weight

4

Multiple Choice

A program is to be created to allow users to calculate their BMI​

Body Mass Index (BMI) is a way to measure if your weight is in a healthy range for your height. BMI is calculated using the formula weight in kg divided by the square of your height in meters BMI = kg/m2

What would be the output for this program?​

1

BMI

2

BMI

Height

Weight

3

Height

Weight

5

Multiple Choice

A program is to be created to allow users to calculate their BMI​

Body Mass Index (BMI) is a way to measure if your weight is in a healthy range for your height. BMI is calculated using the formula weight in kg divided by the square of your height in meters BMI = kg/m2

What would be the process for this program?​

1

Multiply height and weight 

2

Divide height by weight squared

3

Divide weight by height squared

6

Open Ended

Question image

What type of design is shown?

7

Open Ended

Question image

What type of design is shown?

8

Open Ended

Question image

What type of design is shown?

9

Multiple Choice

Which would be an appropriate data type for forename?

1

text

2

integer

3

string

4

boolean

10

Multiple Choice

Which would be an appropriate data type for BMI?

1

text

2

integer

3

string

4

boolean

11

Multiple Choice

Which would be an appropriate data type for height?

1

float

2

character

3

string

4

boolean

12

Data Structures

We have 2 data structures

  • Variable - stores one piece of data

  • Array - stores a set number of data, always the same data type

13

Multiple Choice

The BMI program is extended to store a user's BMI once a month for a year. Which data structure should be used to store the 12 values?

1

variable

2

array

3

loop

4

algorithm

14

Multiple Choice

The BMI program is extended to store a user's BMI once a month for a year. Which declaration would create a data structure to hold these 12 values?

1

BMI = (12)

2

BMI = 0(12)

3

BMI = (0*12)

4

BMI =(0)*12

15

Multiple Choice

The BMI program is extended to store a user's BMI once a month for a year. Which declaration would create a data structure to hold these 12 values?

1

Array of Intergers (12)

2

Array of real (12)

16

Standard Algorithms

We have 3 standard algorithms

  • Traversing a 1D Array

  • Input Validation

  • Running Total (within a loop)

17

Multiple Choice

Question image

Which algorithm is shown?

1

Traversing a 1D Array

2

Input Validation

3

Running Total

18

Multiple Choice

Question image

Which algorithm is shown?

1

Traversing a 1D Array

2

Input Validation

3

Running Total

19

Multiple Choice

Question image

Which algorithm is shown?

1

Traversing a 1D Array

2

Input Validation

3

Running Total

20

Predefined Functions

These are prewritten snippets of code designed to perform a specific function. They save time as they are already written, do not need tested or coded and can be used over and over again.

We need to know:-

  • Round - numerial function that will round to nearest whole number

  • Random - numerical fnction that selects a number between two parameters

  • Len - string function that counts the number of characters

21

Multiple Choice

Question image

Which predefined function is used in this program?

1

Round

2

Random

3

Length

22

Multiple Choice

Question image

Which predefined function is used in this program?

1

Round

2

Random

3

Length

23

Multiple Choice

Question image

Which predefined function is used in this program?

1

Round

2

Random

3

Length

24

Multiple Choice

The averageBMI should be rounded to 2 decimal places. Which line of could would achieve this?

1

averageBMI = round(averageBMI)

2

averageBMI = round(averageBMI,0.00)

3

averageBMI = round(averageBMI,2)

4

averageBMI = round(averageBMI,2dp)

25

Testing

Once we have coded our programs we then need to test them.

We test for the following circumstances

  • Normal

  • Extreme

  • Exceptional

26

Multiple Choice

In the adult BMI calculation program. Test data of 18 is entered for age.

What is that an example of?

1

Normal

2

Extreme

3

Exceptional

27

Multiple Choice

In the BMI calculation program. Test data of 28 is entered for age.

What is that an example of?

1

Normal

2

Extreme

3

Exceptional

28

Multiple Choice

In the BMI calculation program. Test data of "twenty four" is entered for age.

What is that an example of?

1

Normal

2

Extreme

3

Exceptional

29

Error Types

Whilst testing we are also check ign for the following types of errors

  • logic

  • syntax

  • execution (run time)

30

Multiple Choice

Which error has stopped this program from running?

If age <18

print("Invalid age!")

1

logic

2

syntax

3

execution

31

Multiple Choice

The program runs and can return correct results but, when a user repeatedly enters 0 as their weight, the program crashes. Which type of error is this?

1

logic

2

syntax

3

execution

32

Multiple Choice

The program runs and can return correct results but the expected values do not match the actual output.

Which kind of error is this?

1

logic

2

syntax

3

execution

33

Program Evaluation

Our programs are evaluated against

  • Fitness for purpose

  • Efficiency

  • Robustness

  • Readability

34

Multiple Choice

Check that the code uses meaningful variable names, has internal commentary and leaves white space to separate parts of the code.

What is being evaluated here?

1

Fitness for purpose

2

Efficiency

3

Robustness

4

Readability

35

Multiple Choice

The program can accurately calculate, store and display a user's BMI.

1

Fitness for purpose

2

Efficiency

3

Robustness

4

Readability

36

Multiple Choice

The code uses arrays to store data and loops to carry out repeated sections of code.

1

Fitness for purpose

2

Efficiency

3

Robustness

4

Readability

37

Multiple Choice

If zero is entered for weight, the program will crash.​

1

Fitness for purpose

2

Efficiency

3

Robustness

4

Readability

media

S4 SDD Revision

Show answer

Auto Play

Slide 1 / 37

SLIDE