Search Header Logo
N5 Software

N5 Software

Assessment

Presentation

Computers

8th Grade

Easy

Created by

Sarah Lyon

Used 36+ times

FREE Resource

18 Slides • 41 Questions

1

N5 Software Design and Development

National 5 Computing Science Miss Lyon

2

Software Design & Development

  • ​Development Methodologies

  • Analysis

  • Design

  • Implementation

  • Testing

  • Evaluation​

N5 Computing Science

media

3

Development Methodologies

The 6 stages of the software development process are:​

  • Analysis - identify what the program is meant to do

  • Design - design the algorithm and user interface

  • Implementation - make the program

  • Testing - check the program works as expected with no errors

  • Evaluation - check the program meets the requirements

​​The development process is iterative meaning stages can be revisited

N5 Computing Science

media

4

Multiple Choice

Which is not a step of the development process?

1

Analysis

2

Design

3

Reporting

4

Implementation

5

Fill in the Blank

The software development process can be described as...

6

Multiple Choice

The software development process is described as iterative because...

1

each stage must be followed in the exact order

2

each stage can be revisited to improve the final solution

3

you can chose the order to do each stage

4

you have to repeat every stage in the process

7

Analysis

The inputs, processes and outputs of a program​.

Example: A program should ask the user to input the radius of a circle. The program should then calculate and display the area and the circumference of the circle.​

Functional Requirements

Identify the purpose of a software problem. This is usually describing what the program must do.

Purpose

media

8

Multiple Choice

What is the main purpose of the analysis stage in the software development process?

1

Determining exactly what the user requires

2

Deciding a strategy for solving the problem

3

Creating pseudocode

4

Making sure that the program is fit for purpose

9

Design

A 1D Array would be used to store multiple values of the same data type.

Example:

Q - A program is required to store the temperature for each day of the week. Temperatures are recorded to 1 decimal place.

State which data structure would be used in this program.

​​A - A 1-D array of type real

Data Structures

  • Character ('A', 'B', 'Z')

  • String ('Hello', 'World')

  • Integer (19, -8)

  • Real (3.2, 16.755)

  • Boolean​ (True, False)

Note: Character is not a data type in Python - but you still need to ​know about it.

Data Types (especially real) are often given different names in programming languages. You should use the terms above in the exam.

Data Types

10

Multiple Choice

Which data type is used to store:

100

1

Integer

2

Character

3

Boolean

4

String

11

Multiple Choice

Which data type is used to store:

TRUE

1

Boolean

2

Real

3

String

4

Integer

12

Multiple Choice

What data type would you store a vehicle's registration plate?

1

Real

2

String

3

Boolean

4

Integer

13

Multiple Choice

What type of data would you use to store whether someone wanted to sign up for promotions or not?

1

String

2

Boolean

3

Real

4

Integer

14

Multiple Choice

Which data type or structure would be used to store a list of names for everyone in your class?

1

string

2

array of strings

3

array of reals

4

variable

15

Design - Design Notations

A graphical method of showing the algorithm. Follow the arrows showing the flow of data through the program.

Flowcharts

A graphical method of showing the algorithm. Read from top to bottom, left to right.

Structure Diagrams

We require design notations to show the steps of an algorithm to solve a problem

media
media

16

Design - Design Notations

A wireframe is user to design the user interface of a program.

This should show how the screen layout along with any inputs and outputs.

It could look ike either of the examples below depending on the programming environment you are using.​

UI Design

Pseudocode is a way of designing the steps of a program using phrases that resemble lines of program code

Pseudocode

We require design notations to show the steps of an algorithm to solve a problem

media
media
media

17

Multiple Choice

Question image

Name this design technique

1

Wireframe

2

Flowchart

3

Pseudocode

4

Structure Diagram

18

Multiple Choice

Question image

Name this design technique

1

Wireframe

2

Flowchart

3

Pseudocode

4

Structure Diagram

19

Multiple Choice

Question image

Name this design technique

1

Wireframe

2

Flowchart

3

Pseudocode

4

Structure Diagram

20

Implementation - Data Types and Structures

An array is also a storage location in a computer program however, an array can store a collection of data of the same data type.

