❄ Winter Sale · 20% off every subject · use codetill 20 Dec

Class 9 Maths Chapter 11: The World of Algorithms questions

157 questions with answers and worked solutions for CBSE Class 9 Maths, Chapter 11 (The World of Algorithms): 62 mcq (4 options), 25 2 marks, 25 3 marks and more, drawn from Question Bank, NCERT Based, HOTS.

157questions
10question types
3sources
Paidunlock with subject

Question types in The World of Algorithms

TypeQuestions
MCQ (4 Options)62
2 Marks Questions25
3 Marks Questions25
Assertion & Reason16
1 Mark Questions10
case study based9
5 Marks Questions6
4 Marks Questions2
True / False1
Fill in The Blanks1

Where the questions come from

SourceQuestions
Question Bank129
NCERT Based21
HOTS7

11 important questions from The World of Algorithms

Hand-picked questions with answers and worked solutions, covering the question types that come in CBSE papers.

Q1.1 mark

In a flowchart, a decision is usually shown by a

  • (A)
    diamond
  • (B)
    rectangle
  • (C)
    oval
  • (D)
    circle
Answer and solution
Answer:
(A) diamond

The diamond has yes/no exits.

Q2.1 mark

29 mod 5 is

  • (A)
    5
  • (B)
    9
  • (C)
    4
  • (D)
    0
Answer and solution
Answer:
(C) 4

29 = 5 × 5 + 4.

Q3.1 mark

Match Column I with Column II.

Column IColumn II
P. Algorithm1. Running through the steps one by one
Q. Executing an algorithm2. A way of organising information, such as a list
R. Data structure3. A step we assume we can do directly, such as adding two single digits
S. Basic step4. A step-by-step procedure to arrive at an answer

  • (A)
    P-4, Q-2, R-1, S-3
  • (B)
    P-1, Q-4, R-2, S-3
  • (C)
    P-4, Q-1, R-3, S-2
  • (D)
    P-4, Q-1, R-2, S-3
Answer and solution
Answer:
(D) P-4, Q-1, R-2, S-3

An algorithm is a step-by-step procedure (P-4). Running through it step by step is executing it (Q-1). A list is an example of a data structure (R-2). Adding single-digit numbers without counting is a basic step the addition algorithm assumes (S-3). Hence, P-4, Q-1, R-2, S-3.

Q4.1 mark

Assertion (A): gcd(a, b) = gcd(b, a mod b).
Reason (R): Any common divisor of a and b also divides a mod b.

  • (A)
    Both Assertion (A) and Reason (R) are true and Reason (R) is the correct explanation of Assertion (A).
  • (B)
    Both Assertion (A) and Reason (R) are true but Reason (R) is not the correct explanation of Assertion (A).
  • (C)
    Assertion (A) is true but Reason (R) is false.
  • (D)
    Assertion (A) is false but Reason (R) is true.
Answer and solution
Answer:
(A) Both Assertion (A) and Reason (R) are true and Reason (R) is the correct explanation of Assertion (A).

Both are true and R explains A.

Q5.2 marks

Find (i) 245 mod 12 (ii) 3000 mod 7.

Answer and solution
Answer:

(i) 5 (ii) 4

  1. (i) 12 × \times 20 = 240 and 245 − 240 = 5, so 245 = 20 × \times 12 + 5. Hence, 245 mod 12 = 5.
  2. (ii) 7 × \times 428 = 2996 and 3000 − 2996 = 4, so 3000 = 428 × \times 7 + 4. Hence, 3000 mod 7 = 4.
Q6.2 marks

How would you modify the column-addition algorithm to add two decimal fractions? Use your method to add 3.75 and 12.6.

Answer and solution
Answer:

