Page 106 - Computer Science Class 11 Without Functions
P. 106
B. State whether the following statements are True or False:
1. Once a program has been developed, it should always be tested. _________
2. A pseudocode almost looks like code written in a programming language. _________
3. A pseudocode should never be language-independent. _________
4. A pseudocode is the same as a flowchart. _________
5. A flowchart is a pictorial description of an algorithm. _________
6. A pseudocode can be executed using a computer. _________
C. Fill in the blanks.
1. The errors in a program are known as ____________.
2. A _______________ is a diagrammatic representation of an algorithm.
3. A program written in a high-level language is known as _____________.
4. A compiler converts a source code into _____________.
5. ______________ is a way to find and fix bugs in software or applications.
D. Answer the following questions:
1. List the steps involved in the Problem-Solving Cycle.
Ans: • Problem Analysis • Program Design • Coding • Testing and Debugging
2. How is an algorithm different from a flowchart?
Ans: An algorithm is a step by step description of solution to a problem in simple language. A flowchart is a diagrammatic
representation of an algorithm.
3. Write an algorithm to accept two numbers and display their sum and product. Also draw a flowchart.
Ans: Input: two numbers num1, num2
Process: Compute sum and product of num1 and num2
Output: sum and product of num1 and num2
input num1 and num2
compute sum = num1 + num2, product = num1 * num2
print sum, product
Flowchart:
Start
input num1, num2
sum = num1 + num2
product = num1 * num2
print Sum, Product
Stop
104 Touchpad Computer Science-XI

