Career LauncherStudent portal

Chapter test · Grade 9 · Mathematics

The World of Algorithms

Ganita Manjari Part-II · Ch 11

  • 20 questions
  • 40 minutes
  • 1 mark each
  • Nothing taken off for a wrong answer
40 minutes20 questions
Question 1of 20

In this chapter, what is an algorithm?

Question 2of 20

We move from adding two 3-digit numbers to adding two 5-digit numbers. How does the work change for counting dots and for the digit-by-digit algorithm?

Question 3of 20

The algorithm to find the divisors of \(n\) starts with an empty list-of-divisors and checks each \(j = 1, 2, 3, \ldots, n\). For \(n = 18\), what is the list-of-divisors just after \(j = 8\) has been checked?

Question 4of 20

In the first algorithm for \(\gcd(m, n)\), the answer is reported as the rightmost element of the list common-divisors. Why is the rightmost element the greatest common divisor?

Question 5of 20

The first gcd algorithm checks 1 to \(m\) for the divisors of \(m\), and then 1 to \(n\) for the divisors of \(n\). An improved version checks each \(j\) from 1 to \(\min(m, n)\) to see if \(j\) divides both. For \(m = 36\) and \(n = 90\), how many numbers does each version check?

Question 6of 20

To find \(\gcd(12, 18)\), most-recent-common-divisor is set to 1, and then each \(k\) from 2 to \(\min(12, 18)\) is checked. How many times is most-recent-common-divisor updated during the scan?

Question 7of 20

Using Euclid’s subtraction algorithm, the first reduction of \(\gcd(91, 35)\) gives which problem?

Question 8of 20

According to the chapter, the number of reductions needed in Āryabhaṭa’s division algorithm is proportional to:

Question 9of 20

Euclid’s subtraction algorithm (Step 1: if \(m < n\), reverse; Step 2: if \(n = 0\), report \(m\); Step 3: reduce \(\gcd(m, n)\) to \(\gcd(n, m - n)\)) is used to find \(\gcd(28, 12)\). How many times is Step 3 used before the answer is reported?

Question 10of 20

Āryabhaṭa’s division algorithm reduces \(\gcd(m, n)\) to \(\gcd(n, m \text{ mod } n)\), where \(m \ge n\). Which fact justifies this step?

Question 11of 20

Assertion (A): When two numbers are added column by column, the carry passed to the next column is never more than 1.

Reason (R): In any column, the sum of two digits and a carry of at most 1 is at most \(9 + 9 + 1 = 19\).

Question 12of 20

Assertion (A): Euclid’s subtraction algorithm finds \(\gcd(99, 2)\) after only two reductions.

Reason (R): If \(d\) divides both \(m\) and \(n\), then \(d\) also divides \(m - n\).

Question 13of 20

Assertion (A): The word ‘algorithm’ traces back to Algoritmi, the Latin form of Al-Khwārizmī’s name.

Reason (R): Āryabhaṭa’s Āryabhaṭīya (499 CE) contains the ‘long division’ method for finding the gcd.

Question 14of 20
  1. I. I. The addition algorithm assumes that we know how to add single-digit numbers without counting them out.
  2. II. II. Adding digit by digit works because each number is grouped into units, tens, hundreds, … and each group is added separately.
  3. III. III. Once an algorithm gives the correct answer for one example, we need not justify that it is correct.

Which of the statements above about the addition algorithm is/are correct?

Question 15of 20
  1. I. I. Even in the version without lists, we examine all numbers from 1 to \(\min(m, n)\).
  2. II. II. Each refinement changes what is being computed, so a refined algorithm may give a different gcd from the first one.
  3. III. III. If the smaller number goes from 3 digits to 4 digits, about 10 times as many values must be scanned.

Which of the statements above about the scanning algorithms for gcd is/are correct?

Question 16of 20
  1. I. I. Al-Khwārizmī learnt Sanskrit and, around 820 CE, wrote a treatise on the Indian place value system and the Indian procedures for the four fundamental operations.
  2. II. II. Al-Khwārizmī’s original treatise survives, but its 12th-century Latin translation has been lost.

Which of the statements above about Al-Khwārizmī is/are correct?

Question 17of 20

Match each expression in List I with its value in List II:

List IList II
(i) \(17 \text{ mod } 5\)(P) 5
(ii) \(33 \text{ mod } 7\)(Q) 12
(iii) \(99 \text{ mod } 2\)(R) 2
(iv) \(60 \text{ mod } 16\)(S) 1
Question 18of 20

Match each part of the divisors algorithm in List I with its description in List II:

List IList II
(i) The list-of-divisors kept while the algorithm runs(P) Executing the algorithm
(ii) Add \(j\) to the list-of-divisors only if \(j\) divides \(n\)(Q) A data structure
(iii) For each \(j\) in \(1, 2, \ldots, n\), check if \(j\) divides \(n\)(R) A conditional step
(iv) Running through an algorithm step by step(S) A step carried out a number of times
Question 19of 20

Kabir has to add 3347 and 2729. Counting dots, he can count one dot per second. Column by column, he takes 15 seconds to add two digits with a carry. About how long would each method take him?

Question 20of 20

A tailor has two ribbons, 84 cm and 60 cm long. She wants to cut both into pieces of the same length, as long as possible, with nothing left over. She uses Āryabhaṭa’s division algorithm, reducing \(\gcd(m, n)\) to \(\gcd(n, m \text{ mod } n)\). What length does she get, and after how many reductions?

Your marks and every answer show as soon as you hand in.

Submit your test?

    Once you submit, you can’t change your answers. Your marks show straight away.