Chapter 4 introduces problem solving in computer science, emphasizing the importance of algorithms, coding, and testing. Key concepts include the characteristics of a good algorithm, the significance of flow charts, and the necessity of debugging and documentation. Chapter 5 focuses on getting started with Python, covering its features, syntax, and basic programming concepts such as variables and data types.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
1 views5 pages
Most Special Document
Chapter 4 introduces problem solving in computer science, emphasizing the importance of algorithms, coding, and testing. Key concepts include the characteristics of a good algorithm, the significance of flow charts, and the necessity of debugging and documentation. Chapter 5 focuses on getting started with Python, covering its features, syntax, and basic programming concepts such as variables and data types.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5
Chapter 4:
INTRODUCTION TO PROBLEM SOLVING.
1.What is the first step of problem solving as per the document? ➢ Analyzing the problem. 2. what is an algorithm? ➢ a set of exact steps to solve a problem. 3.what does the term computerization refer to? ➢ the use of computers to develop software for automating tasks. 4. Which of the following is not a characteristic of Good algorithm? ➢ infinite steps. 5. what is the process of coding involve ? ➢ Converting the algorithm into format understood by the computer. 6. what shape is used to represent a process in a flow chart? ➢ Rectangle. 7. In a flow chart, Which symbol represents the start or end? ➢ Oval. 8. What is the purpose of developing an algorithm before writing code? ➢ to have a clear solution plan. 9. which step comes immediately after developing algorithm? ➢ Coding. 10. What does GIGO stand for? ➢ Garbage in, garbage out. 11. What is finiteness in an algorithm means? ➢ the algorithm stops after a finite number of steps. 12. which of the following is an essential skill for a computer science student? ➢ Problem solving, debugging, coding. ➢ all of the above. 13. What is the output of an algorithm? ➢ the result of the process. 14. what does the parallelogram symbol in a flow chart represent? ➢ input or output. 15. which of the following steps is not part of a problem solving process mentioned in the document? ➢ compiling the code. 16. what should be done after finalizing the algorithm? ➢ Coding. 17. why is it important to document the coding procedures? ➢ Hu to understand the logic at a later stage. 18. what is the role of testing in the problem solving process? ➢ to check if the program meets user requirements. 19. which of the following is a key component of analyzing a problem? ➢ listing the principal components of the problem. 20. what is the primary purpose of using an algorithm? ➢ to increase reliability, accuracy, and efficiency. 21. what does the diamond shape in the flow chart represent? ➢ Decision. 22. which programming language can be used to write a program after developing an algorithm? ➢ any high level language. 23. what must be done if the program generates incorrect output? ➢ check for the logical errors. 24. why is the road map important for a programmer? ➢ To clearly visualize the instructions to be written. 25. What is the function of a Terminator symbol in a flow chart? ➢ to indicate the start or end of the process. 26. what should be done after coding the algorithm? ➢ testing and debugging. 27. Why is the precision important in an algorithm? ➢ to ensure the steps are clearly stated and defined. 28. which step in problem solving involves identifying the logical steps to reach a solution? ➢ developing the algorithm. 29. which shape in a flow chart represents input or output data? ➢ Parallelogram. 30. Why is uniqueness important in an algorithm? ➢ to ensure each step is uniquely defined. 31. What is the primary objective of a problem solving in computer science? ➢ Automate task efficiently. 32. In a flow chart what is used to represent a decision? ➢ Diamond. 33. what should be the next step if an algorithm is not producing the correct output? ➢ revising the algorithm to check for logical errors. 34.why is it necessary to document the coding process? ➢ To ensure the code is understandable and maintainable. 35. what role does testing play in the problem solving process? ➢ to identify any logical errors in an algorithm. 36. what is the purpose of a flow chart? ➢ to represent an algorithm visually. 37. which of the following is not a step of problem solving process? ➢ writing the program. 38. what is finiteness in the contest of an algorithm? ➢ the algorithm must have a finite number of steps. 39.Is why is it necessary to debug a program? ➢ to ensure the program runs without errors. 40. what does a rectangular represent in a flow chart? ➢ Process. 41.which step involves the checking if a program meets user requirements? ➢ Testing. 42. what is the outcome of an algorithm? ➢ producing a result. 43. what is the significance of precision in an algorithm? ➢ to ensure each step is clearly defined. 44. why is it important to develop an algorithm before coding. ➢ to have a clear solution plan. 45. what is the role of testing a programming? ➢ to identify and fix errors. 46. what shape represents the start or end of flow chart? ➢ Oval 47. Which of the following is the best describes uniqueness in an algorithm? ➢ each step is distinct and clearly defined. 48. What should be done if a program produces unexpected results.? ➢ debug and test the program. 49. what does the term coding refers to in problem solving? ➢ converting the algorithm into programming language. 50. why is debugging an essential part of problem solving in programming? ➢ to fix errors in the code. Chapter 5 Getting started with Python. 1. what is a program in computer science? ➢ An ordered set of instructions to be executed by a computer. 2. Which language is called a machine language? ➢ zeros and ones. 3. What is source code? ➢ High level language code. 4. which of the following uses an interpreter? ➢ Python. 5. Which are quote is attributed to Donald knuth in the textbook? ➢ Computer programming is an art. 6. Which of the following is not a feature of Python? ➢ platform dependent. 7. What is the symbol for the Python prompt in interactive mode? ➢ >>>. What is the extension of Python source code files? ➢ .py Which mode in Python allows the execution of individual statements in simultaneously? ➢ interactive mode. Which of the following is a valid identifier in Python? ➢ abc123. What is a variable in Python? ➢ An object uniquely identified by a name. In Python everything is treated a(n): ➢ Object Which symbol is used for comments in Python? ➢ # Which function returns the identifier of an object in Python? ➢ Id() What are the two execution modes in Python? ➢ Interactive and scrip. Which of the following is not a feature of Python? ➢ Requires the complier. Which of the following is not a keyword of Python? ➢ Print. What is the hope for the following Python code: print(“hello, world!”)? ➢ Hello, world! Which of the following statements is true in about Python? ➢ Python is case sensitive. What is the correct syntax for single line comment in Python? ➢ #This is a comment. which of the following is not a Python data type? ➢ Character. How do you create variable in Python? ➢ by simply assigning a value to it. Which of the following is for indentation in Python? ➢ Tabs or spaces What will be the output of the following code: print(2+3*4) ➢ 14. Which Python function is used to get input from the user? ➢ Input() What does the following Python coder do: name=imput(“enter your name:”)? ➢ Prompt the user to enter their name and store it in the variable name. Which of the following is an invalid variable name in Python? ➢ 1var what is the output for the following code: print(10/3)? ➢ 3.3333333333333335 Which of the following is not arithmetic operator in Python? ➢ && Which of the following is the correct way to create a string in Python? ➢ S=’Hello’ Which of the following can be used to to convert a string into a list in Python? ➢ Split()