Menu
Home
Classes
Class 1 Class 2 Class 3 Class 4 Class 5 Class 6 Class 7 Class 8 Class 9 Class 10 Class 11 Class 12
CUET UG
CUET Home Subjects Notes Quizzes Solutions Mock Tests Blog
OPSC
All Odisha exams OPSC Home OAS Preparation Question Papers Syllabus Practice MCQs Optional Subjects
Ask a Query
📱 Download BYTE App
About Contact Privacy
Home Class 9 App
Class 9 · Maths Part 2 · Chapter 11

The World of AlgorithmsClass 9 Maths Part 2 · Chapter 11 MCQ Online Test

🧠 MCQ Quiz — Test Your Knowledge
Book Notes Quiz Solutions Extra Qs Sample Paper

The World of Algorithms Class 9 MCQ Questions with Answers

73 MCQs from Class 9 Maths Part 2 Chapter 11. Try each question, then check the answer and explanation.

Q1.

What is an algorithm?

  1. A step-by-step procedure to arrive at an answer

  2. A mathematical formula

  3. A type of number

  4. A computer program

Show answer

Answer: A — A step-by-step procedure to arrive at an answer

An algorithm is defined as a step-by-step procedure to arrive at an answer, as stated in the text.⁠​‌​​​‌​‌​‌​‌​​‌‌​‌‌‌‌‌​​​‌‌‌​​​‌​​‌​‌‌‌‌​‌‌​‌‌‌​​‌‌​​​‌‌​‌‌​​‌​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​‌‌​‌‌​‌​‌‌​​​​‌​‌‌‌​‌​​​‌‌​‌​​​​‌‌‌​​‌‌​​‌​‌‌​‌​‌‌‌​​​​​‌‌​​​​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​​‌‌​​‌​​​‌​‌‌​‌​​‌‌‌​​‌​​‌​‌‌‌‌​​‌‌​​​‌​​‌‌​​​‌​​‌​‌‌‌‌​​‌‌​​​‌⁠

Q2.

In the addition algorithm described, what is the value of carry if the sum of two digits is less than 10?

  1. 0

  2. 1

  3. 10

  4. -1

Show answer

Answer: A — 0

The algorithm states: if the sum is less than 10, write the sum directly and set the value of carry to 0.⁠​‌​​​‌​‌​‌​‌​​‌‌​‌‌‌‌‌​​​‌‌‌​​​‌​​‌​‌‌‌‌​‌‌​‌‌‌​​‌‌​​​‌‌​‌‌​​‌​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​‌‌​‌‌​‌​‌‌​​​​‌​‌‌‌​‌​​​‌‌​‌​​​​‌‌‌​​‌‌​​‌​‌‌​‌​‌‌‌​​​​​‌‌​​​​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​​‌‌​​‌​​​‌​‌‌​‌​​‌‌‌​​‌​​‌​‌‌‌‌​​‌‌​​​‌​​‌‌​​​‌​​‌​‌‌‌‌​​‌‌​​‌​⁠

Q3.

Why is it important to align columns from right to left in addition?

  1. To ensure digits of the same place value are added together

  2. To make numbers look neat

  3. To avoid carrying

  4. To speed up addition

Show answer

Answer: A — To ensure digits of the same place value are added together

Aligning from right to left ensures that units are added to units, tens to tens, etc., which is essential for correct place-value addition.⁠​‌​​​‌​‌​‌​‌​​‌‌​‌‌‌‌‌​​​‌‌‌​​​‌​​‌​‌‌‌‌​‌‌​‌‌‌​​‌‌​​​‌‌​‌‌​​‌​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​‌‌​‌‌​‌​‌‌​​​​‌​‌‌‌​‌​​​‌‌​‌​​​​‌‌‌​​‌‌​​‌​‌‌​‌​‌‌‌​​​​​‌‌​​​​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​​‌‌​​‌​​​‌​‌‌​‌​​‌‌‌​​‌​​‌​‌‌‌‌​​‌‌​​​‌​​‌‌​​​‌​​‌​‌‌‌‌​​‌‌​​‌‌⁠

Q4.

What basic step is assumed in the addition algorithm?

  1. Knowing how to add single digit numbers

  2. Knowing multiplication tables

  3. Knowing how to count dots

  4. Knowing how to subtract

Show answer

Answer: A — Knowing how to add single digit numbers

The text states that an important assumption is that we know how to add single digit numbers without counting them out.⁠​‌​​​‌​‌​‌​‌​​‌‌​‌‌‌‌‌​​​‌‌‌​​​‌​​‌​‌‌‌‌​‌‌​‌‌‌​​‌‌​​​‌‌​‌‌​​‌​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​‌‌​‌‌​‌​‌‌​​​​‌​‌‌‌​‌​​​‌‌​‌​​​​‌‌‌​​‌‌​​‌​‌‌​‌​‌‌‌​​​​​‌‌​​​​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​​‌‌​​‌​​​‌​‌‌​‌​​‌‌‌​​‌​​‌​‌‌‌‌​​‌‌​​​‌​​‌‌​​​‌​​‌​‌‌‌‌​​‌‌​‌​​⁠

Q5.

How many more columns need to be added when moving from 3-digit to 4-digit numbers using the digit-by-digit addition algorithm?

  1. 1

  2. 10

  3. 100

  4. 0

Show answer

Answer: A — 1

The text says: 'if we add the digits right to left, as in the algorithm above, we only have to add 1 more column.'⁠​‌​​​‌​‌​‌​‌​​‌‌​‌‌‌‌‌​​​‌‌‌​​​‌​​‌​‌‌‌‌​‌‌​‌‌‌​​‌‌​​​‌‌​‌‌​​‌​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​‌‌​‌‌​‌​‌‌​​​​‌​‌‌‌​‌​​​‌‌​‌​​​​‌‌‌​​‌‌​​‌​‌‌​‌​‌‌‌​​​​​‌‌​​​​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​​‌‌​​‌​​​‌​‌‌​‌​​‌‌‌​​‌​​‌​‌‌‌‌​​‌‌​​​‌​​‌‌​​​‌​​‌​‌‌‌‌​​‌‌​‌​‌⁠

Q6.

What is the list of divisors of 18?

  1. [1, 2, 3, 6, 9, 18]

  2. [1, 2, 3, 4, 6, 9, 18]

  3. [1, 2, 3, 6, 9]

  4. [1, 2, 3, 4, 6, 9, 18]

Show answer

Answer: A — [1, 2, 3, 6, 9, 18]

From the text, the divisors of 18 are computed as [1, 2, 3, 6, 9, 18].⁠​‌​​​‌​‌​‌​‌​​‌‌​‌‌‌‌‌​​​‌‌‌​​​‌​​‌​‌‌‌‌​‌‌​‌‌‌​​‌‌​​​‌‌​‌‌​​‌​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​‌‌​‌‌​‌​‌‌​​​​‌​‌‌‌​‌​​​‌‌​‌​​​​‌‌‌​​‌‌​​‌​‌‌​‌​‌‌‌​​​​​‌‌​​​​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​​‌‌​​‌​​​‌​‌‌​‌​​‌‌‌​​‌​​‌​‌‌‌‌​​‌‌​​​‌​​‌‌​​​‌​​‌​‌‌‌‌​​‌‌​‌‌​⁠

Q7.

In the algorithm to find divisors of n, what is the initial state of list-of-divisors?

  1. Empty list [ ]

  2. List [1]

  3. List [n]

  4. List of all numbers from 1 to n

Show answer

Answer: A — Empty list [ ]

The algorithm starts with an empty list-of-divisors.⁠​‌​​​‌​‌​‌​‌​​‌‌​‌‌‌‌‌​​​‌‌‌​​​‌​​‌​‌‌‌‌​‌‌​‌‌‌​​‌‌​​​‌‌​‌‌​​‌​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​‌‌​‌‌​‌​‌‌​​​​‌​‌‌‌​‌​​​‌‌​‌​​​​‌‌‌​​‌‌​​‌​‌‌​‌​‌‌‌​​​​​‌‌​​​​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​​‌‌​​‌​​​‌​‌‌​‌​​‌‌‌​​‌​​‌​‌‌‌‌​​‌‌​​​‌​​‌‌​​​‌​​‌​‌‌‌‌​​‌‌​‌‌‌⁠

Q8.

To find gcd from lists of divisors, what do we do?

  1. Find the largest number common to both lists

  2. Find the smallest number common to both lists

  3. Multiply the lists

  4. Add the lists

Show answer

Answer: A — Find the largest number common to both lists

The gcd is the largest number that appears in both lists of divisors.⁠​‌​​​‌​‌​‌​‌​​‌‌​‌‌‌‌‌​​​‌‌‌​​​‌​​‌​‌‌‌‌​‌‌​‌‌‌​​‌‌​​​‌‌​‌‌​​‌​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​‌‌​‌‌​‌​‌‌​​​​‌​‌‌‌​‌​​​‌‌​‌​​​​‌‌‌​​‌‌​​‌​‌‌​‌​‌‌‌​​​​​‌‌​​​​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​​‌‌​​‌​​​‌​‌‌​‌​​‌‌‌​​‌​​‌​‌‌‌‌​​‌‌​​​‌​​‌‌​​​‌​​‌​‌‌‌‌​​‌‌‌​​​⁠

Q9.

What is a data structure?

  1. A way to organize information to help make an algorithm more efficient

  2. A type of algorithm

  3. A mathematical operation

  4. A number system

Show answer

Answer: A — A way to organize information to help make an algorithm more efficient

The text defines a data structure as something that allows us to organise information in a manner that helps make an algorithm more efficient.⁠​‌​​​‌​‌​‌​‌​​‌‌​‌‌‌‌‌​​​‌‌‌​​​‌​​‌​‌‌‌‌​‌‌​‌‌‌​​‌‌​​​‌‌​‌‌​​‌​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​‌‌​‌‌​‌​‌‌​​​​‌​‌‌‌​‌​​​‌‌​‌​​​​‌‌‌​​‌‌​​‌​‌‌​‌​‌‌‌​​​​​‌‌​​​​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​​‌‌​​‌​​​‌​‌‌​‌​​‌‌‌​​‌​​‌​‌‌‌‌​​‌‌​​​‌​​‌‌​​​‌​​‌​‌‌‌‌​​‌‌‌​​‌⁠

Q10.

In improving the gcd algorithm, why can we check common divisors only up to min(m, n)?

  1. Because a common divisor cannot be larger than the smaller number

  2. Because the larger number is irrelevant

  3. Because it saves time

  4. Because gcd is always less than min(m, n)

