CIL MT · Topic-wise previous year questions

Computer Science Previous Year Questions

299 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.

  • 299 questions
  • 10 topics
  • Official answer key
  • Free

Practise by topic

Q1CIL MT Systems, 24 Aug 2026 (3:00 PM, CBT-26)
Consider the following grammar G: E → T E' E' → + T E' ε T → F T' T' → * F T' ε F → (E) id Which of the following statements about top-down parsing of grammar G is true?
  1. AThe grammar is not left-recursive and can be parsed using a predictive (LL(1)) parser.
  2. BThe grammar requires backtracking since FIRST and FOLLOW sets of E’ overlap.
  3. CThe grammar is left-recursive and hence cannot be used for top-down parsing.
  4. DThe grammar is suitable for LL(1) (predictive) parsing and does not require backtracking.
Show answerHide answer

Correct answer: (D) The grammar is suitable for LL(1) (predictive) parsing and does not require backtracking.

Q2CIL MT Systems, 24 Aug 2026 (3:00 PM, CBT-26)
What makes a finite automaton deterministic?
  1. AIt can have multiple transitions for the same input
  2. BFor each state and input, there is exactly one transition
  3. CIt can accept infinite input
  4. DIt has no start state
Show answerHide answer

Correct answer: (B) For each state and input, there is exactly one transition

Q3CIL MT Systems, 24 Aug 2026 (3:00 PM, CBT-26)
Which of the following statements best reflects a comprehensive layered design issue in computer networks?
  1. AEach layer must handle key issues like addressing, error control, flow control, sequencing and data direction, ensuring reliable communication between entities without breaking layer abstraction.
  2. BThe design issues of addressing and error control are handled exclusively by the network layer, while flow control and sequencing are managed solely by the transport layer.
  3. CLayered design primarily concerns selecting the physical transmission medium and ensuring minimal propagation delay across all layers.
  4. DOnce error control and sequencing are implemented at the data link layer, upper layers are exempt from such design considerations.
Show answerHide answer

Correct answer: (A) Each layer must handle key issues like addressing, error control, flow control, sequencing and data direction, ensuring reliable communication between entities without breaking layer abstraction.

Q4CIL MT Systems, 24 Aug 2026 (3:00 PM, CBT-26)
The entity integrity constraint ensures that:
  1. ANo foreign key value can be NULL
  2. BAll attribute values must belong to the same domain
  3. CEach tuple must reference at least one other tuple
  4. DNo primary key value can be NULL
Show answerHide answer

Correct answer: (D) No primary key value can be NULL

Q5CIL MT Systems, 24 Aug 2026 (3:00 PM, CBT-26)
Which of the following statements best distinguishes the relationship between a service and a protocol in a layered network architecture?
  1. ABoth services and protocols define the message formats and meanings used between the same layer entities, but at different abstraction levels.
  2. BA service specifies what operations a layer offers to the layer above, whereas a protocol defines how peer entities within the same layer communicate to provide that service.
  3. CA service is the physical implementation of a protocol; thus, changing the protocol automatically changes the provided service.
  4. DA protocol defines the interface between two adjacent layers, while a service specifies the message exchange rules between peer entities.
Show answerHide answer

Correct answer: (B) A service specifies what operations a layer offers to the layer above, whereas a protocol defines how peer entities within the same layer communicate to provide that service.

Q6CIL MT Systems, 24 Aug 2026 (3:00 PM, CBT-26)
Given the 2D array int arr[3][3] = {{1,2,3}, {4,5,6}, {7,8,9}};, what is the value of *(*(arr + 1) + 2)?
  1. A8
  2. B3
  3. C6
  4. D5
Show answerHide answer

Correct answer: (C) 6

Q7CIL MT Systems, 24 Aug 2026 (3:00 PM, CBT-26)
Which of the following is a valid declaration for a 2D array in C?
  1. Aint a[2,2] = {{1,2}, {3,4}};
  2. Barray a[2][2] = {{1,2}, {3,4}};
  3. Cint a[2][2] = {{1,2}, {3,4}};
  4. Dint a[][] = {{1,2}, {3,4}};
Show answerHide answer

Correct answer: (C) int a[2][2] = {{1,2}, {3,4}};

Q8CIL MT Systems, 24 Aug 2026 (3:00 PM, CBT-26)
Which constraint ensures that a foreign key value in one table either matches a primary key in another table or is NULL (if allowed) in DBMS?
  1. AReferential integrity
  2. BEntity integrity
  3. CDomain constraint
  4. DKey constraint
Show answerHide answer

Correct answer: (A) Referential integrity

Q9CIL 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

Q10CIL MT Systems, 24 Aug 2026 (3:00 PM, CBT-26)
Which of the following correctly describes loopback addressing?
  1. AReserved for router multicast.
  2. BUsed for local LAN broadcast.
  3. CRange from 127.0.0.0 to 127.255.255.255 used for internal host testing.
  4. DUsed to map private IP to public IP.
Show answerHide answer

Correct answer: (C) Range from 127.0.0.0 to 127.255.255.255 used for internal host testing.

Q11CIL MT Systems, 24 Aug 2026 (3:00 PM, CBT-26)
Which of the following traversals can be used to reconstruct a unique binary tree, if combined with Preorder?
  1. AInorder
  2. BPostorder
  3. CPreorder alone is enough
  4. DLevel Order
Show answerHide answer

Correct answer: (A) Inorder

Q12CIL MT Systems, 24 Aug 2026 (3:00 PM, CBT-26)
Define thrashing in an operating system.
  1. AExcessive swapping of pages in and out of memory
  2. BA process being started abnormally
  3. CA read-write operation failure
  4. DA deadlock occurring in memory allocation
Show answerHide answer

Correct answer: (A) Excessive swapping of pages in and out of memory

Q13CIL 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.

Q14CIL MT Systems, 24 Aug 2026 (3:00 PM, CBT-26)
Consider a finite state transducer (FST) with Q = {q₀, q₁}, Σ = {0, 1}, Γ = {a, b, c}, initial state q₀, and the following transitions: δ(q₀, 0) = q₁, δ(q₀, 1) = q₀ δ(q₁, 0) = q₀, δ(q₁, 1) = q₁ and output function: θ(q₀, 0) = a, θ(q₀, 1) = c θ(q₁, 0) = b, θ(q₁, 1) = a What will be the output string for the input 1010?
  1. Aacab
  2. Babac
  3. Ccaab
  4. Dcaba
Show answerHide answer

Correct answer: (C) caab

Q15CIL MT Systems, 24 Aug 2026 (3:00 PM, CBT-26)
Given a Mealy machine where state q on input 1 outputs 0 and transitions to state p, converting to a Moore machine requires:-
  1. AAdding epsilon transitions
  2. BOutputting 0 immediately on entering ppp
  3. CNo change is needed
  4. DSplitting p into two states with different outputs
Show answerHide answer

Correct answer: (D) Splitting p into two states with different outputs

Q16CIL MT Systems, 24 Aug 2026 (3:00 PM, CBT-26)
Which statement correctly defines the regular expressions? Statement-1: Regular expressions representation doesn’t involve a combination of strings of symbols from some alphabet ∑, parentheses and the operators +, ×, and *. Statement-2: A regular expression is not obtained from the symbol {a, b, c}, empty string ∈, and empty-set Φ perform the operations +, × and * (union, concatenation and Kleene star).
  1. AStatement-1 is True and Statement-2 is True
  2. BStatement-1 is False and Statement-2 is True
  3. CStatement-1 is False and Statement-2 is False
  4. DStatement-1 is True and Statement-2 is False
Show answerHide answer

Correct answer: (C) Statement-1 is False and Statement-2 is False

Q17CIL MT Systems, 24 Aug 2026 (3:00 PM, CBT-26)
In the context of algorithm design and analysis, which of the following represents the initial step in the design process?
  1. AWrite the pseudocode
  2. BDefine the problem clearly and specify the input output
  3. CAnalyze the algorithm time complexity
  4. DImplement the algorithm in a Computer programming language
Show answerHide answer

Correct answer: (B) Define the problem clearly and specify the input output

Q18CIL MT Systems, 24 Aug 2026 (3:00 PM, CBT-26)
Which of the following statements is true regarding the differentiability of a function at a point?
  1. AA function is differentiable at a point only if its derivative is infinite there.
  2. BA function must be differentiable everywhere to be continuous at a point.
  3. CA function may be discontinuous at a point and still be differentiable there.
  4. DA function must be continuous at that point to be differentiable there.
Show answerHide answer

Correct answer: (D) A function must be continuous at that point to be differentiable there.

Q19CIL MT Systems, 24 Aug 2026 (3:00 PM, CBT-26)
Which one of the following statements is true for a Hermitian matrix?
  1. ASum of diagonal elements is zero
  2. BAll diagonal elements are real numbers
  3. CAll elements are positive numbers
  4. DAll entries are real numbers
Show answerHide answer

Correct answer: (B) All diagonal elements are real numbers

Q20CIL MT Systems, 24 Aug 2026 (3:00 PM, CBT-26)
In a shift-reduce parser, which of the following lists includes all four possible parser actions?
  1. AShift, Jump, Reduce, Halt
  2. BShift, Move, Accept, Reject
  3. CReduce, Copy, Accept, Abort
  4. DShift, Reduce, Accept, Error
Show answerHide answer

Correct answer: (D) Shift, Reduce, Accept, Error

Q21CIL MT Systems, 24 Aug 2026 (3:00 PM, CBT-26)
In the grammar S→aS∣bS∣ϵ, which strings belong to the language?
  1. AOnly “ab” and “ba”
  2. BAny string of a’s and b’s
  3. COnly “a” and “b”
  4. Dstring of “ab” or “ba”
Show answerHide answer

Correct answer: (B) Any string of a’s and b’s

Q22CIL MT Systems, 24 Aug 2026 (3:00 PM, CBT-26)
What does the read() system call in an operating system do?
  1. ABlocks until the requested number of bytes is read
  2. BCopies data from kernel space to user space, possibly after reading from device buffers
  3. CCopies data directly from device hardware into user space without kernel intervention
  4. DRuns entirely in user mode for performance
Show answerHide answer

Correct answer: (B) Copies data from kernel space to user space, possibly after reading from device buffers

Q23CIL MT Systems, 24 Aug 2026 (3:00 PM, CBT-26)
Which of the following correctly represents the cofactor expansion of a 3x3 determinant along the first row?
  1. ASum of only diagonal elements times their cofactors
  2. BSum of each element of the first row times its corresponding cofactor
  3. CDifference of elements of the first row and their cofactors
  4. DSum of elements of the first column times their cofactors
Show answerHide answer

Correct answer: (B) Sum of each element of the first row times its corresponding cofactor

Q24CIL MT Systems, 24 Aug 2026 (3:00 PM, CBT-26)
Which of the following is the correct symbol for representing the decimal number 12 in hexadecimal system?
  1. AC
  2. BB
  3. CD
  4. DA
Show answerHide answer

Correct answer: (A) C

Q25CIL MT Systems, 24 Aug 2026 (3:00 PM, CBT-26)
If a system uses 32-bit virtual addresses and a page size of 4 KB, how many entries are needed in a single-level page table?
  1. A2¹²
  2. B2³²
  3. C2²⁰
  4. D2¹⁰
Show answerHide answer

Correct answer: (C) 2²⁰

Q26CIL MT Systems, 24 Aug 2026 (3:00 PM, CBT-26)
In a machine instruction, what does the opcode primarily define?
  1. AThe size of the instruction in bits.
  2. BThe type of operation the processor should execute.
  3. CThe memory address where data is stored.
  4. DThe number of registers used in execution.
Show answerHide answer

Correct answer: (B) The type of operation the processor should execute.

Q27CIL MT Systems, 24 Aug 2026 (3:00 PM, CBT-26)
Which operation in Relational Algebra is used to retrieve specific columns from a relation?
  1. ACartesian Product (×)
  2. BProjection (π)
  3. CSelection (σ)
  4. DIntersection (∩)
Show answerHide answer

Correct answer: (B) Projection (π)

Q28CIL MT Systems, 24 Aug 2026 (3:00 PM, CBT-26)
Which of the following is not a connection-oriented service?
  1. AReliable byte-stream delivery.
  2. BStateless packet forwarding.
  3. CMaintain frame sequencing.
  4. DPerform a Handshake to set up the connection.
Show answerHide answer

Correct answer: (B) Stateless packet forwarding.

Q29CIL MT Systems, 24 Aug 2026 (3:00 PM, CBT-26)
In the context of programming languages, if a compiler can determine the scope of a declaration by examining the program text alone, the language is said to use:
  1. ADynamic policy and lexical scope
  2. BStatic policy and lexical scope
  3. CStatic policy and dynamic scope
  4. DDynamic policy and dynamic scope
Show answerHide answer

Correct answer: (B) Static policy and lexical scope

Q30CIL MT Systems, 24 Aug 2026 (3:00 PM, CBT-26)
Which statement best describes a zero-address instruction in stack-based architectures?
  1. AOperands are implicitly taken from the top of the stack.
  2. BOperands are fetched directly from main memory.
  3. CThe instruction contains two explicit operand fields.
  4. DOperands are stored in accumulator registers.
Show answerHide answer

Correct answer: (A) Operands are implicitly taken from the top of the stack.

Q31CIL MT Systems, 24 Aug 2026 (3:00 PM, CBT-26)
Which statement correctly differentiates between SRAM and DRAM?
  1. ADRAM is faster and more expensive than SRAM
  2. BBoth have the same speed and cost
  3. CSRAM requires periodic refreshing; DRAM does not
  4. DSRAM is faster but more expensive than DRAM
Show answerHide answer

Correct answer: (D) SRAM is faster but more expensive than DRAM

Q32CIL MT Systems, 24 Aug 2026 (3:00 PM, CBT-26)
The hardware organization of associative memory consists of:
  1. AArgument Register(A), Key Register(K) and Match Register(M) Only
  2. BMemory Array Logic, Key Register(K) and Match Register(M) Only
  3. CArgument Register(A), Memory Array Logic and Match Register(M) Only
  4. DMemory Array Logic, Argument Register(A), Key Register(K) and Match Register(M)
Show answerHide answer

Correct answer: (D) Memory Array Logic, Argument Register(A), Key Register(K) and Match Register(M)

Q33CIL MT Systems, 24 Aug 2026 (3:00 PM, CBT-26)
What is the best approach to delete an element from an unsorted array?
  1. AShift all elements left after deletion
  2. BReplace the element with the last element and reduce the array size
  3. CSort the array and then delete
  4. DReplace the element with 0
Show answerHide answer

Correct answer: (B) Replace the element with the last element and reduce the array size

Q34CIL MT Systems, 24 Aug 2026 (3:00 PM, CBT-26)
In SRTF (Shortest Remaining Time First) scheduling, which process is selected next?
  1. AOne that arrives first
  2. BOne with the longest burst time
  3. COne with the shortest remaining burst time
  4. DOne with the highest priority
Show answerHide answer

Correct answer: (C) One with the shortest remaining burst time

Q35CIL MT Systems, 24 Aug 2026 (3:00 PM, CBT-26)
What is the output of a JK flip-flop when both inputs J = 1 and K = 1?
  1. AOutput is set to 1
  2. BOutput remains unchanged
  3. COutput is set to 0
  4. DOutput toggles
Show answerHide answer

Correct answer: (D) Output toggles

Q36CIL MT Systems, 24 Aug 2026 (3:00 PM, CBT-26)
A banking transaction commits successfully, but a system crash occurs immediately afterward. Which mechanism ensures durability?
  1. ALocking
  2. BTransaction isolation
  3. CPartial commit
  4. DRedo log
Show answerHide answer

Correct answer: (D) Redo log

Q37CIL 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.

Q38CIL MT Systems, 24 Aug 2026 (3:00 PM, CBT-26)
______________________ is NOT a valid token typically generated by a lexical analyzer.
  1. AParser
  2. BCompiler
  3. CKeyword
  4. DVariable
Show answerHide answer

Correct answer: (A) Parser

Q39CIL 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)

Q40CIL MT Systems, 24 Aug 2026 (3:00 PM, CBT-26)
If a measurement is recorded as 12.8 cm and the true value is 13.0 cm, what is the absolute error?
  1. A0.1 cm
  2. B0 cm
  3. C0.2 cm
  4. D1.2 cm
Show answerHide answer

Correct answer: (C) 0.2 cm

Q41CIL MT Systems, 24 Aug 2026 (3:00 PM, CBT-26)
What does each row in a relational table represent?
  1. AAttribute
  2. BTuple
  3. CDomain
  4. DColumn
Show answerHide answer

Correct answer: (B) Tuple

