N5: Computing: Software design and delvelopment (2) Flashcards
Give an example statement for Input, process and output
Input- enter the names of 100 countries
Process- Find the countries with a population of less than 1 million inhabitants
Output- Display all the countries that have less than 1 million inhabitants
State the names of the two types of planning structures for program designs
Structure diagram and Flow chart
What does Selection, Fixed Loop and Conditional loop mean
Selection- Performs an action if one condition is true and the other is false e.g- “Is percentage >49 %”
Fixed loop- A loop that is repeated a set number of times e.g- “Repeat punishment lines 100 times”
Conditional loop- A loop that is repeated until a condition is true (condition has been meet) e.g- “Is month between the range of 1-12” will loop until number of month is between 1 and 12
What is user interface design (UID)
User interface design is a plan that is made prior to software creation so the software layout can be seen in a wire frame
Give an example of UID
Wireframe design
Give the five main data types and what they store
Char- Single character variable
String- Item of text
Integer- Positive of negative whole number
Real number- Any positive or negative decimal number
Boolean- Two state variable (True or False / Yes or No)
What is an array used for
To store multiple values with the same data type
If there were 20 marks of Integer data type then what would an array look like
Marks(19)
Give an example of each of the 5 main data types
Char- any single character
Boolean- True or false / Yes or no
Integer- any positive or negative whole number
Real number- Any positive or negative decimal number
String- Any word or phrase
Name the three types of testing data
Normal, extreme and exceptional
Name three types of errors that could occur and what each error means
Syntax- Spelling errors, missing brackets, double punctuation
Logical- Doesn’t make logical sense e.g- a = l + b
Execution- No syntax or logical errors but errors that cannot be picked up e.g- dividing by 0