Made with ScholarlyMake flashcards like these from your own notes
Question:What are the six steps of the Problem Solving Life Cycle in order?
Answer:Understanding, Analyzing, Planning, Implementation, Testing & Debugging, Documentation & Maintenance
Question:What is the primary goal of Understanding the Problem stage?
Answer:Clearly define the problem
Question:What activities are involved in Analyzing the Problem stage?
Answer:Break into parts, identify inputs and outputs
Question:What is produced during the Planning Program Design stage?
Answer:Algorithmic plan and design (flowcharts, steps)
Question:What occurs during the Implementation stage?
Answer:Write the program in a programming language
Question:What is the purpose of Testing & Debugging?
Answer:Find and fix errors, ensure correct behavior
Question:Why is Documentation & Maintenance important?
Answer:Keep records and enable future improvements
Question:What tools are commonly used in the Planning Program Design stage?
Answer:Algorithms and flowcharts
Question:What is the top-down approach to problem solving?
Answer:Break big problem into smaller modules
Question:What is the bottom-up approach to problem solving?
Answer:Solve small parts first, then combine
Question:Define an algorithm.
Answer:A finite, step-by-step procedure to solve a problem
Question:List three characteristics of an algorithm.
Answer:Finite steps, clear/unambiguous, defined inputs/outputs
Question:What condition must flowcharts satisfy to be effective?
Answer:Clearly represent the algorithm and flow of control
Question:What symbol is used for Start/End in a flowchart?
Answer:Oval
Question:What symbol represents Input/Output in a flowchart?
Answer:Parallelogram
Question:What symbol represents Decision in a flowchart?
Answer:Diamond
Question:What symbol represents Process/Calculation in a flowchart?
Answer:Rectangle
Question:What is the role of an assembler?
Answer:Converts Assembly language to machine code
Question:What does a compiler do?
Answer:Converts whole program to machine code at once
Question:What is the primary difference between a compiler and an interpreter?
Answer:Compiler: entire program; Interpreter: line-by-line execution
Question:Name a low-level programming language.
Answer:Machine code or Assembly language
Question:Name a high-level programming language.
Answer:C, Java, Python
Question:What is a syntax error?
Answer:Mistakes in the grammar of the language (e.g., missing ;)
Question:What is a logical error?
Answer:Wrong logic causing incorrect output despite no runtime errors
Question:What is a runtime error?
Answer:Error that occurs during execution (e.g., divide by zero)
Question:What is Testing in the context of programming?
Answer:Running the program with different inputs to check behavior
Question:What is Debugging?
Answer:Finding and fixing errors in a program
Question:How does top-down design help in managing complexity?
Answer:By breaking a problem into smaller modules
Question:How does bottom-up design help in integrating solutions?
Answer:By solving simple components and combining into a complete solution
Question:What is the purpose of documenting code and design decisions?
Answer:Aid understanding, maintenance, and future improvements
Question:What is the difference between input and output in an algorithm?
Answer:Inputs are data given to the algorithm; outputs are results produced
Question:In flowcharts, what does an arrow represent?
Answer:Flow of control/direction of execution
Question:What type of error occurs when a program runs but produces the wrong result?
Answer:Logical error
Question:Why are high-level languages easier for humans to read compared to machine code?
Answer:Readable syntax and abstractions reduce complexity
Question:What does the term translator encompass in programming?
Answer:Assembler, compiler, or interpreter
Question:What is the key function of an assembler?
Answer:Translate assembly to machine code