1D Arrays

A variable is a storage location in a computer program.

Only one value can be held at a time​.

The variable must have a meaningful name and a data type.​

Variables

media
media

21

Multiple Choice

The following array is created in a program: " DIREWOLVES = ["Nymeria","Shaggy Dog","Ghost","Lady","Grey Wind","Summer"]


What is the item stored in DIREWOLVES [2] ?

1

"Shaggy Dog"

2

"Ghost"

22

Implementation - Computational Constructs

Concatenation means joining two or more strings together.

Concatenation

Arithmetic operations are used to carry out calculations.

There are arithmetic operators for:

  • + Add

  • - Subtract

  • * Multiply

  • / Divide

  • ^ Exponent (to the power of)

Arithmetic Operations

media

23

Multiple Choice

Joining elements together to make a string is called what?
1
Combining
2
Connecting
3
Concatenation
4
Stringing

24

Multiple Choice

What is Concatentation

1

The process of joining strings and variables

2

The process of inputting data into a variable

3

The way we find errors in a program

4

The way selection is used

25

Multiple Choice

Arithmetic Operator
What is a * ?
1
Addition
2
Subtraction
3
Multiplication
4
Modulo

26

Multiple Choice

What is stored in the variable 'answer'?

answer = 3^2

1

6

2

9

3

3

4

2

27

Implementation - Computational Constructs

A complex condition means there are two or more rules being tested e.g.

  • exam_mark >= 50 AND exam_mark < 60

  • temperature < 0 OR temperature > 200

  • number = 1 OR number = 3 OR number = 5

AND, OR, NOT are examples of logical operators

Complex Conditions

A simple condition means there is only one rule being tested​

e.g.

  • choice = "A"

  • temperature < 0

  • exam_mark >= 70

Simple Conditions

In programming, selection means making a decision. The IF statement is used to make a decision.

The condition is the rule that is being tested by the IF statement​.

28

Multiple Choice

Question image

The logical operator 'or' means that...

1

only one condition has to be true

2

both conditions must be true

3

the condition must be false

29

Multiple Choice

Question image

The logical operator 'and' means that...

1

only one condition has to be true

2

both conditions must be true

3

the condition must be false

30

Multiple Choice

What is the output of the code below?

x = 5

if x == 0:

print("x is 0")

elif x > 1:

print("x is greater than 1")

elif x > 3:

print("x is greater than 3")

1

x is 0

2

x is greater than 1

3

x is greater than 3

31

Multiple Choice

Question image

What is the output?

1

more than 7

2

more than 23

3

spam

4

7

32

Multiple Select

Question image

Identify the logical operators in the code

1

AND

2

NOT

3

OR

33

Implementation - Computational Constructs

A conditional loop will execute while a specific condition is being met, or until a specific condition is met.

WHILE number < 1 DO

SEND "Error, please enter number again" TO DISPLAY​

Conditional Loop

A fixed loop will always execute a fixed number of times.

FOR counter FROM 1 TO 10 DO SEND counter TO DISPLAY​

Fixed Loop

34

Multiple Choice

Question image

What type of loop is this?

1

Fixed

2

Conditional

35

Multiple Choice

In programming, what is iteration/looping?

1

The repetition of steps within a program

2

The order in which instructions are carried out

3

A decision point in a program

36

Multiple Choice

Why is iteration important?
1
It determines the order in which instructions are carried out
2
It allows code to be simplified by removing duplicated steps
3
It allows multiple paths through a program

37

Multiple Choice

Question image

Which type of loop is being used in this program?

1

Fixed loop

2

Conditional loop

38

Multiple Choice

Question image

What would stop the conditional loop in this example program?

1

When the user has guessed the number more than 10 times

2

When the user guesses higher than the number 54

3

When the user guesses lower than the number 54

4

When the user guesses the number 54

39

Implementation - Computational Constructs

A pre-defined function is an in-built function within the programming language.

You are required to know three functions at National 5.

  • Random - returns a random number between two parameters.

    SET number TO random(1, 10)

  • Round - returns a decimal number rounded to a given number of places

    SET result TO round(6.7854, 2)

  • Length​ - returns the length of a string

    character_count = length("Hello World")

