Made with ScholarlyMake flashcards like these from your own notes
Question:What is the primary goal of this programming course in the Philippines syllabus?
Answer:Explain and implement procedural programs using standard documentation.
Question:Which fundamental programming components are listed in the course outline?
Answer:Primitive data types, basic computation, simple I/O, conditional/iterative structures, functions/parameters.
Question:What are the five stages of the Program Development Process as per 1.2.1?
Answer:Analyze the problem; Design algorithm; Implement the algorithm; Test and verify; Maintain and update.
Question:What should students be able to do at the end of the course?
Answer:Understand programming concepts, define terminology, learn paradigms, apply development steps, design flowcharts/algorithms, predict expression results.
Question:What is the definition of computer programming according to Bebbington in this module?
Answer:Designing and building an executable program to accomplish a specific computing result.
Question:List tasks involved in programming as described in the module.
Answer:Analysis, generating algorithms, profiling accuracy/resource use, implementing algorithms.
Question:What language is used in this module for programming?
Answer:C++.
Question:What is a computer program according to the module?
Answer:A collection of instructions that performs a specific task when executed.
Question:Who writes computer instructions?
Answer:Programmers.
Question:What does the term ‘method’ refer to in a typical program?
Answer:A unit containing commands and statements to perform operations.
Question:Name the historical progression of programming languages discussed.
Answer:Machine language → assembly language → high-level languages.
Question:What are the two symbols used for machine language in the example?
Answer:0 and 1.
Question:Why is machine language considered tedious and error-prone?
Answer:Direct binary coding is complex and requires precision.
Question:What is an assembly language in contrast to machine language?
Answer:Uses mnemonics instead of binary for instructions.
Question:What is required to convert assembly language to machine code?
Answer:An assembler.
Question:What does the mnemonic ADD represent in assembly language?
Answer:Add operation.
Question:What does the mnemonic MUL represent in assembly language?
Answer:Multiply operation.
Question:What is the role of an assembler?
Answer:Converts assembly instructions into machine code.
Question:Why is assembly language easier than machine language, yet still tedious?
Answer:Mnemonics simplify writing, but translation to binary remains complex.
Question:What is the focus of Module 1.2.1.5 in the development process?
Answer:Maintain and update the program.
Question:What is the meaning of I/O in programming context?
Answer:Input and Output.
Question:Which basic programming paradigms might students learn according to the objectives?
Answer:Procedural programming (as implied by the course).
Question:What should be included in designing flowcharts and algorithms?
Answer:Steps to solve problems and data flow in programs.
Question:How is a test and verify phase described in the development process?
Answer:Test the program to ensure it meets the specification.
Question:What is the significance of documenting standards and guidelines in programming?
Answer:Ensures readability, maintainability, and collaboration.
Question:What is meant by ‘defining functions and parameters’ in programming?
Answer:Creating reusable code blocks with input arguments.
Question:What core educational objective relates to predicting expression results?
Answer:Understand evaluation order and operator effects.
Question:What is one practical example of programming you might apply as described?
Answer:Notify an appointment at a specific date/time.
Question:What is meant by the term ‘procedural programming’ in this course?
Answer:Programming based on procedure calls and sequence of steps.
Question:Which computer programming languages are cited as popular in the module?
Answer:C++, Visual Basic, C#, Java.
Question:What does “flowchart” help you design in programming?
Answer:Visual representation of algorithm steps.
Question:What is the general purpose of an algorithm in programming?
Answer:Provide a step-by-step procedure to solve a problem.
Question:What are the five program development stages listed in the module?
Answer:Analyze, Design, Implement, Test/Verify, Maintain/Update.
Question:What is the main function of debugging in the development cycle?
Answer:Identify and fix defects to ensure correct behavior.
Question:What is the relationship between a program and a computer?
Answer:Program provides instructions that the computer follows.
Question:What is meant by ‘resources consumption’ in algorithm profiling?
Answer:Time and space (memory) usage.
Question:What does the module suggest about knowledge of programming paradigms?
Answer:Understand their uses and contexts.
Question:Which phase comes after implementing the algorithm?
Answer:Test and verify the program.
Question:What is meant by the term ‘simple I/O’?
Answer:Basic input and output operations.
Question:What types of data are considered primitive in programming?
Answer:Basic data types like int, float, char.
Question:What is the role of ‘tests and verification’ in ensuring program quality?
Answer:Ensure the program meets the given specification.
Question:How does the module define ‘analysis’ in problem solving?
Answer:Understanding the problem requirements and constraints.
Question:What is the significance of understanding programming terminology?
Answer:Facilitates communication and learning across topics.
Question:What is the scope of Module 1 in the course?
Answer:Programming concepts and fundamentals.
Question:Which part of the course discusses I/O statements, loops, and branching?
Answer:Module under Programming Concepts; described in overview.
Question:What is meant by ‘definition of functions and parameters’?
Answer:Declaring functions and their inputs/arguments.
Question:What does the module imply about testing a program?
Answer:Verifying correctness against specification.
Question:What is the overall aim of the module’s programming introduction?
Answer:Equip students to design, implement, test, debug programs.
Question:What historical language development step comes first in the module?
Answer:Machine languages.
Question:What does the term ‘mnemonics’ refer to in assembly language?
Answer:Alphabetic abbreviations for instructions.
Question:What is the difference between machine code and assembly language in terms of readability?
Answer:Machine code is binary; assembly uses mnemonics.
Question:Why do beginners still use assembly despite its complexity?
Answer:Provides closer control over hardware; stepping-stone to machine code.
Question:Which course code corresponds to Programming 1?
Answer:COMP 20023.
Question:What does the module suggest about ‘profile[d] algorithms’?
Answer:Assess accuracy and resource use.
Question:What is meant by high-level languages in the historical progression?
Answer:Languages closer to human language (e.g., C++, Java).
Question:What is a key skill in the problem-solving process according to the module?
Answer:Decompose problems into methods or steps.
Question:What is the expected outcome of the module’s learning objectives?
Answer:Ability to apply development steps and design solutions.
Question:Which section outlines a brief history of programming languages?
Answer:1.1.1 A brief history of programming languages.
Question:What is the term for the on/off switches in machine language?
Answer:Bits (0s and 1s).
Question:What is the essential function of a program in everyday devices?
Answer:Provide instructions to perform tasks.
Question:Which type of content is not included in this module’s focus?
Answer:Non-educational administrative or policy details.
Question:What is the expected impact of this course on debugging skills?
Answer:Improve abilities to locate and fix defects.
Question:What is the role of ‘profile algorithms’ accuracy?
Answer:Evaluate how closely the algorithm achieves its goal.
Question:What is the role of the sequence structure in a computer program?
Answer:Directs execution of instructions in listed order.
Question:What does a selection structure do in programming?
Answer:Makes a decision based on a condition and chooses an action.
Question:What is another name for the repetition structure?
Answer:Loop or iteration.
Question:What is the main focus of object-oriented programming (OOP) compared to procedure-oriented programming?
Answer:Objects and their use to accomplish goals.
Question:What is code reuse in OOP and why is it advantageous?
Answer:Using an object in multiple programs with little modification; saves time and money.
Question:Name high-level languages that can support both procedure-oriented and object-oriented programming mentioned in the text.
Answer:C++, Visual Basic, Java, C#.
Question:What are the six steps in the Program Development Life Cycle (PDLC) as listed?
Answer:Analyze problem; Design algorithm; Implement algorithm; Test and verify; Maintain and update.
Question:What is the first PDLC step and its core activity?
Answer:Analyze the problem; understand and identify input/output.
Question:What tool is important during the PDLC’s design/algorithm step?
Answer:A flow chart.
Question:In PDLC, what does implementation involve?
Answer:Writing the program source code in a programming language.
Question:During the PDLC, what is meant by the 'object code' mentioned in the text?
Answer:Executable machine code produced from source code.
Question:What does testing and verification aim to identify in a program?
Answer:Syntax and logic errors (bugs).
Question:What is the difference between a syntax error and a logic error?
Answer:Syntax: grammatical mistakes; logic: incorrect results.
Question:What does the maintenance step of PDLC typically involve?
Answer:Updating the program and documenting changes.
Question:According to the text, what two components are most important when analyzing a problem?
Answer:The problem’s output and input.
Question:What question should you ask to identify the problem’s output during analysis?
Answer:What does the user want to see/display on screen or in a file?
Question:In the context provided, what is the user’s tip calculation program required to do first with the bill?
Answer:Subtract liquor charge from the total bill.
Question:After adjusting for liquor charges, what calculation is performed next for the waiter tip?
Answer:Calculate the tip on the remainder using a percentage.
Question:What is Treyson Mobley’s requested program supposed to display?
Answer:The amount to tip a waiter.
Question:What is the overall objective of the program described for Treyson Mobley?
Answer:Compute and display tip amount after liquor deduction.
Question:What is a common name for the listing of program instructions?
Answer:Source code.
Question:What is meant by an “object” in object-oriented programming?
Answer:An independent unit usable in multiple programs.
Question:Why does the PDLC emphasize breaking down the problem?
Answer:To facilitate designing an effective algorithm.
Question:What does “flow chart” provide in the PDLC?
Answer:A visual diagram of the program flow.
Question:Which PDLC step involves running and debugging the program?
Answer:Test and Verify Program.
Question:What does debugging address in software development?
Answer:Bugs or errors in the program.
Question:What is meant by ‘algorithm’ in this context?
Answer:A step-by-step procedure to solve the problem.
Question:Which language-related term refers to the machine-understandable form after compilation?
Answer:Object code.
Question:What is the key outcome of the analysis phase in Treyson’s scenario?
Answer:Identify input, output, and how they relate to the tip calculation.
Question:In the sequence structure, how are instructions processed?
Answer:One after another in the listed order.
Question:What must a program user determine during problem analysis besides input and output?
Answer:How to resolve the problem (the program requirements).
Question:What advantage does object reuse provide in programming as described?
Answer:Saves time and money by using objects across programs.
Question:What is the definition of a loop in programming terms from the text?
Answer:Repetition of instructions until a condition is met.
Question:What are the three high-level language examples given for procedure-oriented programs?
Answer:COBOL, BASIC, C.
Question:Why is the flow chart considered helpful in the PDLC?
Answer:It helps break down and visualize the problem.
Question:In Treyson’s tip problem, what is subtracted from the total bill before tipping?
Answer:Liquor charge.
Question:What does the term “listing” refer to in programming?
Answer:The program's source code.
Question:Which step in PDLC comes after implementing the algorithm?
Answer:Test and Verify Program.
Question:What happens if the program has syntax errors?
Answer:Errors prevent the program from running correctly.
Question:What is meant by the term ‘program development life cycle’?
Answer:A six-step process for designing and maintaining software.
Question:What is the primary focus of object-oriented languages according to the text?
Answer:Objects and their use to accomplish goals.
Question:What is the final step of the PDLC as listed?
Answer:Maintain and update the program.
Question:What is the difference between the output and input in problem analysis?
Answer:Output is what is produced; input is what is used to produce it.
Question:What is the correct sequence directive in a program?
Answer:Instructions are executed in the order listed.
Question:What is the purpose of step 1 in problem solving as described in the text?
Answer:Identify output and input from the problem specification.
Question:According to the example, what should Treyson Mobley’s program display?
Answer:The tip amount.
Question:In the Treyson Mobley problem, what items are needed as input?
Answer:Total bill, liquor charge, tip percentage.
Question:What is an algorithm, as defined in the text?
Answer:A step-by-step instruction to accomplish a task.
Question:What does the flowchart primarily depict in programming planning?
Answer:The logical sequence of instructions.
Question:What are the two main components to identify when analyzing a problem?
Answer:Output and input.
Question:What is pseudocode?
Answer:A language-like, English-based representation of an algorithm that machines cannot execute.
Question:Why is pseudocode called 'false code'?
Answer:Because it resembles programming language instructions but cannot be executed by a computer.
Question:What is the difference between a flowchart and pseudocode?
Answer:Flowchart uses symbols and flowlines; pseudocode uses written steps.
Question:What do flowchart symbols connect with to show sequence?
Answer:Flowlines.
Question:What is the output specified for Treyson Mobley’s program?
Answer:The tip amount.
Question:What is the recommended origin of the algorithm in problem solving?
Answer:A blueprint-like English description guiding programming tasks.
Question:Which organization is associated with the programming course in the example?
Answer:Republic of the Philippines.
Question:What is the first step of the IPO (Input-Process-Output) model shown?
Answer:Input.
Question:What is the second step in the IPO model for Treyson Mobley’s problem?
Answer:Algorithm (processing).
Question:What is the third step in the IPO model?
Answer:Output.
Question:What does the term ‘liquor change’ refer to in the problem context?
Answer:Liquor charge to be subtracted from the total bill.
Question:How is the tip calculated according to the given algorithm?
Answer:Tip equals (Total bill - Liquor charge) × Tip percentage.
Question:What is meant by ‘item’ or ‘items’ when identifying input?
Answer:Information needed to compute the output.
Question:In what form can an algorithm be expressed besides English-like steps?
Answer:Pseudocode and flowchart.
Question:What is one major use of flowcharts in programming?
Answer:Program documentation and presentation.
Question:What is the main goal of Step 2 – Design the algorithm?
Answer:Plan the steps to transform input into output.
Question:What is the meaning of ‘liquor charge’ in the problem statement?
Answer:The charge for liquor on the bill.
Question:What does the term ‘output’ refer to in problem analysis?
Answer:The result that the user wants to see/display.
Question:In the context given, what does the program primarily compute for Treyson Mobley?
Answer:The waiter’s tip amount.
Question:What is the significance of a problem’s input according to the text?
Answer:Information needed to compute the output.
Question:Which part of the document discusses creating a visual diagram of the flow?
Answer:Step 2 and related sections describing flowcharts.
Question:What is a key benefit of flowcharts as per the text?
Answer:Visually depict the algorithm’s logical sequence.
Question:What is the typical content of an IPO diagram?
Answer:Input, processing (algorithm), and output.
Question:What is the role of debugging mentioned in the testing step?
Answer:Identify and fix syntax and logic errors.
Question:What does the term ‘syntax’ refer to in programming?
Answer:Grammatical errors in code.
Question:What does the term ‘logic error’ refer to?
Answer:Incorrect results due to faulty logic.
Question:What is the relationship between problem analysis and algorithm design?
Answer:Analysis identifies input/output; design creates steps to transform them.
Question:What is the main function of the graphics flowchart symbols?
Answer:Graphically represent the program’s flow.
Question:What is the meaning of ‘control flow’ in a flowchart?
Answer:The order in which instructions are executed.
Question:Why is it important to break down a problem into steps?
Answer:To create a clear, executable algorithm.
Question:What is the expected output in the Treyson Mobley example after processing input?
Answer:The tip amount displayed.
Question:What type of changes are discussed in the maintenance phase?
Answer:Updating the program and internal documentation.
Question:What is the characteristic of an effective algorithm in terms of language?
Answer:English-like and easy to translate into code.
Question:What does the term ‘input’ represent in the problem specification?
Answer:Information required to achieve the goal.
Question:What is the primary goal of step 4 in the problem-solving process?
Answer:Test and verify the program by debugging.
Question:What is meant by ‘flowlines’ in flowcharting?
Answer:Connections that show the sequence of steps.
Question:In the example, what does the tip percentage influence?
Answer:The final tip amount after subtraction.
Question:What is the relationship between total bill and tip in the algorithm?
Answer:Tip is computed from the remainder after liquor charge is subtracted.
Question:What is the main topic of the document excerpt?
Answer:Problem solving process in programming including IPO, pseudocode, and flowcharts.
Question:Which step involves displaying the tip to the user?
Answer:Step 3: Output (display the tip).
Question:What kind of errors must be eliminated during testing?
Answer:Syntax and logic errors.
Question:What is the term for a diagram using standardized symbols to depict a process?
Answer:Flowchart.
Question:What is the final step described in the problem-solving process?
Answer:Maintain and update the program.
Question:What does the text identify as important for problem-solving components?
Answer:The output and the input.
Question:What is the benefit of using pseudocode alongside flowcharts?
Answer:Helps plan algorithms clearly before coding.
Question:What is the initial step in Treyson Mobley's tip calculation algorithm?
Answer:Enter total bill, liquor charge, tip percentage.
Question:How is totalNoLiquor calculated in the algorithm?
Answer:totalNoLiquor = totalBill – liquor.
Question:What is the next computation after obtaining totalNoLiquor?
Answer:tip = totalNoLiquor * tipPercent.
Question:What value does the program display at the end?
Answer:Tip amount.
Question:Which input variable represents the liquor charge?
Answer:liquor.
Question:What input does tipPercent represent?
Answer:Tip percentage.
Question:In pseudocode, what is the operation to get the bill without liquor charge?
Answer:Subtract liquor charge from total bill.
Question:What type is used for totalBill in the C++ snippet?
Answer:double.
Question:What type is used for liquor in the C++ snippet?
Answer:double.
Question:What type is used for tipPercent in the C++ snippet?
Answer:double.
Question:Which statement prints the final tip value to the user?
Answer:cout << “Tips: $” << tip << endl;.
Question:What is the purpose of desk-checking the algorithm?
Answer:Verify correctness and order before coding.
Question:What does the flowchart primarily depict in this context?
Answer:Procedural steps to compute tip after liquor deduction.
Question:What does totalNoLiquor represent?
Answer:Total bill excluding liquor charge.
Question:What does the program subtract from the total bill?
Answer:Liquor charge.
Question:Where is the tip percentage applied?
Answer:To totalNoLiquor.
Question:Which language is shown for implementing the algorithm besides pseudocode?
Answer:C++.
Question:What is the overall goal of Treyson Mobley's program?
Answer:Calculate and display waiter tip after liquor deduction.
Question:What does the term “pseudocode” mean in this document?
Answer:False code; resembles programming but not executable.
Question:Which figure shows the solution using a flowchart?
Answer:Figure 11.
Question:Which figure shows the algorithm in pseudocode and its flowchart?
Answer:Figure 11.
Question:What is the data type used for totalNoLiqour in the Processing section?
Answer:double.
Question:What is the spelling error present in the variable name totalNoLiqour?
Answer:Liqour (should be Liquor).
Question:What error appears in output section labeled ‘Outout’?
Answer:Typo; should be Output.
Question:What is the main educational purpose of Figure 10 in the document?
Answer:Symbols and functions used in flowcharting.
Question:What does the algorithm do after calculating the tip?
Answer:Display tip.
Question:What is the relationship between total bill and liquor in the algorithm?
Answer:Total bill minus liquor equals amount before tip.
Question:What does the phrase ‘desk-check’ refer to?
Answer:Reviewing algorithm before coding.
Question:What does the instruction Enter total bill, Liquor charge, and Tip percentage precede?
Answer:The processing steps to compute tip.
Question:Which statement shows user input prompts for the C++ implementation?
Answer:cout << “Enter the total bill: ”; cin >> totalBill;
Question:What is desk-reading a program’s algorithm called?
Answer:Desk-check the algorithm
Question:What is the purpose of desk-checking before coding?
Answer:Verify correctness and order of instructions
Question:What is the term for running a program to find bugs after coding?
Answer:Debugging
Question:What do you call the process of converting pseudocode into a chosen programming language?
Answer:Code implementation
Question:In the Treyson Mobley problem, what must be subtracted from the total bill before calculating the tip?
Answer:Liquor charge
Question:What is calculated after subtracting liquor from total bill?
Answer:Tip based on the remainder
Question:What data type is used for monetary values in the example inputs?
Answer:double
Question:What variable stores the total bill before liquor is subtracted?
Answer:totalBill
Question:Which variable holds the liquor charge amount?
Answer:liquor
Question:Which variable stores the tip percentage input?
Answer:tipPercent
Question:What is the local variable for total bill without liquor charge?
Answer:totalNoLiqour
Question:How is the tip calculated in the example?
Answer:tip = totalNoLiqour * tipPercent
Showing the first 200 of 418 cards. Open All cards to see the rest.