Write the numbers so that the decimal points (not the rightmost digits) are aligned, fill empty places on the right with 0, add column by column from right to left as before, and put the decimal point in the answer below the decimal points. 3.75 + 12.6 = 16.35.

  1. Change to Step 1: write the numbers one below the other with their decimal points in one column, so that tenths are below tenths, hundredths below hundredths, units below units, and so on. Fill missing places on the right with 0: 12.6 is written as 12.60.
  2. Steps 2–5 unchanged: add the rightmost column, then move left with the carry.
  3. Example: hundredths: 5 + 0 = 5, carry 0; tenths: 7 + 6 = 13, write 3, carry 1; units: 3 + 2 + 1 = 6, carry 0; tens: 0 + 1 = 1.
  4. Decimal point: place it in the answer directly below the decimal points.
  5. Hence, the sum 3.75 + 12.60 is 16.35, with the decimal point placed below the decimal points.
Q7.3 marks

Show that Euclid’s subtraction algorithm uses Step 3 exactly k + 2 times for gcd(2k+1 2k + 1 , 2), where k is a natural number. How many reductions does it need for gcd(99, 2), and how many does the division algorithm need?

Answer and solution
Answer:

k + 2 reductions; gcd(99, 2): 51 by subtraction, 2 by division.

  1. Each Step 3 applied to gcd(odd number, 2) gives gcd(2, odd number − 2), and Step 1 reverses it to gcd(odd number − 2, 2). So one reduction lowers the odd number by 2.
  2. Starting from 2k+1 2k + 1 , after k reductions we reach gcd(2, 1) (since 2k+1−2k=1 2k + 1 - 2k = 1 ).
  3. Then gcd(2, 1) → gcd(1, 1) [reduction k + 1] → gcd(1, 0) [reduction k + 2], and Step 2 reports 1.
  4. For 99 = 2 × \times 49 + 1, k = 49, so 49 + 2 = 51 reductions. The division algorithm needs only 2: gcd(2, 1), gcd(1, 0).
  5. Hence, the subtraction count grows with the value (about k), while the division count stays 2.
Q8.3 marks

Let m ≥ n. Explain why gcd(m, n) is the same as gcd(n, m − n).

Answer and solution
Answer:

Every common divisor of m and n divides m − n, and every common divisor of n and m − n divides m. So both pairs have the same set of common divisors and hence the same greatest common divisor.

  1. Statement: let d be a common divisor of m and n. Reason: then m = ad and n = bd for some natural numbers a and b.
  2. Statement: d divides m − n. Reason: m−n=ad−bd=(a−b)d m - n = ad - bd = (a - b)d .
  3. Statement: conversely, let d divide both n and m − n. Reason: then n = xd and m − n = yd for some natural numbers x and y.
  4. Statement: d divides m. Reason: m=n+(m−n)=xd+yd=(x+y)d m = n + (m - n) = xd + yd = (x + y)d .
  5. Statement: the set of common divisors of m and n equals the set of common divisors of n and m − n. Reason: steps 2 and 4 show each common divisor of one pair is a common divisor of the other.
  6. Hence, the greatest element of the two equal sets is the same: gcd(m, n) = gcd(n, m − n). (In pictures: if blocks of size d tile m and n, they also tile m − n.)
Q9.3 marks

Suppose List 1 and List 2 are two lists of numbers in increasing order. (i) Write an algorithm to find elements in List 1 that are not present in List 2. (ii) Write an algorithm to find elements in List 2 that are not present in List 1.

Answer and solution
Answer:

For each element of one list, add it to the answer if it is not in the other list (or use a single simultaneous scan of both sorted lists).

(i) Algorithm only-in-list-1:

  1. Start with an empty list result.
  2. For each number x in List 1:
    • if x does not appear in List 2, add x to the end of result.
  3. Report result.

