krit.club logo

The World of Algorithms

Each subtopic includes About section, revision page link, 10 preview questions, and practice CTAs.

Adding Numbers

Subtopic

Adding Numbers under The World of Algorithms for Grade 9 CBSE.

About Topic & Revision

Preview questions (no answers)

  1. 1.

    What happens to the number of columns you need to add if you change a 33-digit number addition to a 55-digit number addition?

    A.

    The number of columns increases by 22.

    B.

    The number of columns stays the same.

    C.

    The number of columns doubles.

    D.

    The number of columns increases by 100100.

  2. 2.

    If counting dots for the sum 15+1515 + 15 takes 3030 seconds (at 11 second per dot), and the column algorithm takes 44 seconds per column, which method is faster?

    A.

    Counting dots

    B.

    The column algorithm

    C.

    They take the same amount of time

    D.

    It depends on the carry

  3. 3.

    If you have a group of 1010 tens, what does the addition algorithm instruct you to do in terms of carrying?

    A.

    Carry 11 to the hundreds place.

    B.

    Carry 1010 to the hundreds place.

    C.

    Write 1010 in the tens place.

    D.

    Set the carry to 00.

Download the worksheet for The World of Algorithms - Adding Numbers to practice offline. It includes additional chapter-level practice questions.

Adding Numbers Digit by Digit

Subtopic

Adding Numbers Digit by Digit under The World of Algorithms for Grade 9 CBSE.

About Topic & Revision

Preview questions (no answers)

  1. 1.

    When following the addition algorithm for the problem 642+258642 + 258, what is the specific value of the 'carry' that is set after calculating the sum in the tens column (the middle digits)?

    A.

    00

    B.

    11

    C.

    1010

    D.

    55

  2. 2.

    Suppose you are using the step-by-step algorithm to add two numbers, AA and BB. In Step 2, you calculate the sum of the rightmost digits to be 1313. According to the algorithm, which digit should be written directly below those two digits, and what value should the 'carry' be set to for the next step?

    A.

    Write 11, set carry to 33

    B.

    Write 33, set carry to 00

    C.

    Write 33, set carry to 11

    D.

    Write 1313, set carry to 00

  3. 3.

    How many columns will be processed in the addition of 456+78456 + 78?

    A.

    22

    B.

    33

    C.

    44

    D.

    55

Download the worksheet for The World of Algorithms - Adding Numbers Digit by Digit to practice offline. It includes additional chapter-level practice questions.

Greatest Common Divisor

Subtopic

Greatest Common Divisor under The World of Algorithms for Grade 9 CBSE.

About Topic & Revision

Preview questions (no answers)

  1. 1.

    The subtraction algorithm is applied to find gcd(13,5)\text{gcd}(13, 5). Following the rule (m,n)→(n,m−n)(m, n) \rightarrow (n, m-n) and reversing if m<nm < n, which sequence of pairs is correct?

    A.

    (13,5)→(8,5)→(5,3)→(3,2)→(2,1)→(1,1)→(1,0)(13, 5) \rightarrow (8, 5) \rightarrow (5, 3) \rightarrow (3, 2) \rightarrow (2, 1) \rightarrow (1, 1) \rightarrow (1, 0)

    B.

    (13,5)→(5,8)→(8,3)→(3,5)→(5,2)(13, 5) \rightarrow (5, 8) \rightarrow (8, 3) \rightarrow (3, 5) \rightarrow (5, 2)

    C.

    (13,5)→(13,8)→(13,3)→(13,10)(13, 5) \rightarrow (13, 8) \rightarrow (13, 3) \rightarrow (13, 10)

    D.

    (13,5)→(5,3)→(3,2)→(2,0)(13, 5) \rightarrow (5, 3) \rightarrow (3, 2) \rightarrow (2, 0)

  2. 2.

    A table displays the trace of an algorithm to find divisors of n=16n = 16 by checking jj from 11 to 1616:

    jjDivides 1616?Action
    11YesAdd to list
    22YesAdd to list
    33NoIgnore
    44YesAdd to list

    If this process continues until j=16j = 16, how many elements will be in the final list-of-divisors?

    A.

    33

    B.

    44

    C.

    55

    D.

    66

  3. 3.

    In the context of algorithm efficiency, why is the range for checking common divisors of mm and nn restricted to 11 to min(m,n)\text{min}(m, n) instead of 11 to max(m,n)\text{max}(m, n)?

    A.

    Common divisors must be prime

    B.

    A divisor of a number cannot be larger than the number itself

    C.

    To ensure the list is always in decreasing order

    D.

    The gcd\text{gcd} is always equal to the minimum of the two numbers

Download the worksheet for The World of Algorithms - Greatest Common Divisor to practice offline. It includes additional chapter-level practice questions.

Computing the Divisors of a Number

Subtopic

Computing the Divisors of a Number under The World of Algorithms for Grade 9 CBSE.

About Topic & Revision

Preview questions (no answers)

  1. 1.

    Consider the execution of the algorithm to find the divisors of n=42n = 42. A student records the 'list-of-divisors' at various stages. Which number will be added to the list immediately after the number 77 is added?

    A.

    88

    B.

    1414

    C.

    2121

    D.

    1010

  2. 2.

    If the divisor algorithm is applied to the number n=12n = 12, which of the following diagrams correctly represents the 'list-of-divisors' state immediately after the step where j=5j = 5 is completed?

    A.

    [1,2,3,4,5][1, 2, 3, 4, 5]

    B.

    [1,2,3,4][1, 2, 3, 4]

    C.

    [1,2,3,4,6][1, 2, 3, 4, 6]

    D.

    [1,2,3][1, 2, 3]

  3. 3.

    A student is following the algorithm to find the divisors of n=40n = 40. While checking the numbers in the sequence 1,2,3,…,401, 2, 3, \dots, 40, which of the following is the first value of jj that the algorithm will check but not add to the 'list-of-divisors'?

    A.

    j=1j = 1

    B.

    j=2j = 2

    C.

    j=3j = 3

    D.

    j=4j = 4

Download the worksheet for The World of Algorithms - Computing the Divisors of a Number to practice offline. It includes additional chapter-level practice questions.

Finding the Greatest Common Divisor

Subtopic

Finding the Greatest Common Divisor under The World of Algorithms for Grade 9 CBSE.

About Topic & Revision

Preview questions (no answers)

  1. 1.

    Suppose you are comparing two lists of divisors to find common elements. For any two positive integers aa and bb, which number is guaranteed to be the first element added to the list of common divisors?

    A.

    00

    B.

    11

    C.

    The smaller of aa or bb

    D.

    The sum of aa and bb

  2. 2.

    When computing the GCD of two large numbers using the systematic list-comparison method, we first obtain two lists of divisors sorted in increasing order. What is the standard next step to determine the GCD?

    A.

    Multiply all numbers that appear in both lists.

    B.

    Identify the largest value that appears in both lists.

    C.

    Find the smallest value that appears in both lists.

    D.

    Divide the rightmost element of the first list by the rightmost element of the second list.

  3. 3.

    A student is finding the Greatest Common Divisor (GCD) of m=48m = 48 and n=72n = 72 by listing their divisors. If the list of common divisors is [1,2,3,4,6,8,12,24][1, 2, 3, 4, 6, 8, 12, 24], which element of this list represents the GCD?

    A.

    11

    B.

    1212

    C.

    2424

    D.

    88

Download the worksheet for The World of Algorithms - Finding the Greatest Common Divisor to practice offline. It includes additional chapter-level practice questions.

First Algorithm for gcd

Subtopic

First Algorithm for gcd under The World of Algorithms for Grade 9 CBSE.

About Topic & Revision

Preview questions (no answers)

  1. 1.

    Why is it necessary to find the 'rightmost element' of the 'common-divisors' list to identify the greatest common divisor in this algorithm?

    A.

    Because the list is built by checking divisors in decreasing order.

    B.

    Because the list is built by checking divisors in increasing order, placing the largest at the end.

    C.

    Because the rightmost element is always a prime number.

    D.

    Because the algorithm randomly shuffles the list before reporting.

  2. 2.

    In the First Algorithm to find the gcdgcd of two numbers, we check if each element xx from 'divisors-of-m' exists in 'divisors-of-n'. If m=12m = 12 and n=15n = 15, which of the following divisors of 1212 will fail this check and NOT be added to the 'common-divisors' list?

    A.

    1

    B.

    3

    C.

    4

    D.

    The algorithm does not perform this check.

  3. 3.

    If the First Algorithm is used to find gcd(16,24)gcd(16, 24), and the final 'common-divisors' list is identified as [1,2,4,8][1, 2, 4, 8], which specific element is reported as the final answer in Step 5?

    A.

    1

    B.

    2

    C.

    4

    D.

    8

Download the worksheet for The World of Algorithms - First Algorithm for gcd to practice offline. It includes additional chapter-level practice questions.

Data Structures

Subtopic

Data Structures under The World of Algorithms for Grade 9 CBSE.

About Topic & Revision

Preview questions (no answers)

  1. 1.

    In a data structure representing a sorted list of common divisors [1,2,4,8][1, 2, 4, 8], which position (or index) holds the Greatest Common Divisor (GCD)?

    A.

    The leftmost position

    B.

    The second position from the left

    C.

    The middle position

    D.

    The rightmost position

  2. 2.

    Consider an algorithm that tracks the steps of a search. It uses a data structure called visited_nodes which starts as an empty list []. In each step, if it visits a new number, it adds it to the end of the list. After visiting the numbers 5,12,5, 12, and 77 in that order, what is the state of visited_nodes?

    A.

    [5, 7, 12]

    B.

    [12, 7, 5]

    C.

    [5, 12, 7]

    D.

    [7, 12, 5]

  3. 3.

    An algorithm processes a list of integers L = [15, 22, 9, 31, 18] and creates a new data structure Even_List containing only the even numbers from L, maintaining their original relative order. What are the contents of Even_List?

    A.

    [15, 9, 31]

    B.

    [22, 18]

    C.

    [18, 22]

    D.

    [22, 9, 18]