Pre-defined Functions

40

Multiple Choice

Which pre-defined function would be most suitable to format a number to look like a sum of money?

1

length

2

function

3

round

4

random

41

Multiple Choice

Which pre-defined function would be most suitable to generate a winning raffle ticket number?

1

function

2

length

3

round

4

random

42

Multiple Choice

Which pre-defined function would be used to find the number of characters in a string?

1

function

2

length

3

round

4

random

43

Multiple Choice

Question image

What would be the output of running the following code:

1

3.1415

2

3.142

3

3.1416

4

3.14159

44

Implementation - Standard Algorithms

The Input validation algorithm checks that the user input is acceptable.​

Input Validation always makes use of a conditional loop.

SEND "Enter a number between 1 and 10" TO DISPLAY

RECEIVE number FROM KEYBOARD

WHILE number < 1 OR number > 10 DO

SEND "Invalid - enter a number between 1 and 10" TO DISPLAY

RECEIVE number FROM KEYBOARD

END WHILE

Input Validation​

45

Implementation - Standard Algorithms

The running total algorithm adds a list of values.

Running Total algorithms always make use of a fixed loop.

DECLARE total INITIALLY 0

FOR counter FROM 1 TO 5 DO

DISPLAY "Enter a number"

RECEIVE number FROM KEYBOARD

SET total TO total + number

END FOR

SEND total TO DISPLAY

Running Total

46

Implementation - Standard Algorithms

The traversing an array algorithm accesses each element of an array from first to last.

​​

DECLARE test_scores INITIALLY [34, 75, 56, 60, 18]

DECLARE passes INITIALLY 0

FOR counter FROM 0 TO 5 DO

IF test_scores [counter] >= 50 THEN

SET passes TO passes + 1

END IF

END FOR

SEND passes & " students passed" TO DISPLAY

Traversing an array

47

Multiple Choice

Question image

Name this standard algorithm

1

Running total within a loop

2

Input validation

3

Traversing an 1D array

48

Multiple Choice

Question image

The program below traverses an array of countries and displays each in turn.
Which of the following statements has been removed from line 3?


1

DISPLAY countries

2

DISPLAY countries[counter]

3

DISPLAY counter

4

DISPLAY countries()

49

Multiple Choice

Question image

What will be the output from this program?


1

31
27
17
25
41

2

27
17
25

3

31
41

4

41

50

Multiple Choice

Question image

Name the standard algorithm that has been used in the following program.

1

Input validation


2

String concatenation


3

Running total within a loop


4

Traversing an array


51

Multiple Choice

Question image

The program below uses input validation to ensure response is either 'P' or 'Q'.
Which of the following statements has been removed from line 13?

1
2
3
4

52

Multiple Choice

Question image

The program below uses the running total in a loop algorithm to add 10 ratings entered by the user.
Which of the following statements has been removed from line 1?


1
2
3
4

53

Testing - Test Data

media

54

Multiple Choice

Which is NOT a level of testing?

1

Normal

2

Extreme

3

Exceptional

4

Extraordinary

55

Testing - Errors

An error that occurs when the program is running. An instruction that the computer cannot execute.

E.g. Dividing by 0​ or inputting a number when the program expects a string

Execution

Breaking the rules of the programming language.

Usually the result of a typing error. Misspelled words or missed punctuation like " " ( )

The program will usually crash and not run​.

Syntax

Logic

This error causes the program to operate incorrectly but not crash. Usually the result of an incorrect calculation or wrong logical operator.

56

Multiple Choice

Which is NOT an error?

1

Logic

2

Execution

3

Syntax

4

Intentional

57

Multiple Select

Question image

State the two types of errors in the code

1

Syntax

2

Logic

3

Execution

58

Evaluation - Readability

  • internal commentary

  • meaningful variable names

  • indentation

  • whitespace​

A program is made more readable through use of:

media

59

Multiple Choice

Which are examples of ways to aid code readability.

1

Use internal commentary

2

Use meaningful variable names

3

Use white space

4

All of them

N5 Software Design and Development

National 5 Computing Science Miss Lyon

Show answer

Auto Play

Slide 1 / 59

SLIDE