SDD - Theory Flashcards

1
Q

Name the 6 phases of the software development process in order

A

Analysis
Design
Implementation
Testing
Documentation
Evaluation.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Explain why the software development process in iterative?

A

The software development process is iterative because because stages can be revisited if mistakes or issues are found e.g. after testing the process may return to the implementation stage to fix any programming errors, or the design stage to fix any design errors.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What happens in the Analysis stage of the software development process

A

In the Analysis phase will determine:

1) The purpose of the software - what the software will be used for
2) The functional requirements of the software - this will specify inputs, processes and outputs.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Identify the functional requirements: Software should be created to allow a user to enter ten numbers. Each number must be validated to make sure that it is no less than 0 and no more than 100. The program should keep a running total of the numbers entered and output the final total.

A

Inputs:
Ten numbers

Process:
Validate ten numbers
Calculate total

Outputs:
Total

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Identify the functional requirements: The owners of a theme park have asked that a program be developed to record the average number of visitors in a week. A user will enter the total number of visitors for each day of the week. The program should then output the average number of visitors across the week.

A

Inputs:
Daily total

Process:
Calculate average

Outputs:
Average

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Identify the functional requirements: A program is to be developed to create usernames for a class of twenty pupils. The program will ask a teacher to enter the first name, surname and age of each pupil. The age entered must be between five and eighteen. The program should output a list of usernames for the teacher.

A

Inputs:
Pupil first name
Pupil surname
Pupil age

Process:
Create username
Validate age

Outputs:
List of usernames

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Name 2 common assumptions from the analysis phase

A

The client has hardware needed to run the software
No software compatibility concerns
No issues with internet connection/ accessibility during use
IT competency of the target user group

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

List the 5 Data Types you need to know for National 5 Computing

A

Character
String
Integer
Real/Float
Boolean

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Name the appropriate data
type for a students grade. e.g. A, B, C, D, U and explain your choice.

A

Character - Student grade is stored as a single character

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Name the appropriate data
type for number of students going on a trip, and explain your choice.

A

Integer - you can not have part of a student going on a trip therefore the datatype should be a whole number

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Name the appropriate data
type for the price of a item in a supermarket, and explain your choice.

A

Real Number - The price of items in a supermarket has a decimal point e.g. 1.99 therefore real is the appropriate choice

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Name the appropriate data type for the name of a supermarket product , and explain your choice.

A

String - The name of the product is a string of characters e.g “pepsi”

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Name the appropriate data type to record if a student in going on a trip, and explain your choice.

A

Boolean - The answer to the question is either yes/no or true/false therefore this is the appropriate data type

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is the name of the data structure you need to know for National 5 Computing

A

1 D Array or 1 dimensional Array

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
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

1 D Array or a 1 D Array of real numbers

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Draw the symbols, for a loop, selection, process and predefined function in a structure structure diagram

A

Loop: Rectange
Process: Oval
Selection: Hexagon
Predefined Function: Rectangle with 2 lines
See bitesize for more details

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

Name the 3 design notations (techniques) your need to know for Nat 5 Computer Science

A

structure diagrams
flowcharts
pseudocode

18
Q

Name the 3 types of test data

A

normal
extreme
exceptional

19
Q

Describe normal test data

A

Data that you would expect to work or be accepted and that lies within the range

20
Q

Describe normal test data

A

Data that you would expect to work or be accepted and that lies within the range

21
Q

Describe and use extreme test data

A

Data at the lower and upper limits of the range

22
Q

What type of test data is being described? Data that should not be accepted by the program

A

exceptional

23
Q

What type of test data is being described? Data at the lower and upper limits of the range

A

extreme

24
Q

What type of test data is being described? Data that you would expect to work or be accepted and that lies within the range

A

normal

25
Q

A program asks the user to enter a number between 100 and 1000. Give an example of normal, extreme and exceptional test data

A

Normal: 500 (any number between 101 and 999)
Extreme: 100 or 1000
Exceptional: 99, bob
(Any Word, any number less than 100, any number greater than 1000)

26
Q

A program asks the user to enter a password at least 6 characters long. Give an example of normal, extreme and exceptional test data

A

Normal: password
(any string/number with 7 or more characters)
Extreme: hello1
(any string/number with 6 characters)
Exceptional: 99, bob
(Any Word, any number less 6 characters)

27
Q

A program asks the user to enter a number between 1 and 100.

When testing the program the following data is input.

1
50
Bob
100
75
-99
101

Identify the test type for each piece of test data

A

1: extreme
50: normal
Bob: exceptional
100: extreme
75: normal
-99
101

28
Q

Name the 3 types of programming errors

A

Syntax
execution
logic

29
Q

Describe a syntax error

A

Syntax errors are errors in code such as mis-spelled keywords or incorrect use of the programming language rules.

30
Q

Identify the error type.
Errors in code such as mis-spelled keywords or incorrect use of the programming language rules.

A

Syntax

31
Q

Describe an execution error

A

Execution errors (also called run-time errors) will cause the program to crash unexpectedly.
For example when a number is divided by 0

32
Q

When running the program crashed what type of error has occured

A

execution error

33
Q

Describe a logic error

A

A logic error does not cause the program to crash, but it will produce unexpected results.

34
Q

A program to calculate a quote shows the wrong value when run. What type of error has occurred?

A

Logic Error

35
Q

When running your program, the code editor does not recognise the comand you have entered. What type of error has occured?

A

Syntax error

36
Q

How do we know if a program is fit for purpose.

A

A program is fit for purpose if it meets the requirements specification set out during the analysis phase.
The final program should match the purpose and functional requirements

37
Q

What should you look out for to make your code effiecent.

A

Efficient code uses less resources (processor, RAM) and executes more quickly. Code can be made more efficient by:

  • Using repeat loops wherever possible
  • Using if statements that will exit when the selection condition has been met
  • Using complex conditions instead of simple conditions
  • Using arrays instead of multiple variables
38
Q

How do you know if your program is robust?

A

A program is robust if it can handle a range of different inputs without crashing. Test

39
Q

Name 4 ways you can make your code more readable?

A
  • internal commentary
  • meaningful variable names
  • indentation
  • white space
40
Q
A