Page | 1
Chapter 01: Programming Techniques Class X
Short Questions
Q2. Give short answers to the following questions.
a. Define computer.
A computer is a general-purpose machine invented to help people solve various
Problems.
Or
A computer is a data-processing machine that converts data into information.
b. What is algorithm and what is the role of algorithm in
Problem solving?
Algorithm is a step-by-step problem solving method that is easy to understand
and follow.
Role of algorithm:
1. Helps in the process of coding in a programming language.
2. Main step for developing a computer program.
c. What is a flowchart?
Flowchart is diagrammatic representation of algorithm. It describes what
Operations are required to solve a given problem.
d. What are the advantages of using flowchart?
1. Provides an easy way to analyze and find the solution of problem.
2. Using flowchart, it is very easy to write program in high-level language.
3. Helpful in communicating the problem solving method to other.
4. Also helpful in finding and removing errors.
e. Draw any four graphical symbols used on flowcharts and
Explain them.
Start/ Stop:
Rounded rectangular shaped symbol, used to
Indicate start or stop of a flowchart.
Input/ Output:
Parallelogram represents input or output.
Contains the word input or read along with
the variables and print or output along with
the output data for output operation.
Process:
A rectangular box used for processing. All
calculations appear inside the processing
symbol. Such as: “ SUM=A+B”.
Decision:
A diamond shaped symbol represents decision
in a flowchart and it contains a condition.
Extensive Questions
Page | 2
Chapter 01: Programming Techniques Class X
Q3. Describe the steps involved in problem solving.
Consult book page no. 9, 10, 11
Q4. Write an algorithm to calculate the area of a rectangle for given
breadth and length.
Planning:
Input: Given length and breadth.
Output: Area of rectangle.
Processing: Multiply length and breadth.
Algorithm:
Step 1: Start
Let the length L and breadth B .
Step 2: Calculate area, A
A=L*B
Step 3: Output A
Step 4: Stop
Q5. Write an algorithm that inputs length in inches and calculates
And prints it in centimeters.
Planning:
Input: Length in inches.
Output required: Length in centimeters.
Processing: Convert the length into centimeter by multiplying the given
length to the value.
Algorithm:
Step 1: Start
Let the length be L.
Step 2: Convert the length from inches to cm.
CM=L*2.54
Step 3: Output CM
Step 4: Stop
Q6. Write an algorithm that inputs marks and prints the message
“ PASS ” or “ FAIL”. Passing marks are 33.
Planning:
Input: Marks
Output required: Print “PASS” or “FAIL” after comparing marks.
Processing: Check in given range whether the given marks are equal
to PASS or FAIL and print accordingly.
Algorithm:
Step 1: Start
Let the marks be M.
Step 2: Compare the marks.
IF M≥33 then GOTO Step 3 otherwise GOTO step 4.
Step 3: Output “PASS”
Step 4: Output “FAIL”.
Step 5: Stop
Q7. Write an algorithm to find the sum of given sequence.
SUM = 20 + 25 + 30 + 35 + 40 + 45 + 50 + 55 + 60
Planning:
Page | 3
Chapter 01: Programming Techniques Class X
Input: Nine given numbers.
Output required: Sum of nine numbers.
Processing: Sum of numbers.
Algorithm:
Step 1: Start
Initialize number A=20, B=25, C=30, D=35, E=40,
F=45, G=50, H=55, I=60
Step 2: Find the sum (SUM)
SUM = A+B+C+D+E+F+G+H+I
Step 3: Output SUM
Step 4: Stop
Q8. Write an algorithm to find the product of given sequence
PRODUCT = 1 * 3 * 5 * 7 * 9 * 11 * 13 * 15.
Planning:
Input: Eight given numbers.
Output required: Product of eight given numbers.
Processing: multiply the given eight numbers.
Algorithm:
Step 1: Start
Initialize number A=1, B=3, C=5, D=7, E=9,
F=11, G=13, H=15.
Step 2: Find the product (PRODUCT).
PRODUCT = A * B * C * D * E * F * G * H
Step 3: Output PRODUCT.
Step 4: Stop
Q9. Write an algorithm to print multiplication table of a number in
reverse order.
Planning:
Input: Nine given numbers.
Output required: Sum of nine numbers.
Processing: Sum of numbers.
Algorithm:
Step 1: Start
Let the number be N.
Step 2: Initialize A to 10.
A = 10
Step 3: Find the product
R=N*A
Step 4: Output N, A, R
Step 5: Decrement A by 1
A=A–1
Step 6: Check value of A
IF A≥ 1then goto step 3 otherwise goto step 7
Step 7: Stop
Q10. Convert the algorithms of questions Q4 to Q9 to flowcharts.
Question 4: Start
Page | 4
Chapter 01: Programming Techniques Class X
A =L*B
Question 5:
Start
Input length L in inches
CM = L * 2.54
Output CM
Stop
Question 6:
Start
Input marks M
IF M ≥ 33 No
Output FAIL
Page | 5
Chapter 01: Programming Techniques Class X
Yes
Question 7:
Start
Let A=20, B=25, C=30, D=35,
E=40, F=45, G=50, H=55, I=60
SUM=A+B+C+D+E+F+G+H+I
Output SUM
Stop
Question 8:
Start
Let A=1, B=3, C=5, D=7, E=9,
F=11, G=13, H=15
PRODUCT=A*B*C*D*E*F*G*H
Stop
Question 9:
Start
Page | 6
Chapter 01: Programming Techniques Class X
Input N
A = 10
R=N*A
Output R No
A=A-1
A < 1?
Yes
Stop