CIL MT · Topic-wise previous year questions

Computer Science Previous Year Questions (page 5)

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

Q201CIL MT Systems, 27 Feb 2020 (8:00 AM)
Consider the following table of arrival time and burst time for three processes P0, P1, P2. P0: Arrival time 0 s, Burst time 9 s P1: Arrival time 1 s, Burst time 4 s P2: Arrival time 2 s, Burst time 9 s The preemptive shortest job first scheduling algorithm is used. Scheduling is carried out only at arrival or completion of process. The average waiting time for the three process is ________.
  1. A7 seconds
  2. B4 seconds
  3. C6 seconds
  4. D5 seconds
Show answerHide answer

Correct answer: (D) 5 seconds

Q202CIL MT Systems, 27 Feb 2020 (8:00 AM)
According to Boolean law: (A')' = ? (the double complement of A)
  1. A0
  2. BA
  3. C(A')' (it cannot be simplified)
  4. D1
Show answerHide answer

Correct answer: (B) A

Q203CIL MT Systems, 27 Feb 2020 (8:00 AM)
Consider the following recursive function. int function (int x, int y) { if (y <= 0) return x; return function (y, x%y); } The above recursive function computes _______.
  1. AGCD of x and y
  2. Bx to the power y
  3. Cy to the power x
  4. DHCF of x and y
Show answerHide answer

Correct answer: (A) GCD of x and y

Q204CIL MT Systems, 27 Feb 2020 (8:00 AM)
The working set model is used in memory management to implement the concept of:
  1. APrinciple of locality
  2. BThrashing
  3. CPaging
  4. DSegmentation
Show answerHide answer

Correct answer: (A) Principle of locality

Q205CIL MT Systems, 27 Feb 2020 (8:00 AM)
Depth First Search graph search algorithm uses _______ data structure for its implementation.
  1. AStack
  2. Btree
  3. CDequeue
  4. DQueue
Show answerHide answer

Correct answer: (A) Stack

Q206CIL MT Systems, 27 Feb 2020 (8:00 AM)
In RSA 1. p and q are chosen as very large prime number 2. Compute n = p * q and φ(n) = (p-1) * (q-1) Later e encryption key chosen. How this encryption key is selected?
  1. Ae is chosen as a relative prime to q
  2. Be is chosen as a relative prime to p
  3. Ce is chosen as a relative prime to φ(n)
  4. De is chosen as a relative prime to n
Show answerHide answer

Correct answer: (C) e is chosen as a relative prime to φ(n)

Q207CIL MT Systems, 27 Feb 2020 (8:00 AM)
Consider the following problem X "Given a Turing Machine M over the input alphabet Σ any state q of M and word w in Σ*, does the computation of M on w visit the state q" Which of the following X is correct?
  1. AX is undecidable but partially decidable
  2. BX is not a decision problem
  3. CX is decidable
  4. DX is undecidable but not even partially decidable
Show answerHide answer

Correct answer: (A) X is undecidable but partially decidable

Q208CIL MT Systems, 27 Feb 2020 (8:00 AM)
The expression for commutative law is given by:
  1. AA + AB = A
  2. BA + AB = B
  3. CA + B = B + A
  4. DAB + AA' = A
Show answerHide answer

Correct answer: (C) A + B = B + A

Q209CIL MT Systems, 27 Feb 2020 (8:00 AM)
Consider the following grammar S → m | mn | mno Choose correct statement from the following:
  1. AThe grammar is LL(4)
  2. BThe grammar is LL(3)
  3. CThe grammar is LL(2)
  4. DThe grammar is LL(1)
Show answerHide answer

Correct answer: (B) The grammar is LL(3)

Q210CIL MT Systems, 27 Feb 2020 (8:00 AM)
Consider the classful addressing, the IP address 128.252.144.84 denotes:
  1. A0.0.0.0 as network ID and 128.252.252.84 as node ID
  2. B128.0.0.0 as network ID and 128.252.127.84 as node ID
  3. C128.252.144.0 as network ID and 128.252.144.84 as node ID
  4. D128.252.0.0 as network ID and 128.252.144.84 as node ID
Show answerHide answer

Correct answer: (D) 128.252.0.0 as network ID and 128.252.144.84 as node ID

Q211CIL MT Systems, 27 Feb 2020 (8:00 AM)
Consider the following statement. I. Packet Filter Firewall analyze network traffic at transport layer. II. Circuit Level Firewall operate at transport and session layer of OSI Model. From the above statement which statement/s is/are True
  1. AOnly I
  2. BOnly II
  3. CNone
  4. DI and II
Show answerHide answer

Correct answer: (D) I and II

Q212CIL MT Systems, 27 Feb 2020 (8:00 AM)
_______ is not a public key cryptosystem.
  1. AEl Gamal
  2. BRabin
  3. CAES
  4. DRSA
Show answerHide answer

Correct answer: (C) AES

Q213CIL MT Systems, 27 Feb 2020 (8:00 AM)
Consider the finite automaton with two states: the start state q0 and the final state q1. From q0, input a goes to q1 and input b loops back to q0. From q1, input a loops back to q1 and input b goes to q0. Which language is accepted by the FA?
  1. A(b + a + b)*a
  2. Bb + (a + b)*b
  3. Cb + a*b*
  4. Db + a*b
Show answerHide answer

Correct answer: (A) (b + a + b)*a

Q214CIL MT Systems, 27 Feb 2020 (8:00 AM)
Generation of intermediate code based on an abstract machine model is useful in compilers because:
  1. AIt makes implementation of lexical and syntax analysis easier
  2. BIt is difficult to generate executable code from high level language program.
  3. CSyntax translations are easier for intermediate code generation
  4. DIt enhances the portability of the compiler system program
Show answerHide answer

Correct answer: (A) It makes implementation of lexical and syntax analysis easier

Q215CIL MT Systems, 27 Feb 2020 (8:00 AM)
The maximum height of a binary tree with 'n' nodes is _______.
  1. A(n + n)
  2. B(n + 1)
  3. Cn
  4. D(n − 1)
Show answerHide answer

Correct answer: (D) (n − 1)

Q216CIL MT Systems, 27 Feb 2020 (8:00 AM)
In hashing, collision resolution is carried out by close addressing. Which of the following is close addressing technique – I. Buckets (for contiguous storage) II. Chains (for linked storage)
  1. AOnly I
  2. BOnly II
  3. CI and II
  4. DNone
Show answerHide answer

Correct answer: (C) I and II

Q217CIL MT Systems, 27 Feb 2020 (8:00 AM)
The main memory of a computer has 2cm blocks while the cache has 2c blocks. If cache uses set associative mapping scheme with two blocks per set, then the block k of the main memory maps to set:
  1. A(k mod m) of the cache
  2. B(k mod c) of the cache
  3. C(k mod 2c) of the cache
  4. D(k mod 2cm) of the cache
Show answerHide answer

Correct answer: (B) (k mod c) of the cache

Q218CIL MT Systems, 27 Feb 2020 (8:00 AM)
Consider the following two statements. 1. A binary tree T is full if each node is either a leaf or possesses exactly two child nodes. 2. A binary tree T with n levels is complete if all levels except possibly the last are completely full, and the last level has all its nodes to the left side. Which statement is/are TRUE
  1. AOnly 2
  2. BOnly 1
  3. C1 and 2
  4. DNeither 1 nor 2
Show answerHide answer

Correct answer: (C) 1 and 2

Q219CIL MT Systems, 27 Feb 2020 (8:00 AM)
Consider the Unix i-node which uses 12 direct DBAs, 1 single indirect, 1 double indirect, 1 triple indirect. The disk block address requires 32 bits and disk block size is 1 KB. What is the maximum file size?
  1. A32 GB
  2. B64 GB
  3. C16 GB
  4. D8 GB
Show answerHide answer

Correct answer: (C) 16 GB

Q220CIL MT Systems, 27 Feb 2020 (8:00 AM)
A trigger has three parts. The ________ describes the change that activates the trigger. The _______ is a query that is run whenever the trigger is activated. The ______ is the procedure that is executed if the trigger is activated and the condition is true.
  1. Aevent, condition, actor
  2. Bentity, condition, action
  3. Cevent, question, action
  4. Devent, condition, action
Show answerHide answer

Correct answer: (D) event, condition, action

Q221CIL MT Systems, 27 Feb 2020 (8:00 AM)
Which layer is associated with log in and log out from the network?
  1. APresentation
  2. BTransport
  3. CData Link
  4. DSession
Show answerHide answer

Correct answer: (D) Session

Q222CIL MT Systems, 27 Feb 2020 (8:00 AM)
Digital Certificates are described using _______ format.
  1. AX.509
  2. BX.510
  3. CX.508
  4. DX.409
Show answerHide answer

Correct answer: (A) X.509

Q223CIL MT Systems, 27 Feb 2020 (8:00 AM)
________ Command is used to enable, disable, modify, or drop a constraint in SQL.
  1. AMODIFY Table
  2. BDEFINE Table
  3. CADD Column
  4. DALTER Table
Show answerHide answer

Correct answer: (D) ALTER Table

Q224CIL MT Systems, 27 Feb 2020 (8:00 AM)
Which is equivalent CFG without useless symbols for the given grammar: S → PQ | p , P → p
  1. AS → PQ
  2. BS → p
  3. CS → P , P → p
  4. DS → P | p , P → p
Show answerHide answer

Correct answer: (B) S → p

Q225CIL MT Systems, 27 Feb 2020 (8:00 AM)
Which of the following derivation does a top-down parser use while parsing a input string? The input is assumed to be scanned in left to right order.
  1. ATopmost derivation
  2. BLeftmost derivation traced out in reverse
  3. CLeftmost derivation
  4. DRightmost derivation
Show answerHide answer

Correct answer: (C) Leftmost derivation

Q226CIL MT Systems, 27 Feb 2020 (8:00 AM)
Polynomial addition is implemented using _______ data structure.
  1. ATrees
  2. BQueue
  3. CLinked list
  4. DStack
Show answerHide answer

Correct answer: (C) Linked list

Q227CIL MT Systems, 27 Feb 2020 (8:00 AM)
A ________ of a relation is a set of one or more attributes whose values are guaranteed to identify tuples in the relation uniquely.
  1. Aforeign key
  2. Bsuper key
  3. Cscheme
  4. Dkey
Show answerHide answer

Correct answer: (B) super key

Q228CIL MT Systems, 27 Feb 2020 (8:00 AM)
For implementation of recursion system uses _______ data structure.
  1. ALinked List
  2. BDeque
  3. CStack
  4. DQueue
Show answerHide answer

Correct answer: (C) Stack

Q229CIL MT Systems, 27 Feb 2020 (8:00 AM)
Which of the following statement is true?
  1. AThe parsers canonical LR and LALR have the same power
  2. BLALR parser is more important than canonical LR parser
  3. CSLR parser is more powerful than LALR parser
  4. DCanonical LR parser is more powerful than LALR parser
Show answerHide answer

Correct answer: (D) Canonical LR parser is more powerful than LALR parser

Q230CIL MT Systems, 27 Feb 2020 (8:00 AM)
Page fault occurs when ________.
  1. AThe page is in main memory
  2. BThe page has an address, which cannot be loaded
  3. CThe page is not in main memory
  4. DThe page is not in cache memory
Show answerHide answer

Correct answer: (C) The page is not in main memory

Q231CIL MT Systems, 27 Feb 2020 (8:00 AM)
Queue structure is used in _______.
  1. APolynomial addition
  2. BRecursion
  3. CDepth First Search algorithm
  4. DBreadth First Search algorithm
Show answerHide answer

Correct answer: (D) Breadth First Search algorithm

Q232CIL 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

Q233CIL MT Systems, 27 Feb 2020 (8:00 AM)
Consider the following statements: Arithmetic Logic Unit (ALU) 1. Performs arithmetic operations 2. Performs comparisons. 3. Communicates with I/O devices 4. Keeps watch on the system Which of these statements are correct?
  1. A1 Only
  2. B1 and 2 only
  3. C1 and 4
  4. D2 and 3
Show answerHide answer

Correct answer: (B) 1 and 2 only

Q234CIL MT Systems, 27 Feb 2020 (8:00 AM)
The term cycle stealing is used in context of:
  1. AInterrupt based data transfer
  2. BPolling Mode Data Transfer
  3. CDMA based data Transfer
  4. DClock cycle overriding
Show answerHide answer

Correct answer: (C) DMA based data Transfer

Q235CIL MT Systems, 27 Feb 2020 (8:00 AM)
For following logic diagram which expression is true? Inputs A and B each pass through a NOT gate; the two inverted signals feed one AND gate. The original A and B feed a second AND gate. The outputs of the two AND gates feed an OR gate whose output is X.
  1. A(AB) (A'B')
  2. B((A'B').(AB))'
  3. C((AB))' + (AB)
  4. DA'B' . AB
Show answerHide answer

Correct answer: (B) ((A'B').(AB))'

Explanation

The circuit computes X = A'B' + AB (XNOR). The official key marks option B.

Q236CIL MT Systems, 27 Feb 2020 (8:00 AM)
Excess-3 code of decimal number 2 is:
  1. A0101
  2. B1010
  3. C1100
  4. D0011
Show answerHide answer

Correct answer: (A) 0101

Q237CIL MT Systems, 27 Feb 2020 (8:00 AM)
Consider a system with page fault service time (S) = 100 ns, main memory access time (M) = 20 ns, and page fault rate (P) = 65%. Calculate the effective memory access time.
  1. A62 ns
  2. B82 ns
  3. C80 ns
  4. D72 ns
Show answerHide answer

Correct answer: (D) 72 ns

Q238CIL MT Systems, 27 Feb 2020 (8:00 AM)
Solve the following recurrence relation: T(n) = 4T(n/2) + n²
  1. AΘ(n³)
  2. BΘ(n² log n)
  3. CΘ(n²/2)
  4. DΘ(n²)
Show answerHide answer

Correct answer: (B) Θ(n² log n)

Q239CIL MT Systems, 27 Feb 2020 (8:00 AM)
In ______ balance factor of a node is the difference between left subtree and right subtree.
  1. ARed Black Tree
  2. BB+ Tree
  3. CAVL tree
  4. D2-3 Tree
Show answerHide answer

Correct answer: (C) AVL tree

Q240CIL MT Systems, 27 Feb 2020 (8:00 AM)
The language generated by following grammar is: S → aSa | bSb | ε
  1. AEven length palindrome
  2. Ba^m b^n, n ≥ 0, m ≥ 0
  3. COdd length palindrome
  4. Da^n b^m, n ≥ 1, m ≥ 1
Show answerHide answer

Correct answer: (A) Even length palindrome

Q241CIL MT Systems, 27 Feb 2020 (8:00 AM)
The language {a^m b^n c^(m+n) | m, n ≥ 1} is:
  1. Aregular
  2. Btype 0 but not context sensitive
  3. Ccontext free but not regular
  4. Dcontext sensitive but not context free
Show answerHide answer

Correct answer: (C) context free but not regular

Q242CIL MT Systems, 27 Feb 2020 (8:00 AM)
Which of the following affects the processing power of CPU I. Data bus width II. Clock speed III. Address Bus width
  1. AI and III
  2. BI, II and III
  3. COnly I
  4. DOnly II
Show answerHide answer

Correct answer: (B) I, II and III

Q243CIL MT Systems, 27 Feb 2020 (8:00 AM)
In a D flip flop the out-put state Q is related with D input in what way?
  1. AQ is dependent of D
  2. BQ is same as D
  3. CQ is independent of D
  4. DQ is complement of D
Show answerHide answer

Correct answer: (B) Q is same as D

Q244CIL MT Systems, 27 Feb 2020 (8:00 AM)
_______ includes a query language and commands to insert tuples into, delete tuples from, and modify tuples in the database.
  1. AQuery Language
  2. BData-manipulation language
  3. CData-definition language
  4. DData-calculation language
Show answerHide answer

Correct answer: (B) Data-manipulation language

Q245CIL MT Systems, 27 Feb 2020 (8:00 AM)
Which grammar rules violate the requirement of the operator grammar? A, B, C are variables and a, b, c are terminals. i. A → BC ii. A → CcBb iii. A → BaC iv. A → ε
  1. Ai only
  2. Bi and ii
  3. Ci and iii
  4. Di and iv
Show answerHide answer

Correct answer: (D) i and iv

Q246CIL MT Systems, 27 Feb 2020 (8:00 AM)
Principle of locality is used in _______.
  1. ARegisters
  2. BDMA
  3. CCache Memory
  4. DInterrupt
Show answerHide answer

Correct answer: (C) Cache Memory

Q247CIL MT Systems, 27 Feb 2020 (8:00 AM)
In _______ authentication, the claimant proves that she knows the secret without sending it to the verifier.
  1. Aasymmetric
  2. Bzero knowledge
  3. Csymmetric
  4. Dchallenge response
Show answerHide answer

Correct answer: (D) challenge response

Q248CIL MT Systems, 27 Feb 2020 (8:00 AM)
The following is the sequence of insertion in a binary tree. 45, 65, 35, 40, 33, 70, 60, 75, 69 How many numbers of nodes in Left Sub Tree (LST) and Right Sub Tree (RST) of Root node.
  1. ALST – 6, RST – 2
  2. BLST – 5, RST – 3
  3. CLST – 3, RST – 5
  4. DLST – 2, RST – 6
Show answerHide answer

Correct answer: (C) LST – 3, RST – 5

Q249CIL MT Systems, 27 Feb 2020 (8:00 AM)
Find the output of the following #include <stdio.h> int main( ) { int x=5, y=9; x=(x= x+y)-(y= x-y); printf("%d %d ", x, y); return 0; }
  1. A5 14
  2. B5 9
  3. C14 5
  4. D9 5
Show answerHide answer

Correct answer: (D) 9 5

Q250CIL MT Systems, 27 Feb 2020 (8:00 AM)
Solve the following recurrence relation T(n) = 4T(n/2) + n
  1. AO(n²)
  2. BO(n/2)
  3. CO(n)
  4. DO(log n)
Show answerHide answer

Correct answer: (A) O(n²)

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