F452 Describe Flashcards

1
Q

Describe what is meant by serial file.

A

Records appear in the order that they are received/chronologically. New records are appended to the end of the file. To access a record you have to search through all of the preceding records.

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

Describe RAD and the advantages.

A

Is a method for designing software where a prototype design with reduced functionality is produced then tested and evaluated to refine the design of the next prototype. This is repeated until the prototype is accepted which becomes the final product. Advantages: something can be physically ‘seen’ clearly working early in the project, overall development time is quicker and end user is more involved. User can change requirements as product becomes clearer.

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

Describe black box testing.

A

In black box testing, sets of inputs are tested…
… to see if they produce the intended outputs
… you need to test all possible types of input/situations
… but how the algorithm works is not considered

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

Describe alpha testing.

A

Testing is carried out by the programmers playing the role of the user during development to find bugs in the program.

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

Describe acceptance testing.

A

Takes place after the program is completed. Meeting between Client and End User. Client demonstrates to the end user that the software works corrects or requirements are met and desired features are implemented.

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

Describe two ways in which you can improve the readability/programming style of an algorithm.

A

Use indentation and use meaningful identifier names for a variable

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

Describe debugging tools and facilities available in programming languages, which can be used to identify and correct errors.

A

Translator diagnostics - picks up syntax errors and informs the programmer who can then correct the error and translate it again
Break points - causes the program to halt in execution at strategic points current values of variables can then be checked.
Watches - causes the program to halt in execution if a condition is met such as a variable changing.
Stepping- executing the code one statement at a time observing path of execution and changes to variables. can be used with break points or watches.

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

Describe how using constants can help improve the maintainability of coding.

A

A descriptive identifier/ name is used for the constant which makes the code clearer to read and understand during maintenance. and is is easier to remember the identifier than the value when writing code. if the value needs to be changed, then only one change needs to be made (where the constant is declared). this updates the value throughout the program.

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

Describe what is meant by a parameter.

A

A variable which holds an item of data which is supplied/passed to a subroutine/procedure/function. It is given an identifier when the sub-routine is defined. It is substituted for an actual value when the subroutine is called.

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

Describe two types of iteration construct.

A

While Loop - condition is tested before each iteration and the statements inside the loop will only be executed if the condition is TRUE. The statements inside loop may never be executed if the condition is initially false.
For Loop - the number of iteration is fixed according to start and end values of a variable set at the beginning.

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

Describe two advantages of using a modular design to produce software.

A

Each model is a small part of the problem so easy to solve, test and debug. Easy to maintain and update a part of the system since the program would be well structured with clearly defined interfaces. Development can be shared between a team of programmers so the program develops faster and easy to monitor progress. Modules can be allocated according to expertise improving the quality of final product. Different modules can be programmed in different languages. Modules can be reused in different programs.

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

Describe how a serial search is conducted.

A

Check the array is not empty and if it is report an error.
Set a counter to 0 or 1. Check if item in current position is item searched if found return the position/value of counter. If not found increment counter/move to next position…Until the end of the array or until the item is found. If not found then return ‘not found’.

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

Describe what nesting means.

A

When a construct is written within another. Each construct must be completely contained in the preceding construct.

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

Describe what is meant by keyword violation error.

A

A reserved word that cannot be used as an identifier. Words which are already used for a purpose within the language.

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

Describe what a recursive algorithm means.

A

When a function/procedure calls itself until is reaches a stopping condition.

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

Describe what beta testing means.

A

When a program is nearly completed and is tested by third party users under real conditions as intended. They report any errors found and suggest any features which can be implemented to improve the program.

17
Q

Describe two ways that sound can be used to enhance an interface.

A

Speech synthesis e.g. to give members instructions.
Buzz/Beep/Click/ to reinforce on screen feedback or to signify transition completely successfully
Alarm-to alert staff/request assistance

18
Q

Describe what a random file means.

A

The key address of each record is calculated from the key using a hash # algorithm. Records may not be in sequence.

19
Q

Describe what is meant by a procedure.

A

A procedure is a subroutine which is given an identifier. It can be called from the main program/or from another procedure. When called the code in the procedure can be executed and then control is passed back to where the procedure is called from.

20
Q

Describe how breakpoints and stepping can be used to identify errors in programs.

A

Breakpoints- will pause the code to stop at specified lines of code.
Stepping - allows programs to be executed a line at a time allowing the programmer to check the value of variables. Allows the programmer to see the flow of control e.g. to determine logic error/check results of calculations e.g. to determine at what point an error occurs. e.g to detect undeclared identifiers e.g. to determine why a runtime error has occurred.

21
Q

Describe the advantage of using iteration instead of recursion.

A

Iteration uses only one set of variables therefore more efficient use of memory. Iteration can be faster and less likely to run out of stack space.
But algorithm with iteration may be more difficult to follow because variables are being reused. You need to ensure that the conditions of the loops are correct.

22
Q

Describe what is meant by a logic error.

A

Code follows the rules/syntax of the language but does not perform the intended action. e.g. wrong mathematical operator

23
Q

Describe what is meant by an array.

A

A data structure of the same data type grouped under one identifier/variable. Each item can be addressed using its index position.

24
Q

Describe what happens if a programmer declares a global variable and a local variable with the same name.

A

If a global and local variable are declared with the same name either the translator the will create an error or the local variable will take precedence. The global will apply to the rest of the code whereas the local variable will only apply to the function/procedure.

25
Q

Describe the difference between a FOR LOOP and a WHILE LOOP.

A

A for loop is set up with a fixed set of iterations whereas a while runs repeatedly depending on a condition.

26
Q

Describe what is meant by a 2-dimensional array.

A

A collection of data items of the same data type under one identifier which uses two index numbers and can be represented as a table.

27
Q

Describe step-wise refinement.

A

A problem to be solved is split into further sub-programs which are split even further until each sub problem is small enough to solve.

28
Q

Describe the process of deleting a record from a serial file.

A

A new file is created. Records are copied from the old file to the new file except the record to be deleted. The new file is renamed as the old file.

29
Q

Describe how data is organized in an indexed sequential file.

A

Records are sorted according to a primary key. A separate index is kept. Index allows groups of records to be accessed directly. New data needs to be inserted in correct position and index updated.

30
Q

Describe the benefits of an indexed sequential file for storing data.

A

Index allows groups of records to be accessed directly. Accessing individual files is much faster. Is more suited to large files.

31
Q

Describe the limitations of an indexed sequential file for storing data.

A

It is more difficult to manage e.g. when adding new records it needs to be inserted in the correct position and the index must be maintained and kept in sync with the data.

32
Q

Describe the benefits of serial file for storing data.

A

The files are relatively short

There is no need to have the records in a particular order

33
Q

Describe why installation in necessary, before an application can be used.

A

Files used the program e.g.data files need to be in the correct folders

Program needs an icon/shortcut so that it can be accessed easily

To configure initial settings to suit user preferences

34
Q

Describe what is meant by a function.

A

A subroutine
It is called as part of an expression in the main program
Which returns a single value when called
The value replaces the function call in the main program.

35
Q

Describe what is meant by the scope of a variable.

A

That part of a program where the variable is available
e.g. whether it is local or global
A global variable is available throughout the program
A local variable only applies to a subroutine
If global and local variables use the same identifier, then the local takes precedence.

36
Q

Describe what is meant by selection construct.

A

A condition is used to determine which of the statements (if any) will be executed as a result some instructions may not be executed

37
Q

Describe what is white box testing.

A

In white box testing, the actual steps of the algorithm are tested to make sure all parts work as intended you need to test all possible paths through the algorithm