Show answer

Answer: A — Because a common divisor cannot be larger than the smaller number

The text states: 'a common divisor cannot be larger than the smaller of the two numbers, so we can check for common divisors up to the minimum of m and n.'⁠​‌​​​‌​‌​‌​‌​​‌‌​‌‌‌‌‌​​​‌‌‌​​​‌​​‌​‌‌‌‌​‌‌​‌‌‌​​‌‌​​​‌‌​‌‌​​‌​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​‌‌​‌‌​‌​‌‌​​​​‌​‌‌‌​‌​​​‌‌​‌​​​​‌‌‌​​‌‌​​‌​‌‌​‌​‌‌‌​​​​​‌‌​​​​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​​‌‌​​‌​​​‌​‌‌​‌​​‌‌‌​​‌​​‌​‌‌‌‌​​‌‌​​​‌​​‌‌​​​‌​​‌​‌‌‌‌​​‌‌​​​‌​​‌‌​​​​⁠

Q11.

According to Euclid's subtraction algorithm, gcd(m, n) is the same as:

  1. gcd(n, m - n) when m ≥ n

  2. gcd(m, m - n)

  3. gcd(n, n - m)

  4. gcd(m + n, n)

Show answer

Answer: A — gcd(n, m - n) when m ≥ n

Euclid's algorithm uses the observation that gcd(m, n) = gcd(n, m - n) when m ≥ n.⁠​‌​​​‌​‌​‌​‌​​‌‌​‌‌‌‌‌​​​‌‌‌​​​‌​​‌​‌‌‌‌​‌‌​‌‌‌​​‌‌​​​‌‌​‌‌​​‌​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​‌‌​‌‌​‌​‌‌​​​​‌​‌‌‌​‌​​​‌‌​‌​​​​‌‌‌​​‌‌​​‌​‌‌​‌​‌‌‌​​​​​‌‌​​​​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​​‌‌​​‌​​​‌​‌‌​‌​​‌‌‌​​‌​​‌​‌‌‌‌​​‌‌​​​‌​​‌‌​​​‌​​‌​‌‌‌‌​​‌‌​​​‌​​‌‌​​​‌⁠

Q12.

What is the stopping condition in Euclid's algorithm for gcd(m, n)?

  1. When n = 0, answer is m

  2. When m = n, answer is m

  3. When m = 0, answer is n

  4. When n = 1, answer is 1

Show answer

Answer: A — When n = 0, answer is m

The algorithm states: 'If n = 0, report the answer as m.'⁠​‌​​​‌​‌​‌​‌​​‌‌​‌‌‌‌‌​​​‌‌‌​​​‌​​‌​‌‌‌‌​‌‌​‌‌‌​​‌‌​​​‌‌​‌‌​​‌​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​‌‌​‌‌​‌​‌‌​​​​‌​‌‌‌​‌​​​‌‌​‌​​​​‌‌‌​​‌‌​​‌​‌‌​‌​‌‌‌​​​​​‌‌​​​​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​​‌‌​​‌​​​‌​‌‌​‌​​‌‌‌​​‌​​‌​‌‌‌‌​​‌‌​​​‌​​‌‌​​​‌​​‌​‌‌‌‌​​‌‌​​​‌​​‌‌​​‌​⁠

Q13.

How does Aryabhata's division algorithm modify Euclid's subtraction algorithm?

  1. It replaces repeated subtraction with division by remainder (m mod n)

  2. It uses addition instead of subtraction

  3. It uses multiplication

  4. It uses prime factorization

Show answer

Answer: A — It replaces repeated subtraction with division by remainder (m mod n)

The text says: 'instead of reducing gcd(m, n) to gcd(n, m - n), we reduce it to gcd(n, m mod n).'⁠​‌​​​‌​‌​‌​‌​​‌‌​‌‌‌‌‌​​​‌‌‌​​​‌​​‌​‌‌‌‌​‌‌​‌‌‌​​‌‌​​​‌‌​‌‌​​‌​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​‌‌​‌‌​‌​‌‌​​​​‌​‌‌‌​‌​​​‌‌​‌​​​​‌‌‌​​‌‌​​‌​‌‌​‌​‌‌‌​​​​​‌‌​​​​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​​‌‌​​‌​​​‌​‌‌​‌​​‌‌‌​​‌​​‌​‌‌‌‌​​‌‌​​​‌​​‌‌​​​‌​​‌​‌‌‌‌​​‌‌​​​‌​​‌‌​​‌‌⁠

Q14.

Why is Aryabhata's division algorithm more efficient than Euclid's subtraction algorithm for numbers like 99 and 2?

  1. It uses division to reduce the problem in fewer steps

  2. It uses smaller numbers

  3. It avoids remainders

  4. It uses a different number system

Show answer

Answer: A — It uses division to reduce the problem in fewer steps

For gcd(99,2), Euclid's subtraction takes about 49 reductions, while Aryabhata's division takes only 2 reductions. This is because division reduces the problem much faster.⁠​‌​​​‌​‌​‌​‌​​‌‌​‌‌‌‌‌​​​‌‌‌​​​‌​​‌​‌‌‌‌​‌‌​‌‌‌​​‌‌​​​‌‌​‌‌​​‌​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​‌‌​‌‌​‌​‌‌​​​​‌​‌‌‌​‌​​​‌‌​‌​​​​‌‌‌​​‌‌​​‌​‌‌​‌​‌‌‌​​​​​‌‌​​​​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​​‌‌​​‌​​​‌​‌‌​‌​​‌‌‌​​‌​​‌​‌‌‌‌​​‌‌​​​‌​​‌‌​​​‌​​‌​‌‌‌‌​​‌‌​​​‌​​‌‌​‌​​⁠

Q15.

The word 'algorithm' is derived from the name of which mathematician?

  1. Al-Khwarizmi

  2. Aryabhata

  3. Euclid

  4. Pythagoras

Show answer

Answer: A — Al-Khwarizmi

The text states that the word algorithm comes from Algoritmi, the Latin form of Al-Khwarizmi's name.⁠​‌​​​‌​‌​‌​‌​​‌‌​‌‌‌‌‌​​​‌‌‌​​​‌​​‌​‌‌‌‌​‌‌​‌‌‌​​‌‌​​​‌‌​‌‌​​‌​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​‌‌​‌‌​‌​‌‌​​​​‌​‌‌‌​‌​​​‌‌​‌​​​​‌‌‌​​‌‌​​‌​‌‌​‌​‌‌‌​​​​​‌‌​​​​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​​‌‌​​‌​​​‌​‌‌​‌​​‌‌‌​​‌​​‌​‌‌‌‌​​‌‌​​​‌​​‌‌​​​‌​​‌​‌‌‌‌​​‌‌​​​‌​​‌‌​‌​‌⁠

Q16.

What is the value of carry when the sum of two digits is exactly 10?

  1. 1

  2. 0

  3. 10

  4. 9

Show answer

Answer: A — 1

If the sum is 10, the units digit is 0 and carry is 1. The algorithm says: if sum is more than 10, write units digit and set carry to 1. For exactly 10, same applies because it is 'equal to or more than 10'.⁠​‌​​​‌​‌​‌​‌​​‌‌​‌‌‌‌‌​​​‌‌‌​​​‌​​‌​‌‌‌‌​‌‌​‌‌‌​​‌‌​​​‌‌​‌‌​​‌​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​‌‌​‌‌​‌​‌‌​​​​‌​‌‌‌​‌​​​‌‌​‌​​​​‌‌‌​​‌‌​​‌​‌‌​‌​‌‌‌​​​​​‌‌​​​​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​​‌‌​​‌​​​‌​‌‌​‌​​‌‌‌​​‌​​‌​‌‌‌‌​​‌‌​​​‌​​‌‌​​​‌​​‌​‌‌‌‌​​‌‌​​​‌​​‌‌​‌‌​⁠

Q17.

In the addition algorithm, what happens if the sum of two digits is 12?

  1. Write 2 and carry 1

  2. Write 12 and carry 0

  3. Write 1 and carry 2

  4. Write 2 and carry 0

Show answer

Answer: A — Write 2 and carry 1

When sum is more than 10, write the units digit (2) and set carry to 1.⁠​‌​​​‌​‌​‌​‌​​‌‌​‌‌‌‌‌​​​‌‌‌​​​‌​​‌​‌‌‌‌​‌‌​‌‌‌​​‌‌​​​‌‌​‌‌​​‌​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​‌‌​‌‌​‌​‌‌​​​​‌​‌‌‌​‌​​​‌‌​‌​​​​‌‌‌​​‌‌​​‌​‌‌​‌​‌‌‌​​​​​‌‌​​​​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​​‌‌​​‌​​​‌​‌‌​‌​​‌‌‌​​‌​​‌​‌‌‌‌​​‌‌​​​‌​​‌‌​​​‌​​‌​‌‌‌‌​​‌‌​​​‌​​‌‌​‌‌‌⁠

Q18.

Why is the final step of writing carry 1 necessary?

  1. To account for the last carry that may be generated

  2. To make the answer look longer

  3. To follow tradition

  4. To avoid errors

Show answer

Answer: A — To account for the last carry that may be generated

If after processing all columns the carry is 1, it represents a higher place value that must be written to the left of the bottom row.⁠​‌​​​‌​‌​‌​‌​​‌‌​‌‌‌‌‌​​​‌‌‌​​​‌​​‌​‌‌‌‌​‌‌​‌‌‌​​‌‌​​​‌‌​‌‌​​‌​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​‌‌​‌‌​‌​‌‌​​​​‌​‌‌‌​‌​​​‌‌​‌​​​​‌‌‌​​‌‌​​‌​‌‌​‌​‌‌‌​​​​​‌‌​​​​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​​‌‌​​‌​​​‌​‌‌​‌​​‌‌‌​​‌​​‌​‌‌‌‌​​‌‌​​​‌​​‌‌​​​‌​​‌​‌‌‌‌​​‌‌​​​‌​​‌‌‌​​​⁠

Q19.

In Euclid's algorithm, if we start with gcd(48, 18), what is the first reduction?

  1. gcd(18, 30)

  2. gcd(18, 48)

  3. gcd(30, 18)

  4. gcd(48, 30)

Show answer

Answer: A — gcd(18, 30)

Since 48 ≥ 18, we reduce to gcd(18, 48 - 18) = gcd(18, 30).⁠​‌​​​‌​‌​‌​‌​​‌‌​‌‌‌‌‌​​​‌‌‌​​​‌​​‌​‌‌‌‌​‌‌​‌‌‌​​‌‌​​​‌‌​‌‌​​‌​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​‌‌​‌‌​‌​‌‌​​​​‌​‌‌‌​‌​​​‌‌​‌​​​​‌‌‌​​‌‌​​‌​‌‌​‌​‌‌‌​​​​​‌‌​​​​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​​‌‌​​‌​​​‌​‌‌​‌​​‌‌‌​​‌​​‌​‌‌‌‌​​‌‌​​​‌​​‌‌​​​‌​​‌​‌‌‌‌​​‌‌​​​‌​​‌‌‌​​‌⁠

Q20.

What is the result of gcd(48, 18) using Euclid's subtraction algorithm?

  1. 6

  2. 18

  3. 12

  4. 3

Show answer

Answer: A — 6

gcd(48,18) → gcd(18,30) → gcd(18,12) → gcd(12,6) → gcd(6,6) → gcd(6,0) = 6.⁠​‌​​​‌​‌​‌​‌​​‌‌​‌‌‌‌‌​​​‌‌‌​​​‌​​‌​‌‌‌‌​‌‌​‌‌‌​​‌‌​​​‌‌​‌‌​​‌​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​‌‌​‌‌​‌​‌‌​​​​‌​‌‌‌​‌​​​‌‌​‌​​​​‌‌‌​​‌‌​​‌​‌‌​‌​‌‌‌​​​​​‌‌​​​​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​​‌‌​​‌​​​‌​‌‌​‌​​‌‌‌​​‌​​‌​‌‌‌‌​​‌‌​​​‌​​‌‌​​​‌​​‌​‌‌‌‌​​‌‌​​‌​​​‌‌​​​​⁠

Q21.

Why does Euclid's algorithm work?

  1. Because any common divisor of m and n also divides m - n, and vice versa

  2. Because m - n is always smaller

  3. Because it uses subtraction

  4. Because it is ancient

Show answer

Answer: A — Because any common divisor of m and n also divides m - n, and vice versa

The text proves that any common divisor of m and n is also a common divisor of n and m - n, and the converse is also true, so the set of common divisors remains the same.⁠​‌​​​‌​‌​‌​‌​​‌‌​‌‌‌‌‌​​​‌‌‌​​​‌​​‌​‌‌‌‌​‌‌​‌‌‌​​‌‌​​​‌‌​‌‌​​‌​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​‌‌​‌‌​‌​‌‌​​​​‌​‌‌‌​‌​​​‌‌​‌​​​​‌‌‌​​‌‌​​‌​‌‌​‌​‌‌‌​​​​​‌‌​​​​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​​‌‌​​‌​​​‌​‌‌​‌​​‌‌‌​​‌​​‌​‌‌‌‌​​‌‌​​​‌​​‌‌​​​‌​​‌​‌‌‌‌​​‌‌​​‌​​​‌‌​​​‌⁠

Q22.

For gcd(99, 2), what is the first reduction using Aryabhata's algorithm?

  1. gcd(2, 1)

  2. gcd(2, 97)

  3. gcd(2, 99)

  4. gcd(1, 2)

Show answer

Answer: A — gcd(2, 1)

Since 99 ≥ 2, we reduce to gcd(2, 99 mod 2) = gcd(2, 1).⁠​‌​​​‌​‌​‌​‌​​‌‌​‌‌‌‌‌​​​‌‌‌​​​‌​​‌​‌‌‌‌​‌‌​‌‌‌​​‌‌​​​‌‌​‌‌​​‌​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​‌‌​‌‌​‌​‌‌​​​​‌​‌‌‌​‌​​​‌‌​‌​​​​‌‌‌​​‌‌​​‌​‌‌​‌​‌‌‌​​​​​‌‌​​​​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​​‌‌​​‌​​​‌​‌‌​‌​​‌‌‌​​‌​​‌​‌‌‌‌​​‌‌​​​‌​​‌‌​​​‌​​‌​‌‌‌‌​​‌‌​​‌​​​‌‌​​‌​⁠

Q23.

How many reduction steps are needed for gcd(99, 2) using Aryabhata's algorithm?

  1. 2

  2. 49

  3. 1

  4. 98

Show answer

Answer: A — 2

gcd(99,2) → gcd(2,1) → gcd(1,0). So two reduction steps.⁠​‌​​​‌​‌​‌​‌​​‌‌​‌‌‌‌‌​​​‌‌‌​​​‌​​‌​‌‌‌‌​‌‌​‌‌‌​​‌‌​​​‌‌​‌‌​​‌​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​‌‌​‌‌​‌​‌‌​​​​‌​‌‌‌​‌​​​‌‌​‌​​​​‌‌‌​​‌‌​​‌​‌‌​‌​‌‌‌​​​​​‌‌​​​​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​​‌‌​​‌​​​‌​‌‌​‌​​‌‌‌​​‌​​‌​‌‌‌‌​​‌‌​​​‌​​‌‌​​​‌​​‌​‌‌‌‌​​‌‌​​‌​​​‌‌​​‌‌⁠

Q24.

What is the main advantage of Aryabhata's division algorithm over Euclid's subtraction?

  1. Number of steps proportional to number of digits

  2. Number of steps proportional to the value

  3. It uses multiplication

  4. It works only for small numbers

Show answer

Answer: A — Number of steps proportional to number of digits

The text states: 'it can be shown that the number of reductions needed in Āryabhaṭa’s division algorithm is now proportional to the number of digits in m and n.'⁠​‌​​​‌​‌​‌​‌​​‌‌​‌‌‌‌‌​​​‌‌‌​​​‌​​‌​‌‌‌‌​‌‌​‌‌‌​​‌‌​​​‌‌​‌‌​​‌​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​‌‌​‌‌​‌​‌‌​​​​‌​‌‌‌​‌​​​‌‌​‌​​​​‌‌‌​​‌‌​​‌​‌‌​‌​‌‌‌​​​​​‌‌​​​​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​​‌‌​​‌​​​‌​‌‌​‌​​‌‌‌​​‌​​‌​‌‌‌‌​​‌‌​​​‌​​‌‌​​​‌​​‌​‌‌‌‌​​‌‌​​‌​​​‌‌​‌​​⁠

Q25.

In the gcd algorithm using lists, what is the list of common divisors of 375 and 825?

  1. [1, 3, 5, 15, 25, 75]

  2. [1, 3, 5, 15, 25, 75, 125, 375]

  3. [1, 3, 5, 11, 15, 25, 33, 55, 75, 165, 275, 825]

  4. [1, 2, 3, 5, 15, 25, 75]

Show answer

Answer: A — [1, 3, 5, 15, 25, 75]

From the text, the common divisors of 375 and 825 are [1, 3, 5, 15, 25, 75].⁠​‌​​​‌​‌​‌​‌​​‌‌​‌‌‌‌‌​​​‌‌‌​​​‌​​‌​‌‌‌‌​‌‌​‌‌‌​​‌‌​​​‌‌​‌‌​​‌​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​‌‌​‌‌​‌​‌‌​​​​‌​‌‌‌​‌​​​‌‌​‌​​​​‌‌‌​​‌‌​​‌​‌‌​‌​‌‌‌​​​​​‌‌​​​​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​​‌‌​​‌​​​‌​‌‌​‌​​‌‌‌​​‌​​‌​‌‌‌‌​​‌‌​​​‌​​‌‌​​​‌​​‌​‌‌‌‌​​‌‌​​‌​​​‌‌​‌​‌⁠

Q26.

What is the gcd of 54000 and 81000 according to the text?

  1. 27000

  2. 54000

  3. 81000

  4. 13500

Show answer

Answer: A — 27000

The text states that the gcd of 54000 and 81000 is 27000.⁠​‌​​​‌​‌​‌​‌​​‌‌​‌‌‌‌‌​​​‌‌‌​​​‌​​‌​‌‌‌‌​‌‌​‌‌‌​​‌‌​​​‌‌​‌‌​​‌​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​‌‌​‌‌​‌​‌‌​​​​‌​‌‌‌​‌​​​‌‌​‌​​​​‌‌‌​​‌‌​​‌​‌‌​‌​‌‌‌​​​​​‌‌​​​​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​​‌‌​​‌​​​‌​‌‌​‌​​‌‌‌​​‌​​‌​‌‌‌‌​​‌‌​​​‌​​‌‌​​​‌​​‌​‌‌‌‌​​‌‌​​‌​​​‌‌​‌‌​⁠

Q27.

Which of the following is a data structure used in the gcd algorithm described in the text?

  1. List

  2. Tree

  3. Graph

  4. Stack

Show answer

Answer: A — List

The text uses lists to maintain divisors and common divisors.⁠​‌​​​‌​‌​‌​‌​​‌‌​‌‌‌‌‌​​​‌‌‌​​​‌​​‌​‌‌‌‌​‌‌​‌‌‌​​‌‌​​​‌‌​‌‌​​‌​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​‌‌​‌‌​‌​‌‌​​​​‌​‌‌‌​‌​​​‌‌​‌​​​​‌‌‌​​‌‌​​‌​‌‌​‌​‌‌‌​​​​​‌‌​​​​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​​‌‌​​‌​​​‌​‌‌​‌​​‌‌‌​​‌​​‌​‌‌‌‌​​‌‌​​​‌​​‌‌​​​‌​​‌​‌‌‌‌​​‌‌​​‌​​​‌‌​‌‌‌⁠

Q28.

What does the term 'executing an algorithm' mean?

  1. Running through an algorithm step by step

  2. Writing an algorithm

  3. Debugging an algorithm

  4. Compiling an algorithm

Show answer

Answer: A — Running through an algorithm step by step

The text says: 'Running through an algorithm step by step is also called executing the algorithm.'⁠​‌​​​‌​‌​‌​‌​​‌‌​‌‌‌‌‌​​​‌‌‌​​​‌​​‌​‌‌‌‌​‌‌​‌‌‌​​‌‌​​​‌‌​‌‌​​‌​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​‌‌​‌‌​‌​‌‌​​​​‌​‌‌‌​‌​​​‌‌​‌​​​​‌‌‌​​‌‌​​‌​‌‌​‌​‌‌‌​​​​​‌‌​​​​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​​‌‌​​‌​​​‌​‌‌​‌​​‌‌‌​​‌​​‌​‌‌‌‌​​‌‌​​​‌​​‌‌​​​‌​​‌​‌‌‌‌​​‌‌​​‌​​​‌‌‌​​​⁠

Q29.