Q42CIL MT Systems, 24 Aug 2026 (3:00 PM, CBT-26)
Which of the following options about non-preemptive scheduling is incorrect?
  1. ANon-preemptive scheduling can lead to process starvation.
  2. BIn non-preemptive scheduling, the response time and waiting time are generally not equal for all processes, and in most cases, waiting time is greater than response time.
  3. CIn non-preemptive scheduling, the CPU is relinquished only when a process terminates or initiates an input/output operation.
  4. DRound Robin is classified as a non-preemptive scheduling algorithm.
Show answerHide answer

Correct answer: (D) Round Robin is classified as a non-preemptive scheduling algorithm.

Q43CIL MT Systems, 24 Aug 2026 (3:00 PM, CBT-26)
A system must recognize any number of consecutive 'a's. Which regular expression correctly models this?
  1. Aa?
  2. Ba*
  3. Ca+
  4. Dab*
Show answerHide answer

Correct answer: (B) a*

Q44CIL MT Systems, 24 Aug 2026 (3:00 PM, CBT-26)
Consider an FSM that accepts all strings over {a, b} with an even number of a’s. Which regular expression corresponds to it?
  1. A(a+b)∗a(a+b)∗(a+b)
  2. B(b∗(ab∗ab∗))∗
  3. C(a+b)∗a(a+b)∗(b+c)
  4. D(b∗ab∗)∗
Show answerHide answer

Correct answer: (B) (b∗(ab∗ab∗))∗

Q45CIL MT Systems, 24 Aug 2026 (3:00 PM, CBT-26)
Which of the following best describes an empty set?
  1. AA set that contains zero as an element
  2. BA set that has one element
  3. CA set that has no elements
  4. DA set that contains all elements from a given universal set
Show answerHide answer

Correct answer: (C) A set that has no elements

Q46CIL MT Systems, 24 Aug 2026 (3:00 PM, CBT-26)
Consider the following declaration of array in C language. int arr[5]; Which of the following statements is TRUE about array ‘arr’?
  1. AThe ‘arr’ array can store integers and float values
  2. BThe declaration of the array ‘arr’ is incorrect and will result in an error
  3. CThe size of array ‘arr’ can be increased or decreased during run time dynamically
  4. DThe ‘arr’ array can store only integer values
Show answerHide answer

Correct answer: (D) The ‘arr’ array can store only integer values

Q47CIL MT Systems, 24 Aug 2026 (3:00 PM, CBT-26)
What is the purpose of the Root Name Server in the DNS hierarchy?
  1. AIt provides IP addresses of Authoritative Name Servers for Top-Level Domains (TLDs)
  2. BIt resolves domain names directly
  3. CIt assigns domain names
  4. DIt caches DNS records for fast access
Show answerHide answer

Correct answer: (A) It provides IP addresses of Authoritative Name Servers for Top-Level Domains (TLDs)

Q48CIL MT Systems, 24 Aug 2026 (3:00 PM, CBT-26)
A team develops a text-mining tool that highlights sequences in security logs where a server's alert code is immediately followed by an IP address in the format 10.0.X.Y (where X and Y are integers). Which regular expression most efficiently identifies these patterns without false positives?
  1. Aalert\s10\.0\.[0-9]*\.[0-9]*
  2. Balert10\.0\.[0-9]+\.[0-9]+
  3. Calert\s10\.0\.[0-9]{1,3}\.[A-Z]+
  4. Dalert\s10\.0\.[0-9]+\.[0-9]+
Show answerHide answer

Correct answer: (D) alert\s10\.0\.[0-9]+\.[0-9]+

Q49CIL MT Systems, 24 Aug 2026 (3:00 PM, CBT-26)
A 32-bit IEEE 754 single-precision floating-point number is represented as: 0100 0001 0100 1001 0000 0000 0000 0000 What is the decimal value of this floating-point number?
  1. A25.125
  2. B12.5625
  3. C100.5
  4. D50.25
Show answerHide answer

Correct answer: (B) 12.5625

Q50CIL MT Systems, 24 Aug 2026 (3:00 PM, CBT-26)
Which of the following statements correctly differentiates connection-oriented from connectionless services?
  1. AConnection-oriented ensures reliability and order; connectionless may not.
  2. BConnectionless has higher overhead; connection-oriented has minimal.
  3. CConnection-oriented sends data without a connection; connectionless requires one.
  4. DBoth perform error checking and retransmission.
Show answerHide answer

Correct answer: (A) Connection-oriented ensures reliability and order; connectionless may not.

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