Week 3 Flashcards

1
Q

7 Step dalam program development?

A
  1. Define the problem
  2. Outline the solution
  3. Develop the outline into an algorithm
  4. Test the algorithm for correctness
  5. Code the algorithm into a specific programming language
  6. Run the program on the computer
  7. Document and maintain the program
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

3 common approached dalam program design?

A
  1. Procedure driven
  2. Event driven
  3. Data driven
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Procedure driven program design?

A

berdasarkan pada ide dari fitur yang paling penting dalam sebuah program, seperti functions nya.

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

Event driven program design?

A

Berdasarkan pada ide dari event atau interaksi.

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

Data driven program design?

A

berdasarkan pada ide dari data dalam sebuah program.

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

Procedural Programming berdasarkan pada?

A

structured, top-down approach

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

What is algorithm and pseudocode?

A

algorithm yaitu langkah-langkah yang dibutuhkan untuk menyelesaikan suatu problem. pseudocode digunakan untuk merepresentasikan algorithm.

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

Program data ada 3, yaitu:

A
  1. Variable, koleksi dari memori yang menyimpan data yang bisa berubah selama program berjalan.
  2. Constant, sebuah data item dengan nama dan nilai yang tetap sama selama eksekusi program
  3. Literal, constant yang namanya merepresentasikan nilai tersebut
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Elementary data items?

A
  1. Integer
  2. Real
  3. Character
  4. Boolean
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Data Structures?

A
  1. Record
  2. File
  3. Array
  4. String
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

6 basic computer operation?

A
  1. a computer can receive information
  2. put out information
  3. perform arithmetic
  4. assign a value to variable or memory location
  5. comprate two variables and select one of two alternative actions
  6. repeat a group of actions
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Structure theorem?

A
  1. Sequence: menjalankan baris per baris eksekusi
  2. Selection: suatu kondisi dan pilihan antara dua actions, bergantung pada kondisi true and false
  3. Repetition: suatu kumpulan instruksi yang akan di jalankan secara berulang
How well did you know this?
1
Not at all
2
3
4
5
Perfectly