Week 5 Flashcards

1
Q

4 selection structure?

A
  1. simple selection (Simple if statement)
  2. simple selection with null false branch (null else statement)
  3. combined selection (combined if statement)
  4. nested selection (nested if statement)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Each solution algorithms will be consist of:

A
  1. Defining the problem
  2. The control structures required
  3. The solution algorithm
  4. Desk checking
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

3 subordinate modules dari general solution algorithm?

A
  1. An initial processing module, terdiri dari step-step yang akan dijalankan pertama kali, sebelum loop dimulai.
  2. A processing module inside the loop containing all steps neccessary to process one record or piece of data
  3. A final processing module, terdiri dari step-step yang dijalankan pada akhir dari algoritma, diluar loop
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

General algorithms for common business problems ada 4:

A
  1. Report generation with page break
  2. single level control break
  3. multiple level control break
  4. sequential file update
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly