CIL MT · Computer Science

Algorithms Previous Year Questions

16 Algorithms (Computer Science) questions asked in CIL MT previous year papers, each with the correct answer and explanation. Read them free on UTpaper, or attempt the full papers as timed online tests.

  • 16 questions
  • Official answer key
  • Free

Other Computer Science topics

Q1CIL MT Systems, 24 Aug 2026 (3:00 PM, CBT-26)
During a content search operation in associative memory, which register temporarily holds the key used to compare against all stored memory words simultaneously?
  1. AData Register
  2. BProgram Counter
  3. CArgument Register
  4. DAccumulator
Show answerHide answer

Correct answer: (C) Argument Register

Q2CIL MT Systems, 24 Aug 2026 (3:00 PM, CBT-26)
Which of the following is true about Selection Sort?
  1. AIt is a stable sorting algorithm.
  2. BIt has O(n²) time complexity in all cases.
  3. CIt performs well on large datasets.
  4. DIt is an adaptive sorting algorithm.
Show answerHide answer

Correct answer: (B) It has O(n²) time complexity in all cases.

Q3CIL MT Systems, 24 Aug 2026 (3:00 PM, CBT-26)
Which statement best describes both an advantage and a disadvantage of Insertion Sort?
  1. AFastest sorting algorithm for all inputs but requires excessive auxiliary space, making it unsuitable for memory-limited systems.
  2. BEfficient for nearly sorted data due to adaptability but impractical for large datasets due to O(n2) complexity.
  3. CPerforms optimally for any input type but lacks stability, failing to preserve the relative order of identical elements.
  4. DGuarantees logarithmic time for sorted inputs but remains inefficient for small datasets as its complexity stays O(n2).
Show answerHide answer

Correct answer: (B) Efficient for nearly sorted data due to adaptability but impractical for large datasets due to O(n2) complexity.

Q4CIL MT Systems, 24 Aug 2026 (3:00 PM, CBT-26)
Which notation represents the worst-case time complexity?
  1. ABig Theta (Θ)
  2. BBig O (O)
  3. CBig Omega (Ω)
  4. DSmall o (o)
Show answerHide answer

Correct answer: (B) Big O (O)

Q5CIL MT Systems, 24 Aug 2026 (3:00 PM, CBT-26)
What is the space complexity of an algorithm that uses only a constant amount of memory regardless of input size?
  1. AO(log n)
  2. BO(n2)
  3. CO(n)
  4. DO(1)
Show answerHide answer

Correct answer: (D) O(1)

Q6CIL MT Systems, 24 Aug 2026 (3:00 PM, CBT-26)
A logistics company manages a tracking system where each package ID is stored in a chronological list as the packages are processed. An engineer suggests that, to locate a particular package's ID, the system should check each ID sequentially from the start until the target is found or the list ends. Which statement most accurately reflects the main drawback of this approach if the company expects the number of packages to increase dramatically over time?
  1. AFinding a package ID will become faster as the number of packages increases.
  2. BSearch time grows linearly with the number of packages.
  3. CThe time to search for any package ID will stay about the same, regardless of list size.
  4. DThe memory needed to store package IDs will remain constant even as the list grows.
Show answerHide answer

Correct answer: (B) Search time grows linearly with the number of packages.

Q7CIL MT Systems, 24 Aug 2026 (3:00 PM, CBT-26)
A list of n-1 integers is provided, where each integer is in the range of 1 to n, and there are no duplicates. One integer is missing from the list. What is the time and space complexity if we apply a brute force algorithm to find the missing integer?
  1. AO(n) time, O(n) space
  2. BO(1) time, O(1) space
  3. CO(n log n) time, O(1) space
  4. DO(n2) time, O(1) space
Show answerHide answer

Correct answer: (D) O(n2) time, O(1) space

Q8CIL MT Systems, 26 Mar 2017 (12:30 PM)
Which of the following is the time complexity of dynamic programming algorithm to compute the Binomial coefficient nCk?
  1. AΘ(nk)
  2. BΘ(kⁿ)
  3. CΘ(nᵏ)
  4. DΘ(n + k)