In the addition algorithm, why cannot the carry value be more than 1?

  1. Because the sum of two digits plus carry is at most 19

  2. Because we only add two digits

  3. Because carry is always 0 or 1

  4. Because of place value

Show answer

Answer: A — Because the sum of two digits plus carry is at most 19

The maximum sum of two digits is 9+9=18, and adding a carry of 1 gives 19, so the carry cannot exceed 1.⁠​‌​​​‌​‌​‌​‌​​‌‌​‌‌‌‌‌​​​‌‌‌​​​‌​​‌​‌‌‌‌​‌‌​‌‌‌​​‌‌​​​‌‌​‌‌​​‌​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​‌‌​‌‌​‌​‌‌​​​​‌​‌‌‌​‌​​​‌‌​‌​​​​‌‌‌​​‌‌​​‌​‌‌​‌​‌‌‌​​​​​‌‌​​​​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​​‌‌​​‌​​​‌​‌‌​‌​​‌‌‌​​‌​​‌​‌‌‌‌​​‌‌​​​‌​​‌‌​​​‌​​‌​‌‌‌‌​​‌‌​​‌​​​‌‌‌​​‌⁠

Q30.

What is the main advantage of the addition algorithm over counting dots?

  1. It is much faster for large numbers

  2. It is more accurate

  3. It uses fewer numbers

  4. It is easier to understand

Show answer

Answer: A — It is much faster for large numbers

The text explains that counting dots for large numbers takes much longer, while the digit-by-digit addition algorithm adds only one more column per extra digit, making it far faster.⁠​‌​​​‌​‌​‌​‌​​‌‌​‌‌‌‌‌​​​‌‌‌​​​‌​​‌​‌‌‌‌​‌‌​‌‌‌​​‌‌​​​‌‌​‌‌​​‌​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​‌‌​‌‌​‌​‌‌​​​​‌​‌‌‌​‌​​​‌‌​‌​​​​‌‌‌​​‌‌​​‌​‌‌​‌​‌‌‌​​​​​‌‌​​​​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​​‌‌​​‌​​​‌​‌‌​‌​​‌‌‌​​‌​​‌​‌‌‌‌​​‌‌​​​‌​​‌‌​​​‌​​‌​‌‌‌‌​​‌‌​​‌‌​​‌‌​​​​⁠

Q31.

What is an algorithm, as defined in the chapter?

  1. A step-by-step procedure to arrive at an answer

  2. A method of counting dots to add numbers

  3. A type of data structure used in mathematics

  4. A Greek method for finding prime numbers

Show answer

Answer: A — A step-by-step procedure to arrive at an answer

The chapter defines an algorithm as 'a step-by-step procedure to arrive at an answer'. The other options are either examples or unrelated.⁠​‌​​​‌​‌​‌​‌​​‌‌​‌‌‌‌‌​​​‌‌‌​​​‌​​‌​‌‌‌‌​‌‌​‌‌‌​​‌‌​​​‌‌​‌‌​​‌​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​‌‌​‌‌​‌​‌‌​​​​‌​‌‌‌​‌​​​‌‌​‌​​​​‌‌‌​​‌‌​​‌​‌‌​‌​‌‌‌​​​​​‌‌​​​​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​​‌‌​​‌​​​‌​‌‌​‌​​‌‌‌​​‌​​‌​‌‌‌‌​​‌‌​​​‌​​‌‌​​​‌​​‌​‌‌‌‌​​‌‌​​‌‌​​‌‌​​​‌⁠

Q32.

In the addition algorithm described, why do we align digits from right to left?

  1. To make the numbers look neat

  2. Because the Indian place-value system groups digits by powers of ten

  3. To ensure that the carry is always 1

  4. To avoid adding numbers with different lengths

Show answer

Answer: B — Because the Indian place-value system groups digits by powers of ten

Aligning from right to left is essential because the place value (units, tens, hundreds, etc.) increases from right to left, so like places must be added together.⁠​‌​​​‌​‌​‌​‌​​‌‌​‌‌‌‌‌​​​‌‌‌​​​‌​​‌​‌‌‌‌​‌‌​‌‌‌​​‌‌​​​‌‌​‌‌​​‌​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​‌‌​‌‌​‌​‌‌​​​​‌​‌‌‌​‌​​​‌‌​‌​​​​‌‌‌​​‌‌​​‌​‌‌​‌​‌‌‌​​​​​‌‌​​​​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​​‌‌​​‌​​​‌​‌‌​‌​​‌‌‌​​‌​​‌​‌‌‌‌​​‌‌​​​‌​​‌‌​​​‌​​‌​‌‌‌‌​​‌‌​​‌‌​​‌‌​​‌​⁠

Q33.

In the addition algorithm, after adding two digits and the carry, if the sum is 10 or more, what do we do?

  1. Write the whole sum and set carry to 1

  2. Write the units digit and set carry to 1

  3. Write the tens digit and set carry to 0

  4. Ignore the carry and write the sum directly

Show answer

Answer: B — Write the units digit and set carry to 1

According to the algorithm, if the sum is more than 10, we write the units digit below and set the carry to 1 (or if exactly 10, similarly).⁠​‌​​​‌​‌​‌​‌​​‌‌​‌‌‌‌‌​​​‌‌‌​​​‌​​‌​‌‌‌‌​‌‌​‌‌‌​​‌‌​​​‌‌​‌‌​​‌​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​‌‌​‌‌​‌​‌‌​​​​‌​‌‌‌​‌​​​‌‌​‌​​​​‌‌‌​​‌‌​​‌​‌‌​‌​‌‌‌​​​​​‌‌​​​​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​​‌‌​​‌​​​‌​‌‌​‌​​‌‌‌​​‌​​‌​‌‌‌‌​​‌‌​​​‌​​‌‌​​​‌​​‌​‌‌‌‌​​‌‌​​‌‌​​‌‌​​‌‌⁠

Q34.

Why is it important to include Step 5 ('If the value of carry is 1, write 1 to the left of the bottom row') in the addition algorithm?

  1. Because otherwise the answer will always be wrong

  2. Because it handles the case when there is a final carry after the leftmost column

  3. Because it makes the algorithm faster

  4. Because the carry must always be written

Show answer

Answer: B — Because it handles the case when there is a final carry after the leftmost column

Without Step 5, if there is a carry after adding the leftmost digits, that carry would be lost, leading to an incorrect sum in cases where the sum has more digits than the operands.⁠​‌​​​‌​‌​‌​‌​​‌‌​‌‌‌‌‌​​​‌‌‌​​​‌​​‌​‌‌‌‌​‌‌​‌‌‌​​‌‌​​​‌‌​‌‌​​‌​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​‌‌​‌‌​‌​‌‌​​​​‌​‌‌‌​‌​​​‌‌​‌​​​​‌‌‌​​‌‌​​‌​‌‌​‌​‌‌‌​​​​​‌‌​​​​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​​‌‌​​‌​​​‌​‌‌​‌​​‌‌‌​​‌​​‌​‌‌‌‌​​‌‌​​​‌​​‌‌​​​‌​​‌​‌‌‌‌​​‌‌​​‌‌​​‌‌​‌​​⁠

Q35.

What basic assumption does the addition algorithm make?

  1. That we can add any two single-digit numbers without counting

  2. That we have a calculator

  3. That the numbers are always 3-digit

  4. That the carry is always 0

Show answer

Answer: A — That we can add any two single-digit numbers without counting

The chapter states: 'There is also an important assumption in this algorithm, namely, that we know how to add single digit numbers without counting them out.'⁠​‌​​​‌​‌​‌​‌​​‌‌​‌‌‌‌‌​​​‌‌‌​​​‌​​‌​‌‌‌‌​‌‌​‌‌‌​​‌‌​​​‌‌​‌‌​​‌​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​‌‌​‌‌​‌​‌‌​​​​‌​‌‌‌​‌​​​‌‌​‌​​​​‌‌‌​​‌‌​​‌​‌‌​‌​‌‌‌​​​​​‌‌​​​​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​​‌‌​​‌​​​‌​‌‌​‌​​‌‌‌​​‌​​‌​‌‌‌‌​​‌‌​​​‌​​‌‌​​​‌​​‌​‌‌‌‌​​‌‌​​‌‌​​‌‌​‌​‌⁠

Q36.

According to the chapter, what is the main advantage of the addition algorithm over counting dots?

  1. It is easier to understand

  2. It requires less memory

  3. It takes time proportional to the number of digits, not the value of the numbers

  4. It works only for small numbers

Show answer

Answer: C — It takes time proportional to the number of digits, not the value of the numbers

The chapter explains that adding digit by digit takes time proportional to the number of digits, whereas counting dots grows proportionally with the value of the numbers.⁠​‌​​​‌​‌​‌​‌​​‌‌​‌‌‌‌‌​​​‌‌‌​​​‌​​‌​‌‌‌‌​‌‌​‌‌‌​​‌‌​​​‌‌​‌‌​​‌​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​‌‌​‌‌​‌​‌‌​​​​‌​‌‌‌​‌​​​‌‌​‌​​​​‌‌‌​​‌‌​​‌​‌‌​‌​‌‌‌​​​​​‌‌​​​​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​​‌‌​​‌​​​‌​‌‌​‌​​‌‌‌​​‌​​‌​‌‌‌‌​​‌‌​​​‌​​‌‌​​​‌​​‌​‌‌‌‌​​‌‌​​‌‌​​‌‌​‌‌​⁠

Q37.

What does the chapter suggest we need to do to modify the addition algorithm for decimal fractions?

  1. Align the decimal points and add columns from left to right

  2. Ignore the decimal point and add as whole numbers

  3. Align the decimal points and add columns from right to left, including decimal places

  4. Convert decimals to fractions first

Show answer

Answer: C — Align the decimal points and add columns from right to left, including decimal places

The 'Think and Reflect' section asks how to modify the algorithm for decimal fractions. The natural extension is to align decimal points and add each column from right to left, including decimal places.⁠​‌​​​‌​‌​‌​‌​​‌‌​‌‌‌‌‌​​​‌‌‌​​​‌​​‌​‌‌‌‌​‌‌​‌‌‌​​‌‌​​​‌‌​‌‌​​‌​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​‌‌​‌‌​‌​‌‌​​​​‌​‌‌‌​‌​​​‌‌​‌​​​​‌‌‌​​‌‌​​‌​‌‌​‌​‌‌‌​​​​​‌‌​​​​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​​‌‌​​‌​​​‌​‌‌​‌​​‌‌‌​​‌​​‌​‌‌‌‌​​‌‌​​​‌​​‌‌​​​‌​​‌​‌‌‌‌​​‌‌​​‌‌​​‌‌​‌‌‌⁠

