Software Design and Development Flashcards
What is a wireframe diagram?
A wireframe diagram is used to design the user interface for a program. This only applies to programs which will have buttons for the user to click to make them work. Wireframe diagrams are drawn in the same way for a program as they are for a webpage.
How can code of a program be designed before programming? Explain your answer.
The code for a program can be designed using either a flow chart, a structure diagram or pseudocode. A flow chart shows the flow of data within a program from top to bottom but may split to two possible paths for an if statement. A structure diagram begins to divide the program design into sub-routines or modules. Each module is represented by a column in the structure diagram (read from left to right, working down each column in turn)
How is text stored as a variable?
string (str)
How are whole numbers stored as variables?
integer (int)
How are decimal points stored as variables?
float (float)
How is yes/no, true/false stored as an array?
Boolean.
Explain what an array and an index is.
Multiple values can be stored in a single data structure by setting up an array. this will have a number in [] after the variable name to represent either the total number of values the array can store, or the current value being accessed. This number is known as the index value.
What are the mathematical operations?
Basic calculations can be programmed using the following mathematical operations; + to add, - to subtract, * to multiply, / to divide and ^ for a power i.e., 2 squared would be 2^2.
What are logic operators (for comparision)?
Comparisons between values and variables are performed using < less than, > greater than or == equal too. To compare two variables at one logic operators can be used. These include and for a match in more than one, or for a match in one or another and not to check if a condition is not met.