Show answerHide answer

Correct answer: (A) Θ(nk)

Q9CIL MT Systems, 26 Mar 2017 (12:30 PM)
Consider the list of numbers 1, 2, 3, …, 1000 is stored in a[0..999]. What will be the total number of comparisons to search x = 501 using the following binary search() function? int binary_search(int a[], int n, int x){ int low=0, high=n-1; while(low <= high){ int m = (low + high) / 2; if(x > a[m]) low = m + 1; else if(x < a[m]) high = m − 1; else return m; } return -1; }
  1. A2
  2. B15
  3. C17
  4. D1
Show answerHide answer

Correct answer: (C) 17

Q10CIL MT Systems, 26 Mar 2017 (12:30 PM)
In order to sort list of numbers using radix sort algorithm, we need to get the individual digits of each number 'n' of the list. If n is a positive decimal integer, then iᵗʰ digit, from right, of the number n is:
  1. A⌊n / 10^(i−1)⌋ % 10
  2. B⌈n / 10^i⌉ % 10
  3. C⌈n / 10^(i−1)⌉ % 10
  4. D⌊n / 10^i⌋ % 10
Show answerHide answer

Correct answer: (A) ⌊n / 10^(i−1)⌋ % 10

Q11CIL MT Systems, 26 Mar 2017 (12:30 PM)
Which of the following is the every-case time complexity of dynamic programming algorithm for "traversing salesperson" problem to traverse 'n' cities?
  1. AΘ(log n · 2ⁿ)
  2. BΘ(n · 2ⁿ)
  3. CΘ(2ⁿ)
  4. DΘ(n² · 2ⁿ)
Show answerHide answer

Correct answer: (B) Θ(n · 2ⁿ)

Q12CIL MT Systems, 26 Mar 2017 (12:30 PM)
Which of the following statements related to Cache memory organization is FALSE?
  1. AIn "write through" approach, main memory content is always invalid.
  2. BIn "write back" approach, updates are made only in the cache and it minimizes memory writes.
  3. CLeast Recently Used (LRU) replacement algorithm can be used in associative and set associative mappings.
  4. DFor direct mapping, no replacement algorithm is needed.
Show answerHide answer

Correct answer: (A) In "write through" approach, main memory content is always invalid.

Q13CIL MT Systems, 27 Feb 2020 (8:00 AM)
In RSA algorithm if p = 7, q = 11 and e = 13 then what will be the value of d?
  1. A23
  2. B40
  3. C37
  4. D13
Show answerHide answer

Correct answer: (C) 37

Q14CIL MT Systems, 27 Feb 2020 (8:00 AM)
What is mean by stable sorting algorithm?
  1. AA sorting algorithm is stable if it preserves the order of all keys
  2. BA sorting algorithm is stable if it preserves the order of non-duplicate keys
  3. CA sorting algorithm is stable if it preserves the order of duplicate keys
  4. DA sorting algorithm is stable if it doesn't preserve the order of duplicate keys
Show answerHide answer

Correct answer: (C) A sorting algorithm is stable if it preserves the order of duplicate keys

Q15CIL MT Systems, 27 Feb 2020 (8:00 AM)
What is the complexity of Merge Sort?
  1. AO(n)
  2. BO(n² log n)
  3. CO(n log n)
  4. DO(n²)
Show answerHide answer

Correct answer: (C) O(n log n)

Q16CIL MT Systems, 27 Feb 2020 (8:00 AM)
The multiplicand register and multiplier register of hardware circuit implementing Booths algorithm have (11101) and (1100). The result shall be:
  1. A812 (decimal)
  2. B−812 (decimal)
  3. C−12 (decimal)
  4. D12 (decimal)
Show answerHide answer

Correct answer: (A) 812 (decimal)

How to use these CIL MT Computer Science questions

Every question here was asked in a real CIL MT paper; the paper and shift are shown on the card, and the number opens the question on its own page. Try each one before tapping Show answer, then attempt the full CIL MT papers as timed tests to check your speed under exam conditions.

More CIL MT subjects