Q38.

In the algorithm to find divisors of n, what is the initial value of the list-of-divisors?

  1. [1]

  2. []

  3. [n]

  4. [1, n]

Show answer

Answer: B — []

The algorithm says: 'Start with an empty list-of-divisors.' So initially it is [].⁠​‌​​​‌​‌​‌​‌​​‌‌​‌‌‌‌‌​​​‌‌‌​​​‌​​‌​‌‌‌‌​‌‌​‌‌‌​​‌‌​​​‌‌​‌‌​​‌​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​‌‌​‌‌​‌​‌‌​​​​‌​‌‌‌​‌​​​‌‌​‌​​​​‌‌‌​​‌‌​​‌​‌‌​‌​‌‌‌​​​​​‌‌​​​​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​​‌‌​​‌​​​‌​‌‌​‌​​‌‌‌​​‌​​‌​‌‌‌‌​​‌‌​​​‌​​‌‌​​​‌​​‌​‌‌‌‌​​‌‌​​‌‌​​‌‌‌​​​⁠

Q39.

For n = 18, what is the final list of divisors according to the algorithm?

  1. [1, 2, 3, 6, 9, 18]

  2. [1, 2, 3, 6, 9]

  3. [1, 2, 3, 4, 6, 9, 18]

  4. [1, 18]

Show answer

Answer: A — [1, 2, 3, 6, 9, 18]

The chapter executes the algorithm for 18 and obtains [1, 2, 3, 6, 9, 18].⁠​‌​​​‌​‌​‌​‌​​‌‌​‌‌‌‌‌​​​‌‌‌​​​‌​​‌​‌‌‌‌​‌‌​‌‌‌​​‌‌​​​‌‌​‌‌​​‌​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​‌‌​‌‌​‌​‌‌​​​​‌​‌‌‌​‌​​​‌‌​‌​​​​‌‌‌​​‌‌​​‌​‌‌​‌​‌‌‌​​​​​‌‌​​​​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​​‌‌​​‌​​​‌​‌‌​‌​​‌‌‌​​‌​​‌​‌‌‌‌​​‌‌​​​‌​​‌‌​​​‌​​‌​‌‌‌‌​​‌‌​​‌‌​​‌‌‌​​‌⁠

Q40.

What is the greatest common divisor of 375 and 825, as computed in the chapter?

  1. 25

  2. 75

  3. 125

  4. 375

Show answer

Answer: B — 75

The chapter computes gcd(375, 825) by listing divisors and finds the common divisors are [1, 3, 5, 15, 25, 75], so the gcd is 75.⁠​‌​​​‌​‌​‌​‌​​‌‌​‌‌‌‌‌​​​‌‌‌​​​‌​​‌​‌‌‌‌​‌‌​‌‌‌​​‌‌​​​‌‌​‌‌​​‌​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​‌‌​‌‌​‌​‌‌​​​​‌​‌‌‌​‌​​​‌‌​‌​​​​‌‌‌​​‌‌​​‌​‌‌​‌​‌‌‌​​​​​‌‌​​​​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​​‌‌​​‌​​​‌​‌‌​‌​​‌‌‌​​‌​​‌​‌‌‌‌​​‌‌​​​‌​​‌‌​​​‌​​‌​‌‌‌‌​​‌‌​‌​​​​‌‌​​​​⁠

Q41.

In the first algorithm for gcd, what is the final step?

  1. Report the rightmost element of the list common-divisors as gcd(m,n)

  2. Report the leftmost element of the list common-divisors

  3. Report the product of all common divisors

  4. Report the sum of all common divisors

Show answer

Answer: A — Report the rightmost element of the list common-divisors as gcd(m,n)

The algorithm states: 'Report the rightmost element of the list common-divisors as gcd(m,n).' Since the list is in increasing order, the rightmost is the largest.⁠​‌​​​‌​‌​‌​‌​​‌‌​‌‌‌‌‌​​​‌‌‌​​​‌​​‌​‌‌‌‌​‌‌​‌‌‌​​‌‌​​​‌‌​‌‌​​‌​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​‌‌​‌‌​‌​‌‌​​​​‌​‌‌‌​‌​​​‌‌​‌​​​​‌‌‌​​‌‌​​‌​‌‌​‌​‌‌‌​​​​​‌‌​​​​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​​‌‌​​‌​​​‌​‌‌​‌​​‌‌‌​​‌​​‌​‌‌‌‌​​‌‌​​​‌​​‌‌​​​‌​​‌​‌‌‌‌​​‌‌​‌​​​​‌‌​​​‌⁠

Q42.

What is a data structure, as described in the chapter?

  1. A way to organise information to help make an algorithm more efficient

  2. A type of number system

  3. A step in an algorithm

  4. A mathematical proof

Show answer

Answer: A — A way to organise information to help make an algorithm more efficient

The chapter states: 'A list is an example of a data structure. Data structures allow us to organise information in a manner that helps make an algorithm more efficient.'⁠​‌​​​‌​‌​‌​‌​​‌‌​‌‌‌‌‌​​​‌‌‌​​​‌​​‌​‌‌‌‌​‌‌​‌‌‌​​‌‌​​​‌‌​‌‌​​‌​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​‌‌​‌‌​‌​‌‌​​​​‌​‌‌‌​‌​​​‌‌​‌​​​​‌‌‌​​‌‌​​‌​‌‌​‌​‌‌‌​​​​​‌‌​​​​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​​‌‌​​‌​​​‌​‌‌​‌​​‌‌‌​​‌​​‌​‌‌‌‌​​‌‌​​​‌​​‌‌​​​‌​​‌​‌‌‌‌​​‌‌​‌​​​​‌‌​​‌​⁠

Q43.

How does combining the scans for divisors of m and n improve the gcd algorithm?

  1. It reduces the number of possible divisors to be checked from m + n to max(m, n)

  2. It eliminates the need for lists entirely

  3. It makes the algorithm slower but more accurate

  4. It only works when m = n

Show answer

Answer: A — It reduces the number of possible divisors to be checked from m + n to max(m, n)

The chapter says: 'This reduces the number of possible divisors to be checked from m + n to max(m, n).'⁠​‌​​​‌​‌​‌​‌​​‌‌​‌‌‌‌‌​​​‌‌‌​​​‌​​‌​‌‌‌‌​‌‌​‌‌‌​​‌‌​​​‌‌​‌‌​​‌​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​‌‌​‌‌​‌​‌‌​​​​‌​‌‌‌​‌​​​‌‌​‌​​​​‌‌‌​​‌‌​​‌​‌‌​‌​‌‌‌​​​​​‌‌​​​​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​​‌‌​​‌​​​‌​‌‌​‌​​‌‌‌​​‌​​‌​‌‌‌‌​​‌‌​​​‌​​‌‌​​​‌​​‌​‌‌‌‌​​‌‌​‌​​​​‌‌​​‌‌⁠

Q44.

In the improved gcd algorithm that does away with lists, what variable is used to keep track of the gcd?

  1. most-recent-common-divisor

  2. gcd

  3. list-of-divisors

  4. common-divisors

Show answer

Answer: A — most-recent-common-divisor

The algorithm uses 'most-recent-common-divisor', initially set to 1, and updates it whenever a larger common divisor is found.⁠​‌​​​‌​‌​‌​‌​​‌‌​‌‌‌‌‌​​​‌‌‌​​​‌​​‌​‌‌‌‌​‌‌​‌‌‌​​‌‌​​​‌‌​‌‌​​‌​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​‌‌​‌‌​‌​‌‌​​​​‌​‌‌‌​‌​​​‌‌​‌​​​​‌‌‌​​‌‌​​‌​‌‌​‌​‌‌‌​​​​​‌‌​​​​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​​‌‌​​‌​​​‌​‌‌​‌​​‌‌‌​​‌​​‌​‌‌‌‌​​‌‌​​​‌​​‌‌​​​‌​​‌​‌‌‌‌​​‌‌​‌​​​​‌‌​‌​​⁠

Q45.

What is the key observation behind Euclid's subtraction algorithm?

  1. gcd(m, n) = gcd(n, m - n)

  2. gcd(m, n) = gcd(m + n, n)

  3. gcd(m, n) = gcd(m, n mod m)

  4. gcd(m, n) = gcd(m - n, m + n)

Show answer

Answer: A — gcd(m, n) = gcd(n, m - n)

The chapter states: 'Then, gcd(m,n) is the same as gcd(n, m - n).' This is the basis of Euclid's subtraction algorithm.⁠​‌​​​‌​‌​‌​‌​​‌‌​‌‌‌‌‌​​​‌‌‌​​​‌​​‌​‌‌‌‌​‌‌​‌‌‌​​‌‌​​​‌‌​‌‌​​‌​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​‌‌​‌‌​‌​‌‌​​​​‌​‌‌‌​‌​​​‌‌​‌​​​​‌‌‌​​‌‌​​‌​‌‌​‌​‌‌‌​​​​​‌‌​​​​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​​‌‌​​‌​​​‌​‌‌​‌​​‌‌‌​​‌​​‌​‌‌‌‌​​‌‌​​​‌​​‌‌​​​‌​​‌​‌‌‌‌​​‌‌​‌​​​​‌‌​‌​‌⁠

Q46.

Why does Euclid's subtraction algorithm eventually stop?

  1. Because the numbers become equal and then one becomes zero

  2. Because the numbers become prime

  3. Because the algorithm reaches a carry

  4. Because the numbers become negative

Show answer

Answer: A — Because the numbers become equal and then one becomes zero

The algorithm reduces the numbers until one is zero. When gcd(m,0) is reached, the answer is m. This happens because repeated subtraction eventually makes the smaller number zero.⁠​‌​​​‌​‌​‌​‌​​‌‌​‌‌‌‌‌​​​‌‌‌​​​‌​​‌​‌‌‌‌​‌‌​‌‌‌​​‌‌​​​‌‌​‌‌​​‌​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​‌‌​‌‌​‌​‌‌​​​​‌​‌‌‌​‌​​​‌‌​‌​​​​‌‌‌​​‌‌​​‌​‌‌​‌​‌‌‌​​​​​‌‌​​​​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​​‌‌​​‌​​​‌​‌‌​‌​​‌‌‌​​‌​​‌​‌‌‌‌​​‌‌​​​‌​​‌‌​​​‌​​‌​‌‌‌‌​​‌‌​‌​​​​‌‌​‌‌​⁠