Because both lists are in increasing order, result is also in increasing order. A faster version uses the ordering: keep a position in each list, start both at the first element, and repeatedly compare the current elements a (List 1) and b (List 2): if a < b, a is not in List 2, so add it to result and move on in List 1; if a = b, move on in both lists; if a > b, move on in List 2. When List 2 runs out, add all remaining elements of List 1. This scans each list only once.
Example: List 1 = [1, 3, 5, 15, 25, 75, 125, 375], List 2 = [1, 3, 5, 11, 15, 25, 33, 55, 75, 165, 275, 825] gives result = [125, 375].
(ii) Exchange the roles of the two lists: for each number y in List 2, add y to result if it does not appear in List 1. For the example above, result = [11, 33, 55, 165, 275, 825].

Q10.4 marks

Compute the following using the improved version of Euclid's algorithm. (i) gcd(375, 825) (ii) gcd(51000, 81000) (iii) gcd(1789287, 237656) (iv) gcd(2587392, 157656)

Answer and solution
Answer:

(i) 75 (ii) 3000 (iii) 1 (iv) 24

Each step replaces gcd(m, n) by gcd(n, m mod n), until the remainder is 0.
(i) gcd(825, 375): 825=375×2+75825 = 375 \times 2 + 75; 375=75×5+0375 = 75 \times 5 + 0. So gcd = 75.
(ii) gcd(81000, 51000):

  • 81000=51000×1+3000081000 = 51000 \times 1 + 30000
  • 51000=30000×1+2100051000 = 30000 \times 1 + 21000
  • 30000=21000×1+900030000 = 21000 \times 1 + 9000
  • 21000=9000×2+300021000 = 9000 \times 2 + 3000
  • 9000=3000×3+09000 = 3000 \times 3 + 0

So gcd = 3000.
(iii) gcd(1789287, 237656):
  • 1789287=237656×7+1256951789287 = 237656 \times 7 + 125695
  • 237656=125695×1+111961237656 = 125695 \times 1 + 111961
  • 125695=111961×1+13734125695 = 111961 \times 1 + 13734
  • 111961=13734×8+2089111961 = 13734 \times 8 + 2089
  • 13734=2089×6+120013734 = 2089 \times 6 + 1200
  • 2089=1200×1+8892089 = 1200 \times 1 + 889
  • 1200=889×1+3111200 = 889 \times 1 + 311
  • 889=311×2+267889 = 311 \times 2 + 267
  • 311=267×1+44311 = 267 \times 1 + 44
  • 267=44×6+3267 = 44 \times 6 + 3
  • 44=3×14+244 = 3 \times 14 + 2
  • 3=2×1+13 = 2 \times 1 + 1
  • 2=1×2+02 = 1 \times 2 + 0

So gcd = 1: the two numbers have no common factor other than 1.
(iv) gcd(2587392, 157656):
  • 2587392=157656×16+648962587392 = 157656 \times 16 + 64896
  • 157656=64896×2+27864157656 = 64896 \times 2 + 27864
  • 64896=27864×2+916864896 = 27864 \times 2 + 9168
  • 27864=9168×3+36027864 = 9168 \times 3 + 360
  • 9168=360×25+1689168 = 360 \times 25 + 168
  • 360=168×2+24360 = 168 \times 2 + 24
  • 168=24×7+0168 = 24 \times 7 + 0

So gcd = 24.

Q11.4 marks

The influential Persian mathematician Al-Khwārizmī (780–850 CE), a scholar at the “House of Wisdom” in Baghdad, developed a great liking for Indian mathematics. He learnt Sanskrit, and around 820 CE wrote a detailed treatise expounding the Indian place value number system and the Indian procedures for the four fundamental operations — addition, subtraction, multiplication and division. His original is lost, but its 12th-century Latin translation, Liber Algorismi de numero Indorum (“The Book of Al-Khwārizmī on Indian Numerals”), survives and played a major role in spreading Indian arithmetic through medieval Europe. His name became so closely tied to these methods that the word algorismus — from Algoritmi, the Latin form of his name — came to mean any Indian method for numerical computation; it later contracted to algorism and then algorithm. Today an algorithm means any well-defined, step-by-step procedure for solving a class of problems.

(i)

Where did Al-Khwārizmī work as a scholar?

