M1S2 Flashcards
Q: What is the Program Development Life Cycle (PDLC)?
A: A set of steps or phases used to develop a program in any programming language.
Q: What are the advantages of using pseudocode over actual coding?
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.
Q: What are the main phases of the Program Development Life Cycle?
A: 1. Requirement Analysis 2. System Design 3. Coding 4. Testing and Debugging 5. Documentation and Maintenance
Q: What is Requirement Analysis?
A: It involves collecting information and defining the characteristics or features of the desired system.
Q: What are the steps involved in Problem Analysis?
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.
Q: What is the purpose of Program Design?
A: To describe the algorithm for the solution of the problem.
Q: What is an algorithm?
A: A step-by-step sequence of instructions that describe how data will be processed to produce the desired output.
Q: What are two methods a programmer can use to formulate an algorithm?
A: Pseudocode and flowcharts.
Q: What is pseudocode?
A: An algorithm written in normal human language statements to describe the logic and processing flow.
Q: What is a flowchart?
A: A visual representation of the sequence of steps and decisions needed to perform a process, using shapes and directional arrows.
Q: What are the steps in the coding phase?
A:
Select the appropriate programming language.
Follow the syntax.
Q: What does program testing involve?
A: Running various tests, such as desk checking and debugging (alpha testing), and using real data to ensure the program works.
Q: What is desk checking?
A: Manually testing the solution design to ensure it is free of errors and that the logic works.
Q: What is debugging?
A: Detecting, locating, and removing all errors in a computer program.
Q: What are the three types of errors in programming?
A:
Syntax Error
Run-time Error
Logical Error