Q47.

What is a drawback of Euclid's subtraction algorithm compared to Aryabhata's division algorithm?

  1. It requires many subtractions when one number is much larger than the other

  2. It cannot handle even numbers

  3. It only works for numbers less than 100

  4. It requires prime factorization

Show answer

Answer: A — It requires many subtractions when one number is much larger than the other

The chapter notes that for gcd(99,2), Euclid's subtraction algorithm requires about 49 reductions, whereas the division algorithm takes only 2 steps.⁠​‌​​​‌​‌​‌​‌​​‌‌​‌‌‌‌‌​​​‌‌‌​​​‌​​‌​‌‌‌‌​‌‌​‌‌‌​​‌‌​​​‌‌​‌‌​​‌​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​‌‌​‌‌​‌​‌‌​​​​‌​‌‌‌​‌​​​‌‌​‌​​​​‌‌‌​​‌‌​​‌​‌‌​‌​‌‌‌​​​​​‌‌​​​​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​​‌‌​​‌​​​‌​‌‌​‌​​‌‌‌​​‌​​‌​‌‌‌‌​​‌‌​​​‌​​‌‌​​​‌​​‌​‌‌‌‌​​‌‌​‌​​​​‌‌​‌‌‌⁠

Q48.

In Aryabhata's division algorithm, what is the reduction step?

  1. Reduce gcd(m,n) to gcd(n, m mod n)

  2. Reduce gcd(m,n) to gcd(n, m - n)

  3. Reduce gcd(m,n) to gcd(m, n mod m)

  4. Reduce gcd(m,n) to gcd(m - n, n)

Show answer

Answer: A — Reduce gcd(m,n) to gcd(n, m mod n)

The chapter says: 'Instead of reducing gcd(m,n) to gcd(n, m - n) we reduce it to gcd(n, m mod n), where m mod n stands for the remainder when m is divided by n.'⁠​‌​​​‌​‌​‌​‌​​‌‌​‌‌‌‌‌​​​‌‌‌​​​‌​​‌​‌‌‌‌​‌‌​‌‌‌​​‌‌​​​‌‌​‌‌​​‌​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​‌‌​‌‌​‌​‌‌​​​​‌​‌‌‌​‌​​​‌‌​‌​​​​‌‌‌​​‌‌​​‌​‌‌​‌​‌‌‌​​​​​‌‌​​​​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​​‌‌​​‌​​​‌​‌‌​‌​​‌‌‌​​‌​​‌​‌‌‌‌​​‌‌​​​‌​​‌‌​​​‌​​‌​‌‌‌‌​​‌‌​‌​​​​‌‌‌​​​⁠

Q49.

What does the chapter say about the efficiency of Aryabhata's division algorithm?

  1. The number of reductions is proportional to the number of digits in m and n

  2. The number of reductions is proportional to the value of m and n

  3. It is always slower than Euclid's subtraction algorithm

  4. It only works for small numbers

Show answer

Answer: A — The number of reductions is proportional to the number of digits in m and n

The chapter states: 'In fact, it can be shown that the number of reductions needed in Aryabhata's division algorithm is now proportional to the number of digits in m and n.'⁠​‌​​​‌​‌​‌​‌​​‌‌​‌‌‌‌‌​​​‌‌‌​​​‌​​‌​‌‌‌‌​‌‌​‌‌‌​​‌‌​​​‌‌​‌‌​​‌​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​‌‌​‌‌​‌​‌‌​​​​‌​‌‌‌​‌​​​‌‌​‌​​​​‌‌‌​​‌‌​​‌​‌‌​‌​‌‌‌​​​​​‌‌​​​​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​​‌‌​​‌​​​‌​‌‌​‌​​‌‌‌​​‌​​‌​‌‌‌‌​​‌‌​​​‌​​‌‌​​​‌​​‌​‌‌‌‌​​‌‌​‌​​​​‌‌‌​​‌⁠

Q50.

What is the origin of the word 'algorithm' according to the chapter?

  1. From the Latin form of Al-Khwarizmi's name

  2. From the Greek word for number

  3. From the Indian word for mathematics

  4. From the Arabic word for addition

Show answer

Answer: A — From the Latin form of Al-Khwarizmi's name

The chapter explains that 'algorismus' came from Algoritmi, the Latin form of Al-Khwarizmi's name, which later contracted to 'algorithm'.⁠​‌​​​‌​‌​‌​‌​​‌‌​‌‌‌‌‌​​​‌‌‌​​​‌​​‌​‌‌‌‌​‌‌​‌‌‌​​‌‌​​​‌‌​‌‌​​‌​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​‌‌​‌‌​‌​‌‌​​​​‌​‌‌‌​‌​​​‌‌​‌​​​​‌‌‌​​‌‌​​‌​‌‌​‌​‌‌‌​​​​​‌‌​​​​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​​‌‌​​‌​​​‌​‌‌​‌​​‌‌‌​​‌​​‌​‌‌‌‌​​‌‌​​​‌​​‌‌​​​‌​​‌​‌‌‌‌​​‌‌​‌​‌​​‌‌​​​​⁠

Q51.

Which ancient Indian text is mentioned as containing the 'long division' method for finding GCD?

  1. Aryabhatiya

  2. Brahmasphutasiddhanta

  3. Lilavati

  4. Sulbasutras

Show answer

Answer: A — Aryabhatiya

The chapter says: 'In Indian treatises like Aryabhata's Aryabhatiya (499 CE), we see the "long division" method for finding GCD using Indian place value numerals.'⁠​‌​​​‌​‌​‌​‌​​‌‌​‌‌‌‌‌​​​‌‌‌​​​‌​​‌​‌‌‌‌​‌‌​‌‌‌​​‌‌​​​‌‌​‌‌​​‌​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​‌‌​‌‌​‌​‌‌​​​​‌​‌‌‌​‌​​​‌‌​‌​​​​‌‌‌​​‌‌​​‌​‌‌​‌​‌‌‌​​​​​‌‌​​​​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​​‌‌​​‌​​​‌​‌‌​‌​​‌‌‌​​‌​​‌​‌‌‌‌​​‌‌​​​‌​​‌‌​​​‌​​‌​‌‌‌‌​​‌‌​‌​‌​​‌‌​​​‌⁠

Q52.

What is the value of 17 mod 5, as given in the chapter?

  1. 2

  2. 3

  3. 5

  4. 12

Show answer

Answer: A — 2

The chapter states: '17 mod 5 is 2 and 33 mod 7 is 5.'⁠​‌​​​‌​‌​‌​‌​​‌‌​‌‌‌‌‌​​​‌‌‌​​​‌​​‌​‌‌‌‌​‌‌​‌‌‌​​‌‌​​​‌‌​‌‌​​‌​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​‌‌​‌‌​‌​‌‌​​​​‌​‌‌‌​‌​​​‌‌​‌​​​​‌‌‌​​‌‌​​‌​‌‌​‌​‌‌‌​​​​​‌‌​​​​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​​‌‌​​‌​​​‌​‌‌​‌​​‌‌‌​​‌​​‌​‌‌‌‌​​‌‌​​​‌​​‌‌​​​‌​​‌​‌‌‌‌​​‌‌​‌​‌​​‌‌​​‌​⁠

Q53.

In the algorithm to find the divisors of n, what does the loop 'For each j in 1,2,3,...,n' do?

  1. Checks if j divides n and if so, adds j to the list

  2. Adds all numbers from 1 to n to the list

  3. Multiplies all numbers from 1 to n

  4. Finds the greatest common divisor of n and j

Show answer

Answer: A — Checks if j divides n and if so, adds j to the list

The algorithm says: 'For each number j in the sequence 1,2,3,...,n if j divides n, add j to the list-of-divisors.'⁠​‌​​​‌​‌​‌​‌​​‌‌​‌‌‌‌‌​​​‌‌‌​​​‌​​‌​‌‌‌‌​‌‌​‌‌‌​​‌‌​​​‌‌​‌‌​​‌​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​‌‌​‌‌​‌​‌‌​​​​‌​‌‌‌​‌​​​‌‌​‌​​​​‌‌‌​​‌‌​​‌​‌‌​‌​‌‌‌​​​​​‌‌​​​​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​​‌‌​​‌​​​‌​‌‌​‌​​‌‌‌​​‌​​‌​‌‌‌‌​​‌‌​​​‌​​‌‌​​​‌​​‌​‌‌‌‌​​‌‌​‌​‌​​‌‌​​‌‌⁠

Q54.

What is the gcd of 54000 and 81000, as computed in the chapter?

  1. 27000

  2. 5400

  3. 13500

  4. 9000

Show answer

Answer: A — 27000

The chapter computes the common divisors and finds the largest is 27000.⁠​‌​​​‌​‌​‌​‌​​‌‌​‌‌‌‌‌​​​‌‌‌​​​‌​​‌​‌‌‌‌​‌‌​‌‌‌​​‌‌​​​‌‌​‌‌​​‌​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​‌‌​‌‌​‌​‌‌​​​​‌​‌‌‌​‌​​​‌‌​‌​​​​‌‌‌​​‌‌​​‌​‌‌​‌​‌‌‌​​​​​‌‌​​​​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​​‌‌​​‌​​​‌​‌‌​‌​​‌‌‌​​‌​​‌​‌‌‌‌​​‌‌​​​‌​​‌‌​​​‌​​‌​‌‌‌‌​​‌‌​‌​‌​​‌‌​‌​​⁠

Q55.

What is the least common multiple (lcm) algorithm likely to use, based on the chapter's approach?

  1. Lists of multiples or prime factorization

  2. Repeated addition

  3. Subtraction of remainders

  4. Counting dots

Show answer

Answer: A — Lists of multiples or prime factorization

The exercise asks to describe an algorithm to compute lcm. Common approaches use lists of multiples or prime factorization, similar to the divisor list method for gcd.⁠​‌​​​‌​‌​‌​‌​​‌‌​‌‌‌‌‌​​​‌‌‌​​​‌​​‌​‌‌‌‌​‌‌​‌‌‌​​‌‌​​​‌‌​‌‌​​‌​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​‌‌​‌‌​‌​‌‌​​​​‌​‌‌‌​‌​​​‌‌​‌​​​​‌‌‌​​‌‌​​‌​‌‌​‌​‌‌‌​​​​​‌‌​​​​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​​‌‌​​‌​​​‌​‌‌​‌​​‌‌‌​​‌​​‌​‌‌‌‌​​‌‌​​​‌​​‌‌​​​‌​​‌​‌‌‌‌​​‌‌​‌​‌​​‌‌​‌​‌⁠