Answer and solution
Answer:

At the House of Wisdom in Baghdad.

The passage states that he was a scholar at the “House of Wisdom”. Hence, he worked in Baghdad, at the House of Wisdom.

(ii)

Which work of his survives today?

Answer and solution
Answer:

The 12th-century Latin translation Liber Algorismi de numero Indorum.

His original treatise is lost. Hence, its 12th-century Latin translation, Liber Algorismi de numero Indorum, survives.

(iii)

Trace how the word “algorithm” arose, and explain why column addition is an algorithm in today’s sense.

Answer and solution
Answer:

Al-Khwārizmī → Algoritmi → algorismus (an Indian method of computation) → algorism → algorithm. Column addition is a well-defined, step-by-step procedure that works for every pair of numbers.

  1. Al-Khwārizmī’s Latin name Algoritmi gave algorismus, meaning any Indian method of numerical computation; it contracted to algorism and then to algorithm.
  2. Column addition writes the numbers aligned, adds column by column from the right with a carry, and repeats until no digits are left: precise steps that solve the whole class of addition problems. Hence, it is an algorithm.

More practice questions from The World of Algorithms

More questions of the types asked in exams, with answers and solutions.

Q1.1 mark

In binary search on a sorted list of 64 items, the number of comparisons needed in the worst case is about

  • (A)
    6
  • (B)
    64
  • (C)
    32
  • (D)
    1
Answer and solution
Answer:
(A) 6

Each step halves the list: 26=642^6 = 64.

Q2.1 mark

Assertion (A): The rightmost element of the list common-divisors is gcd(m, n).
Reason (R): The list of common divisors is always in decreasing order.

  • (A)
    Both Assertion (A) and Reason (R) are true and Reason (R) is the correct explanation of Assertion (A).
  • (B)
    Both Assertion (A) and Reason (R) are true but Reason (R) is not the correct explanation of Assertion (A).
  • (C)
    Assertion (A) is true but Reason (R) is false.
  • (D)
    Assertion (A) is false but Reason (R) is true.
Answer and solution
Answer:
(C) Assertion (A) is true but Reason (R) is false.

Because divisors-of-m is in increasing order, common-divisors is built in increasing order, so its rightmost element is the largest common divisor: A is true. R is false: the list is increasing (it starts with 1). Hence, A true, R false.

Q3.2 marks

Execute the algorithm to find the divisors of 20. Write the list-of-divisors each time it changes.

Answer and solution
Answer:

[ ] → [1] → [1, 2] → [1, 2, 4] → [1, 2, 4, 5] → [1, 2, 4, 5, 10] → [1, 2, 4, 5, 10, 20]

  1. Start: list-of-divisors = [ ].
  2. j = 1 divides 20 → [1]; j = 2 → [1, 2]; j = 3 does not divide 20 (no change); j = 4 → [1, 2, 4]; j = 5 → [1, 2, 4, 5].
  3. j = 6 to 9 do not divide 20; j = 10 → [1, 2, 4, 5, 10]; j = 11 to 19 do not divide 20; j = 20 → [1, 2, 4, 5, 10, 20].
  4. Hence, divisors(20) = [1, 2, 4, 5, 10, 20], in increasing order.
Q4.3 marks

Run the most-recent-common-divisor algorithm for m = 20 and n = 30. Show the scan in a table and state the gcd.

Answer and solution
Answer:

Updates at k = 2, 5, 10; gcd(20, 30) = 10

min(20, 30) = 20; start with most-recent-common-divisor = 1 and scan k = 2 to 20.

kDivides 20?Divides 30?Value kept
2yesyes2 (update)
3noyes2
4yesno2
5yesyes5 (update)
6noyes5
7–9no—5
10yesyes10 (update)
11–19no—10
20yesno10
Scan complete. Hence, gcd(20, 30) = 10.

Q5.3 marks

