M1S2 Flashcards

1
Q

Q: What is the Program Development Life Cycle (PDLC)?

A

A: A set of steps or phases used to develop a program in any programming language.

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

Q: What are the advantages of using pseudocode over actual coding?

A

A: Pseudocode allows for easier understanding and communication of the logic and flow of an algorithm without worrying about syntax errors, making it simpler to plan and visualize the structure of the program.

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

Q: What are the main phases of the Program Development Life Cycle?

A

A: 1. Requirement Analysis 2. System Design 3. Coding 4. Testing and Debugging 5. Documentation and Maintenance

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

Q: What is Requirement Analysis?

A

A: It involves collecting information and defining the characteristics or features of the desired system.

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

Q: What are the steps involved in Problem Analysis?

A

A:

Define the problem and the users.
Determine the desired outputs.
Determine the inputs to achieve the desired outputs.
Determine the processes involved.
Check the feasibility of implementing the program.
Document the analysis.

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

Q: What is the purpose of Program Design?

A

A: To describe the algorithm for the solution of the problem.

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

Q: What is an algorithm?

A

A: A step-by-step sequence of instructions that describe how data will be processed to produce the desired output.

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

Q: What are two methods a programmer can use to formulate an algorithm?

A

A: Pseudocode and flowcharts.

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

Q: What is pseudocode?

A

A: An algorithm written in normal human language statements to describe the logic and processing flow.

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

Q: What is a flowchart?

A

A: A visual representation of the sequence of steps and decisions needed to perform a process, using shapes and directional arrows.

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

Q: What are the steps in the coding phase?

A

A:

Select the appropriate programming language.
Follow the syntax.

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

Q: What does program testing involve?

A

A: Running various tests, such as desk checking and debugging (alpha testing), and using real data to ensure the program works.

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

Q: What is desk checking?

A

A: Manually testing the solution design to ensure it is free of errors and that the logic works.

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

Q: What is debugging?

A

A: Detecting, locating, and removing all errors in a computer program.

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

Q: What are the three types of errors in programming?

A

A:

Syntax Error
Run-time Error
Logical Error

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

Q: What is a Syntax Error?

A

A: The most common error, resulting from incorrect use of programming language statements.

17
Q

Q: What is a Run-time Error?

A

A: A software error that occurs while a program is being executed.

18
Q

Q: What is a Logical Error?

A

A: A mistake in a program’s source code that results in incorrect or unexpected behavior.

19
Q

Q: What is documentation in programming?

A

A: A written detailed description of the programming cycle, including instructions on the use and maintenance of the program/software.

20
Q

Q: What is maintenance in the context of programming?

A

A: Any activity designed to keep programs error-free, up-to-date, and in good working condition.