Q56.

In the chapter, what does the term 'executing an algorithm' mean?

  1. Running through the algorithm step by step

  2. Writing down the algorithm

  3. Proving the algorithm is correct

  4. Optimizing the algorithm

Show answer

Answer: A — Running through the algorithm step by step

The chapter says: 'Running through an algorithm step by step is also called executing the algorithm.'⁠​‌​​​‌​‌​‌​‌​​‌‌​‌‌‌‌‌​​​‌‌‌​​​‌​​‌​‌‌‌‌​‌‌​‌‌‌​​‌‌​​​‌‌​‌‌​​‌​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​‌‌​‌‌​‌​‌‌​​​​‌​‌‌‌​‌​​​‌‌​‌​​​​‌‌‌​​‌‌​​‌​‌‌​‌​‌‌‌​​​​​‌‌​​​​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​​‌‌​​‌​​​‌​‌‌​‌​​‌‌‌​​‌​​‌​‌‌‌‌​​‌‌​​​‌​​‌‌​​​‌​​‌​‌‌‌‌​​‌‌​‌​‌​​‌‌​‌‌​⁠

Q57.

What is the main advantage of using the 'most-recent-common-divisor' variable in the improved gcd algorithm?

  1. It avoids storing all common divisors in a list

  2. It makes the algorithm run faster by checking numbers in reverse

  3. It allows the algorithm to work for negative numbers

  4. It ensures the gcd is always prime

Show answer

Answer: A — It avoids storing all common divisors in a list

The chapter says: 'Do we need to maintain the list of all common divisors? Each time we find a larger common divisor, the ones that we have found earlier are useless!' So it avoids storing the full list.⁠​‌​​​‌​‌​‌​‌​​‌‌​‌‌‌‌‌​​​‌‌‌​​​‌​​‌​‌‌‌‌​‌‌​‌‌‌​​‌‌​​​‌‌​‌‌​​‌​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​‌‌​‌‌​‌​‌‌​​​​‌​‌‌‌​‌​​​‌‌​‌​​​​‌‌‌​​‌‌​​‌​‌‌​‌​‌‌‌​​​​​‌‌​​​​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​​‌‌​​‌​​​‌​‌‌​‌​​‌‌‌​​‌​​‌​‌‌‌‌​​‌‌​​​‌​​‌‌​​​‌​​‌​‌‌‌‌​​‌‌​‌​‌​​‌‌​‌‌‌⁠

Q58.

Which of the following is NOT a basic step assumed in the gcd algorithm that uses divisor lists?

  1. Knowing how to check if a number divides another

  2. Knowing how to compare two numbers

  3. Knowing how to add numbers

  4. Knowing how to create an empty list

Show answer

Answer: C — Knowing how to add numbers

The algorithm for divisors assumes we can check divisibility, but addition is not a basic step there. The addition algorithm assumes single-digit addition.⁠​‌​​​‌​‌​‌​‌​​‌‌​‌‌‌‌‌​​​‌‌‌​​​‌​​‌​‌‌‌‌​‌‌​‌‌‌​​‌‌​​​‌‌​‌‌​​‌​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​‌‌​‌‌​‌​‌‌​​​​‌​‌‌‌​‌​​​‌‌​‌​​​​‌‌‌​​‌‌​​‌​‌‌​‌​‌‌‌​​​​​‌‌​​​​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​​‌‌​​‌​​​‌​‌‌​‌​​‌‌‌​​‌​​‌​‌‌‌‌​​‌‌​​​‌​​‌‌​​​‌​​‌​‌‌‌‌​​‌‌​‌​‌​​‌‌‌​​​⁠

Q59.

What does the chapter say about the number of steps in an algorithm?

  1. We can analyse how many steps it takes in terms of the size of its input

  2. The number of steps is always fixed

  3. The number of steps is irrelevant

  4. Algorithms must have exactly 5 steps

Show answer

Answer: A — We can analyse how many steps it takes in terms of the size of its input

The chapter summary states: 'We can also analyse how many steps an algorithm takes, in terms of the size of its input, and decide how efficient it is.'⁠​‌​​​‌​‌​‌​‌​​‌‌​‌‌‌‌‌​​​‌‌‌​​​‌​​‌​‌‌‌‌​‌‌​‌‌‌​​‌‌​​​‌‌​‌‌​​‌​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​‌‌​‌‌​‌​‌‌​​​​‌​‌‌‌​‌​​​‌‌​‌​​​​‌‌‌​​‌‌​​‌​‌‌​‌​‌‌‌​​​​​‌‌​​​​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​​‌‌​​‌​​​‌​‌‌​‌​​‌‌‌​​‌​​‌​‌‌‌‌​​‌‌​​​‌​​‌‌​​​‌​​‌​‌‌‌‌​​‌‌​‌​‌​​‌‌‌​​‌⁠

Q60.

In the context of the chapter, what is a 'carry'?

  1. A value of 1 that is added to the next left column when a sum is 10 or more

  2. The result of adding two digits

  3. The number of digits in a number

  4. A type of data structure

Show answer

Answer: A — A value of 1 that is added to the next left column when a sum is 10 or more

The addition algorithm sets the carry to 1 when the sum of a column is 10 or more, and this carry is added to the next column to the left.⁠​‌​​​‌​‌​‌​‌​​‌‌​‌‌‌‌‌​​​‌‌‌​​​‌​​‌​‌‌‌‌​‌‌​‌‌‌​​‌‌​​​‌‌​‌‌​​‌​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​‌‌​‌‌​‌​‌‌​​​​‌​‌‌‌​‌​​​‌‌​‌​​​​‌‌‌​​‌‌​​‌​‌‌​‌​‌‌‌​​​​​‌‌​​​​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​​‌‌​​‌​​​‌​‌‌​‌​​‌‌‌​​‌​​‌​‌‌‌‌​​‌‌​​​‌​​‌‌​​​‌​​‌​‌‌‌‌​​‌‌​‌‌​​​‌‌​​​​⁠

Q61.

Why does the addition algorithm work? The chapter justifies it by grouping numbers into units, tens, hundreds, etc. What is the key idea?

  1. We add each group separately and carry over formed tens to the next group

  2. We always add from left to right

  3. We ignore carries to simplify

  4. We convert numbers to dots and count

Show answer

Answer: A — We add each group separately and carry over formed tens to the next group

The chapter says: 'The key idea is that we are grouping each number into units, tens, hundreds, ... and adding each group separately. Whenever a smaller group, say units, generates a large group of ten, we carry over the newly formed ten to the tens group.'⁠​‌​​​‌​‌​‌​‌​​‌‌​‌‌‌‌‌​​​‌‌‌​​​‌​​‌​‌‌‌‌​‌‌​‌‌‌​​‌‌​​​‌‌​‌‌​​‌​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​‌‌​‌‌​‌​‌‌​​​​‌​‌‌‌​‌​​​‌‌​‌​​​​‌‌‌​​‌‌​​‌​‌‌​‌​‌‌‌​​​​​‌‌​​​​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​​‌‌​​‌​​​‌​‌‌​‌​​‌‌‌​​‌​​‌​‌‌‌‌​​‌‌​​​‌​​‌‌​​​‌​​‌​‌‌‌‌​​‌‌​‌‌​​​‌‌​​​‌⁠

Q62.

What happens if we do not include the fifth step in the addition algorithm (the final carry step)?

  1. The algorithm fails to work correctly when there is a final carry

  2. The algorithm works correctly for all cases

  3. The algorithm becomes faster

  4. The algorithm produces the wrong answer for all cases

Show answer

Answer: A — The algorithm fails to work correctly when there is a final carry

The chapter's exercise asks this. Without the final carry step, if the leftmost column sum produces a carry, that carry is lost, so the result is incorrect for those cases.⁠​‌​​​‌​‌​‌​‌​​‌‌​‌‌‌‌‌​​​‌‌‌​​​‌​​‌​‌‌‌‌​‌‌​‌‌‌​​‌‌​​​‌‌​‌‌​​‌​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​‌‌​‌‌​‌​‌‌​​​​‌​‌‌‌​‌​​​‌‌​‌​​​​‌‌‌​​‌‌​​‌​‌‌​‌​‌‌‌​​​​​‌‌​​​​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​​‌‌​​‌​​​‌​‌‌​‌​​‌‌‌​​‌​​‌​‌‌‌‌​​‌‌​​​‌​​‌‌​​​‌​​‌​‌‌‌‌​​‌‌​‌‌​​​‌‌​​‌​⁠

Q63.

Which of the following is an example of a data structure mentioned in the chapter?

  1. A list

  2. A number

  3. A carry

  4. A digit

Show answer

Answer: A — A list

The chapter explicitly says: 'A list is an example of a data structure.'⁠​‌​​​‌​‌​‌​‌​​‌‌​‌‌‌‌‌​​​‌‌‌​​​‌​​‌​‌‌‌‌​‌‌​‌‌‌​​‌‌​​​‌‌​‌‌​​‌​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​‌‌​‌‌​‌​‌‌​​​​‌​‌‌‌​‌​​​‌‌​‌​​​​‌‌‌​​‌‌​​‌​‌‌​‌​‌‌‌​​​​​‌‌​​​​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​​‌‌​​‌​​​‌​‌‌​‌​​‌‌‌​​‌​​‌​‌‌‌‌​​‌‌​​​‌​​‌‌​​​‌​​‌​‌‌‌‌​​‌‌​‌‌​​​‌‌​​‌‌⁠

Q64.

What does the chapter say about the efficiency of the first gcd algorithm that scans from 1 to min(m,n)?

  1. The work grows by a factor of 10 when the smaller number gains a digit

  2. The work grows linearly with the number of digits

  3. The work is independent of the size of the numbers

  4. The work decreases as numbers get larger

Show answer

Answer: A — The work grows by a factor of 10 when the smaller number gains a digit

The chapter says: 'If the smaller number goes from 3 digits to 4 digits, we have to scan 10 times as many values to find the common divisors.'⁠​‌​​​‌​‌​‌​‌​​‌‌​‌‌‌‌‌​​​‌‌‌​​​‌​​‌​‌‌‌‌​‌‌​‌‌‌​​‌‌​​​‌‌​‌‌​​‌​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​‌‌​‌‌​‌​‌‌​​​​‌​‌‌‌​‌​​​‌‌​‌​​​​‌‌‌​​‌‌​​‌​‌‌​‌​‌‌‌​​​​​‌‌​​​​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​​‌‌​​‌​​​‌​‌‌​‌​​‌‌‌​​‌​​‌​‌‌‌‌​​‌‌​​​‌​​‌‌​​​‌​​‌​‌‌‌‌​​‌‌​‌‌​​​‌‌​‌​​⁠