Complete the argument about grouping by units, tens, hundreds, … to justify why the addition algorithm (adding digits column by column from right to left with a carry) gives the correct sum. Illustrate it with 473 + 695.

Answer and solution
Answer:

Each number is a sum of units, tens, hundreds, …; adding column by column adds each group separately, and a carry moves every newly formed group of ten to the next group. For 473 + 695 the groups give 1 thousand, 1 hundred, 6 tens and 8 units = 1168.

  1. Grouping: in the Indian place-value system, 473 = 4 hundreds + 7 tens + 3 units and 695 = 6 hundreds + 9 tens + 5 units.
  2. Adding groups separately: adding the two numbers is the same as putting together all their units, all their tens and all their hundreds. The rightmost column adds the units, the next column the tens, and so on.
  3. Units: 3 + 5 = 8 units. This is less than 10, so 8 is written and the carry is 0.
  4. Tens: 7 + 9 + 0 = 16 tens = 1 hundred + 6 tens. The group of ten tens is a new hundred, so 6 is written and 1 is carried to the hundreds column.
  5. Hundreds: 4 + 6 + 1 = 11 hundreds = 1 thousand + 1 hundred. 1 is written and the new thousand is carried; since there are no more columns, it is written on the left (Step 5).
  6. Total: 1 thousand + 1 hundred + 6 tens + 8 units = 1168. Each carry only regroups ten of one place into one of the next place, so no value is lost or added.
  7. Hence, the algorithm gives the same total as counting all the units, tens and hundreds together: 473 + 695 = 1168.
Q6.5 marks

Count the uses of Step 3 in Euclid’s subtraction algorithm for (i) gcd(m, 1) where m ≥ 1, (ii) gcd(31, 3). Then find gcd(31, 3) by the division algorithm and explain, using these results, why the subtraction algorithm’s work grows with the value of the numbers.

Answer and solution
Answer:

(i) m reductions (ii) 13 reductions; division: 2 reductions; gcd = 1.

  1. (i) gcd(m, 1) → gcd(1, m − 1) → reverse gcd(m − 1, 1) → … : each Step 3 lowers the first number by 1. After m − 1 reductions we reach gcd(1, 1), and one more gives gcd(1, 0). Total m reductions (e.g. gcd(2, 1) → gcd(1, 1) → gcd(1, 0): 2).
  2. (ii) Each Step 3 on gcd(x, 3) with x > 3 gives gcd(3, x − 3), reversed to gcd(x − 3, 3): 31 → 28 → 25 → … → 4 takes 9 reductions to reach gcd(4, 3) (31 − 9 × \times 3 = 4). Then gcd(4, 3) → gcd(3, 1) [10] → gcd(1, 2) [11] → reverse gcd(2, 1) → gcd(1, 1) [12] → gcd(1, 0) [13]. Total 13 reductions; answer 1.
  3. Division: 31 = 10 × \times 3 + 1 → gcd(3, 1); 3 = 3 × \times 1 + 0 → gcd(1, 0). Only 2 reductions.
  4. Explanation: subtraction removes one copy of the smaller number at a time, so the count is about m ÷ n (m reductions for n = 1, about 31 ÷ 3 for n = 3), which grows with the value of m. Division removes all copies at once.
  5. Hence, gcd(31, 3) = 1, with 13 subtraction reductions against 2 division reductions.

Frequently asked questions

How many questions are there in Class 9 Maths Chapter 11 (The World of Algorithms)?

PaperGenie has 157 questions for this chapter: 62 mcq (4 options), 25 2 marks, 25 3 marks, among others.

Is The World of Algorithms free to practise?

Chapter 1 (Orienting Yourself: The Use of Coordinates) is free. This chapter unlocks when you buy Class 9 Maths (₹399 for all 14 chapters).

Can I make a The World of Algorithms test paper?

Yes. Choose this chapter, pick questions or set a marks pattern, add your institute name and logo, and download the PDF.

All 14 chapters of Class 9 Maths · 3,223 questions