Download the worksheet for The World of Algorithms - Data Structures to practice offline. It includes additional chapter-level practice questions.

Improving the Algorithm

Subtopic

Improving the Algorithm under The World of Algorithms for Grade 9 CBSE.

About Topic & Revision

Preview questions (no answers)

  1. 1.

    Consider an algorithm that scans for the greatest common divisor of m=18m=18 and n=27n=27 by checking kk from 11 to min⁡(m,n)\min(m, n). For which of the following values of kk will the 'is-common-divisor' check be true and cause an update to the most-recent-common-divisor variable?

    A.

    22

    B.

    66

    C.

    99

    D.

    1818

  2. 2.

    In the optimized algorithm for GCD, we maintain only the most-recent-common-divisor instead of a full list of common divisors. Which statement best explains why earlier common divisors like 22 can be safely overwritten when a later common divisor like 66 is found?

    A.

    Common divisors must always be prime numbers.

    B.

    The algorithm only needs to find the largest common divisor.

    C.

    Smaller divisors are automatically deleted by the computer memory.

    D.

    The variable can only store even numbers.

  3. 3.

    An algorithm is designed to find common divisors of two numbers xx and yy. If the algorithm checks every integer from 11 to xx and then every integer from 11 to yy separately, it performs x+yx + y checks. If we optimize this to a single scan up to min⁡(x,y)\min(x, y), how many checks are saved when x=150x = 150 and y=400y = 400?

    A.

    150150

    B.

    250250

    C.

    400400

    D.

    550550

Download the worksheet for The World of Algorithms - Improving the Algorithm to practice offline. It includes additional chapter-level practice questions.

Analysing these Algorithms

Subtopic

Analysing these Algorithms under The World of Algorithms for Grade 9 CBSE.

About Topic & Revision

Preview questions (no answers)

  1. 1.

    The table below compares the amount of work done by two different algorithms, AA and BB, for numbers with different values. Based on the growth shown, which statement accurately describes the workload of Algorithm BB?

    A.

    The work is proportional to the number of digits.

    B.

    The work is proportional to the value of the number.

    C.

    The work is constant regardless of the value.

    D.

    The work doubles for every additional digit.

  2. 2.

    A specific algorithm for processing a number takes 55 units of work for every digit in the number. If we replace a 22-digit number with a 1010-digit number, how many times does the total workload increase?

    A.

    5 times

    B.

    8 times

    C.

    10 times

    D.

    100 times

  3. 3.

    Which mathematical operation is used in the 'reduction step' of Āryabhaṭa’s improved GCD algorithm to make it more efficient than Euclid's subtraction?

    A.

    Addition

    B.

    Multiplication

    C.

    Remainder (Modulo)

    D.

    Square Root

Download the worksheet for The World of Algorithms - Analysing these Algorithms to practice offline. It includes additional chapter-level practice questions.

Euclid's Algorithm for gcd

Subtopic

Euclid's Algorithm for gcd under The World of Algorithms for Grade 9 CBSE.

About Topic & Revision

Preview questions (no answers)

  1. 1.

    A student is finding the greatest common divisor of two numbers mm and nn. If m<nm < n, what is the first step they should perform to follow the standard Euclid-style algorithm steps precisely?

    A.

    Subtract mm from nn

    B.

    Reverse the numbers to compute gcd(n,m)\text{gcd}(n, m)

    C.

    Report mm as the answer

    D.

    Divide nn by mm

  2. 2.

    In the subtraction-based algorithm for gcd(m,n)\text{gcd}(m, n), if the algorithm starts with m=21m = 21 and n=21n = 21, which of the following is the immediate next reduction state according to the step 'Otherwise, reduce the problem to compute gcd(n,m−n)\text{gcd}(n, m - n)'?

    A.

    gcd(0,21)\text{gcd}(0, 21)

    B.

    gcd(21,0)\text{gcd}(21, 0)

    C.

    gcd(1,21)\text{gcd}(1, 21)

    D.

    gcd(21,1)\text{gcd}(21, 1)

  3. 3.

    When comparing two algorithms for finding the greatest common divisor, if the number of steps in Algorithm A is proportional to the values of the numbers, and the number of steps in Algorithm B is proportional to the number of digits in the numbers, which statement is true for very large inputs?

    A.

    Algorithm A is faster.

    B.

    Algorithm B is faster.

    C.

    Both algorithms take the same number of steps.

    D.

    Algorithm B requires more memory.

Download the worksheet for The World of Algorithms - Euclid's Algorithm for gcd to practice offline. It includes additional chapter-level practice questions.