Q65.

In the chapter, what is the name of the Persian mathematician who helped spread Indian arithmetic and whose name is the origin of the word 'algorithm'?

  1. Al-Khwarizmi

  2. Aryabhata

  3. Euclid

  4. Brahmagupta

Show answer

Answer: A — Al-Khwarizmi

The chapter's 'A Pinch of History' section discusses Al-Khwarizmi and the origin of the word 'algorithm'.⁠​‌​​​‌​‌​‌​‌​​‌‌​‌‌‌‌‌​​​‌‌‌​​​‌​​‌​‌‌‌‌​‌‌​‌‌‌​​‌‌​​​‌‌​‌‌​​‌​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​‌‌​‌‌​‌​‌‌​​​​‌​‌‌‌​‌​​​‌‌​‌​​​​‌‌‌​​‌‌​​‌​‌‌​‌​‌‌‌​​​​​‌‌​​​​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​​‌‌​​‌​​​‌​‌‌​‌​​‌‌‌​​‌​​‌​‌‌‌‌​​‌‌​​​‌​​‌‌​​​‌​​‌​‌‌‌‌​​‌‌​‌‌​​​‌‌​‌​‌⁠

Q66.

What is the gcd of 375 and 825 using Aryabhata's division algorithm, as shown in the chapter?

  1. 75

  2. 25

  3. 150

  4. 375

Show answer

Answer: A — 75

The chapter illustrates Aryabhata's method for gcd(825, 375) and obtains 75 as the gcd.⁠​‌​​​‌​‌​‌​‌​​‌‌​‌‌‌‌‌​​​‌‌‌​​​‌​​‌​‌‌‌‌​‌‌​‌‌‌​​‌‌​​​‌‌​‌‌​​‌​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​‌‌​‌‌​‌​‌‌​​​​‌​‌‌‌​‌​​​‌‌​‌​​​​‌‌‌​​‌‌​​‌​‌‌​‌​‌‌‌​​​​​‌‌​​​​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​​‌‌​​‌​​​‌​‌‌​‌​​‌‌‌​​‌​​‌​‌‌‌‌​​‌‌​​​‌​​‌‌​​​‌​​‌​‌‌‌‌​​‌‌​‌‌​​​‌‌​‌‌​⁠

Q67.

In Euclid's algorithm, what is the first step if m < n?

  1. Reverse the numbers and compute gcd(n, m)

  2. Subtract m from n

  3. Add m and n

  4. Report m as the gcd

Show answer

Answer: A — Reverse the numbers and compute gcd(n, m)

The algorithm states: 'If m < n, reverse the numbers and compute gcd(n,m).'⁠​‌​​​‌​‌​‌​‌​​‌‌​‌‌‌‌‌​​​‌‌‌​​​‌​​‌​‌‌‌‌​‌‌​‌‌‌​​‌‌​​​‌‌​‌‌​​‌​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​‌‌​‌‌​‌​‌‌​​​​‌​‌‌‌​‌​​​‌‌​‌​​​​‌‌‌​​‌‌​​‌​‌‌​‌​‌‌‌​​​​​‌‌​​​​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​​‌‌​​‌​​​‌​‌‌​‌​​‌‌‌​​‌​​‌​‌‌‌‌​​‌‌​​​‌​​‌‌​​​‌​​‌​‌‌‌‌​​‌‌​‌‌​​​‌‌​‌‌‌⁠

Q68.

What is the stopping condition in Euclid's algorithm for gcd?

  1. When n = 0, report m as the answer

  2. When m = n, report m

  3. When m > n, swap them

  4. When both numbers are prime

Show answer

Answer: A — When n = 0, report m as the answer

Step 2 of Euclid's algorithm: 'If n = 0, report the answer as m.'⁠​‌​​​‌​‌​‌​‌​​‌‌​‌‌‌‌‌​​​‌‌‌​​​‌​​‌​‌‌‌‌​‌‌​‌‌‌​​‌‌​​​‌‌​‌‌​​‌​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​‌‌​‌‌​‌​‌‌​​​​‌​‌‌‌​‌​​​‌‌​‌​​​​‌‌‌​​‌‌​​‌​‌‌​‌​‌‌‌​​​​​‌‌​​​​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​​‌‌​​‌​​​‌​‌‌​‌​​‌‌‌​​‌​​‌​‌‌‌‌​​‌‌​​​‌​​‌‌​​​‌​​‌​‌‌‌‌​​‌‌​‌‌​​​‌‌‌​​​⁠

Q69.

What is the value of 33 mod 7, as given in the chapter?

  1. 5

  2. 2

  3. 4

  4. 6

Show answer

Answer: A — 5

The chapter says: '33 mod 7 is 5.'⁠​‌​​​‌​‌​‌​‌​​‌‌​‌‌‌‌‌​​​‌‌‌​​​‌​​‌​‌‌‌‌​‌‌​‌‌‌​​‌‌​​​‌‌​‌‌​​‌​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​‌‌​‌‌​‌​‌‌​​​​‌​‌‌‌​‌​​​‌‌​‌​​​​‌‌‌​​‌‌​​‌​‌‌​‌​‌‌‌​​​​​‌‌​​​​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​​‌‌​​‌​​​‌​‌‌​‌​​‌‌‌​​‌​​‌​‌‌‌‌​​‌‌​​​‌​​‌‌​​​‌​​‌​‌‌‌‌​​‌‌​‌‌​​​‌‌‌​​‌⁠

Q70.

Why does the chapter say that adding individual digits from right to left results in the sum of the two numbers?

  1. Because we are grouping numbers into units, tens, hundreds and adding each group separately, carrying over tens

  2. Because addition is commutative

  3. Because the Indian number system uses base 10

  4. Because the carry is always 1

Show answer

Answer: A — Because we are grouping numbers into units, tens, hundreds and adding each group separately, carrying over tens

The chapter justifies the addition algorithm by explaining that we group numbers into place values and add each group, carrying over formed tens to the next group.⁠​‌​​​‌​‌​‌​‌​​‌‌​‌‌‌‌‌​​​‌‌‌​​​‌​​‌​‌‌‌‌​‌‌​‌‌‌​​‌‌​​​‌‌​‌‌​​‌​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​‌‌​‌‌​‌​‌‌​​​​‌​‌‌‌​‌​​​‌‌​‌​​​​‌‌‌​​‌‌​​‌​‌‌​‌​‌‌‌​​​​​‌‌​​​​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​​‌‌​​‌​​​‌​‌‌​‌​​‌‌‌​​‌​​‌​‌‌‌‌​​‌‌​​​‌​​‌‌​​​‌​​‌​‌‌‌‌​​‌‌​‌‌‌​​‌‌​​​​⁠

Q71.

What does the chapter suggest about the number of reductions in Euclid's subtraction algorithm for gcd(99,2)?

  1. It requires about 49 reductions

  2. It requires 2 reductions

  3. It requires 1 reduction

  4. It requires 10 reductions

Show answer

Answer: A — It requires about 49 reductions

The chapter states: 'Consider gcd(99, 2). This will reduce successively to ... giving us the answer 1. In general, if we start with an odd number 2k+1, gcd(2k+1, 2) will require about k reductions.' For 99, k=49, so about 49 reductions.⁠​‌​​​‌​‌​‌​‌​​‌‌​‌‌‌‌‌​​​‌‌‌​​​‌​​‌​‌‌‌‌​‌‌​‌‌‌​​‌‌​​​‌‌​‌‌​​‌​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​‌‌​‌‌​‌​‌‌​​​​‌​‌‌‌​‌​​​‌‌​‌​​​​‌‌‌​​‌‌​​‌​‌‌​‌​‌‌‌​​​​​‌‌​​​​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​​‌‌​​‌​​​‌​‌‌​‌​​‌‌‌​​‌​​‌​‌‌‌‌​​‌‌​​​‌​​‌‌​​​‌​​‌​‌‌‌‌​​‌‌​‌‌‌​​‌‌​​​‌⁠

Q72.

In the chapter, what is the algorithm prime(n) intended to do?

  1. Check if n is a prime number

  2. Find the nth prime number

  3. List all prime numbers up to n

  4. Find the prime factorization of n

Show answer

Answer: A — Check if n is a prime number

The exercise asks: 'Write an algorithm prime(n) to check if n is prime.'⁠​‌​​​‌​‌​‌​‌​​‌‌​‌‌‌‌‌​​​‌‌‌​​​‌​​‌​‌‌‌‌​‌‌​‌‌‌​​‌‌​​​‌‌​‌‌​​‌​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​‌‌​‌‌​‌​‌‌​​​​‌​‌‌‌​‌​​​‌‌​‌​​​​‌‌‌​​‌‌​​‌​‌‌​‌​‌‌‌​​​​​‌‌​​​​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​​‌‌​​‌​​​‌​‌‌​‌​​‌‌‌​​‌​​‌​‌‌‌‌​​‌‌​​​‌​​‌‌​​​‌​​‌​‌‌‌‌​​‌‌​‌‌‌​​‌‌​​‌​⁠

Q73.

What is the prime factorization of 180, as given in the chapter?

  1. 2^2 × 3^2 × 5^1

  2. 2^3 × 3^2 × 5^0

  3. 2^1 × 3^3 × 5^1

  4. 2^2 × 3^1 × 5^2

Show answer

Answer: A — 2^2 × 3^2 × 5^1

The chapter states: 'The prime factorisation of 180 is 2^2 × 3^2 × 5^1.'⁠​‌​​​‌​‌​‌​‌​​‌‌​‌‌‌‌‌​​​‌‌‌​​​‌​​‌​‌‌‌‌​‌‌​‌‌‌​​‌‌​​​‌‌​‌‌​​‌​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​‌‌​‌‌​‌​‌‌​​​​‌​‌‌‌​‌​​​‌‌​‌​​​​‌‌‌​​‌‌​​‌​‌‌​‌​‌‌‌​​​​​‌‌​​​​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​​‌‌​​‌​​​‌​‌‌​‌​​‌‌‌​​‌​​‌​‌‌‌‌​​‌‌​​​‌​​‌‌​​​‌​​‌​‌‌‌‌​​‌‌​‌‌‌​​‌‌​​‌‌⁠