Week 5 Flashcards
1
Q
4 selection structure?
A
- simple selection (Simple if statement)
- simple selection with null false branch (null else statement)
- combined selection (combined if statement)
- nested selection (nested if statement)
2
Q
Each solution algorithms will be consist of:
A
- Defining the problem
- The control structures required
- The solution algorithm
- Desk checking
3
Q
3 subordinate modules dari general solution algorithm?
A
- An initial processing module, terdiri dari step-step yang akan dijalankan pertama kali, sebelum loop dimulai.
- A processing module inside the loop containing all steps neccessary to process one record or piece of data
- A final processing module, terdiri dari step-step yang dijalankan pada akhir dari algoritma, diluar loop
4
Q
General algorithms for common business problems ada 4:
A
- Report generation with page break
- single level control break
- multiple level control break
- sequential file update
5
Q
Benefit of modular design. ada 4
A
– Ease of understanding : each module should perform just one function – Reusable code : modules used in one program can also be used in other programs – Elimination of redundancy : using modules can help to avoid the repetition of writing out the same segment of code more than once – Efficiency of maintenance : each module should be self- contained and have little or no other modules within the program