CIL MT · Topic-wise previous year questions

Computer Science Previous Year Questions (page 4)

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

Q151CIL MT Systems, 26 Mar 2017 (12:30 PM)
Which of the following statements about "total specialization" constraint is TRUE?
  1. AEvery entity in the subclass must be a member of the superclass.
  2. BEvery entity in the superclass must be a member of at least one subclass in the specialization.
  3. CAt least one entity in the superclass must be a member of at least one subclass in the specialization.
  4. DEvery entity in the superclass must be a member of all subclasses in the specialization.
Show answerHide answer

Correct answer: (B) Every entity in the superclass must be a member of at least one subclass in the specialization.

Q152CIL MT Systems, 26 Mar 2017 (12:30 PM)
In a B-Tree of order m (m > 1), every non-leaf node (except root node) has the number of children between:
  1. Am/2 and m
  2. B⌈m/2⌉ and m
  3. C⌊m/2⌋ and m
  4. D⌊m/2⌋ and ⌈m/2⌉
Show answerHide answer

Correct answer: (B) ⌈m/2⌉ and m

Q153CIL MT Systems, 26 Mar 2017 (12:30 PM)
Which of the following statements about Secure Shell Protocol (SSH) is FALSE?
  1. ASSH cannot be used for file transfer and e-mail tasks.
  2. BSSH provides a secure client/server communication.
  3. CSSH runs on top of the TCP/IP layer.
  4. DSSH is a network protocol.
Show answerHide answer

Correct answer: (A) SSH cannot be used for file transfer and e-mail tasks.

Q154CIL MT Systems, 26 Mar 2017 (12:30 PM)
Which of the following statements is INCORRECT with respect to pointers declared in the following 'C' language code? void main(){ int a[10], *p, *q; p=&a[5]; q=&a[7]; }
  1. Aq-p
  2. BP+1
  3. Cq-3
  4. DP+q
Show answerHide answer

Correct answer: (D) P+q

Q155CIL MT Systems, 26 Mar 2017 (12:30 PM)
Considering the process details given in the following table, what will be the completion order of the processes under the policies FCFS and RR (with CPU quantum of 2 time units)? Process ID – CPU Burst – Arrival Time P1 – 5 – 3 P2 – 7 – 2 P3 – 5 – 0
  1. AFCFS: P1, P2, P3 and RR: P1, P2, P3
  2. BFCFS: P3, P2, P1 and RR: P3, P1, P2
  3. CFCFS: P3, P2, P1 and RR: P3, P2, P1
  4. DFCFS: P1, P3, P2 and RR: P1, P2, P3
Show answerHide answer

Correct answer: (B) FCFS: P3, P2, P1 and RR: P3, P1, P2

Q156CIL MT Systems, 26 Mar 2017 (12:30 PM)
Which of the following represents the language over the set A = {a, b} consisting of all words beginning with one or more a's and followed by the same number of b's?
  1. AL = {a, ab, ab², …}
  2. BL = {aᵐbⁿ : m > 0, n > 0}
  3. CL = {aᵐbᵐ : m > 0}
  4. DL = {bᵐabⁿ : m ≥ 0, n ≥ 0}
Show answerHide answer

Correct answer: (C) L = {aᵐbᵐ : m > 0}

Q157CIL 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ⁿ)

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

Q159CIL MT Systems, 26 Mar 2017 (12:30 PM)
If D = {R1, R2} is a decomposition of R, and F is the set of functional dependencies on R, then which of the following ensures that the decomposition D is lossless (nonadditive)?
  1. A((R1 ∩ R2) → (R1 − R2)) ∈ F⁺
  2. B((R1 ∩ R2) → (R1 − R2)) ∉ F⁺
  3. C((R1 ∪ R2) → (R1 − R2)) ∈ F⁺
  4. D((R1 ∩ R2) → R1) ∈ F⁺
Show answerHide answer

Correct answer: (A) ((R1 ∩ R2) → (R1 − R2)) ∈ F⁺

Q160CIL MT Systems, 26 Mar 2017 (12:30 PM)
The 9's compliment of the decimal number 139452 is:
  1. A971658
  2. B971659
  3. C860547
  4. D860548
Show answerHide answer

Correct answer: (C) 860547

Q161CIL MT Systems, 26 Mar 2017 (12:30 PM)
A flip-flop has a 20-nano second delay from the time its CP input goes from 1 to 0 to the time the output is complimented. What is the maximum delay in a 16-bit binary ripple counter that uses these flip-flops?
  1. A20 ns
  2. B320 ns
  3. C36 ns
  4. D16 ns
Show answerHide answer

Correct answer: (B) 320 ns

Q162CIL MT Systems, 26 Mar 2017 (12:30 PM)
Let L be the language on A = {a, b, c} which consists of all words of the form w = aʳbˢcᵗ where r, s, t > 0. Which of the following is the valid regular expression 'r' such that L = L(r)?
  1. Ar = a*b*c*
  2. Br = aa*bb*c*
  3. Cr = aa*b*cc*
  4. Dr = aa*bb*cc*
Show answerHide answer

Correct answer: (D) r = aa*bb*cc*

Q163CIL MT Systems, 26 Mar 2017 (12:30 PM)
Match the following. List-I: I) Dijkstra's Algorithm, II) Tower of Hanoi, III) Floyd-Warshall Algorithm, IV) Merge Sort List-II: P) Divide and Conquer Approach, Q) Greedy Approach, R) Dynamic Approach, S) Recursion
  1. AI – Q, II – S, III – R, IV – P
  2. BI – S, II – Q, III – P, IV – R
  3. CI – S, II – Q, III – R, IV – P
  4. DI – Q, II – S, III – P, IV – R
Show answerHide answer

Correct answer: (A) I – Q, II – S, III – R, IV – P

Q164CIL MT Systems, 26 Mar 2017 (12:30 PM)
The listing of nodes after applying the preorder traversal over the following binary tree is: A is the root. A has left child B and right child C. B has left child D and right child E. C has left child F and right child G. D has children H (left) and I (right). E has children J (left) and K (right). F has a single left child L.
  1. AA, B, D, H, I, E, J, K, C, F, G, L
  2. BH, D, I, B, J, E, K, A, L, F, C, G
  3. CH, I, D, J, K, E, B, L, F, G, C, A
  4. DA, B, D, H, I, E, J, K, C, F, L, G
Show answerHide answer

Correct answer: (D) A, B, D, H, I, E, J, K, C, F, L, G

Q165CIL MT Systems, 26 Mar 2017 (12:30 PM)
Consider the following relation schema R along with the tuples. Employee(name, salary) = {<e1, 10000>, <e2, 5000>, <e3, 2500>, <e4, 7500>, <e5, 8900>, <e6, 9800>} What is the output of following SQL query? SELECT name, MAX(salary) FROM Employee WHERE salary < (SELECT MAX(salary) FROM Employee);
  1. A<e3, 2500>
  2. B<e5, 8900>
  3. C<e6, 9800>
  4. D<e1, 10000>
Show answerHide answer

Correct answer: (C) <e6, 9800>

Q166CIL MT Systems, 26 Mar 2017 (12:30 PM)
Maximum number of edges in a simple graph with 'n' vertices and 'k' components is:
  1. A(n − 2)(n − 1)/2 + 1
  2. B(n − k)(n − k + 1)/2
  3. Cn²
  4. Dn(n − 1)/2
Show answerHide answer

Correct answer: (B) (n − k)(n − k + 1)/2

Q167CIL MT Systems, 26 Mar 2017 (12:30 PM)
The number of elements in a one-dimensional array with lowest and highest index values as −1024 and 1024 is:
  1. A2048
  2. B0
  3. C1024
  4. D2049
Show answerHide answer

Correct answer: (D) 2049

Q168CIL MT Systems, 26 Mar 2017 (12:30 PM)
Total number of spanning tree of a complete graph of 4 vertices K₄ is:
  1. A15
  2. B16
  3. C3
  4. D17
Show answerHide answer

Correct answer: (B) 16

Q169CIL MT Systems, 26 Mar 2017 (12:30 PM)
Which of the following relationships holds for non-random-access memory, where Tₙ = average time to read or write n bits, Tₐ = average access time, n = number of bits and r = transfer rate in bits per second?
  1. ATₐ = Tₙ + n/r
  2. BTₙ = Tₐ + n/r
  3. CTₐ = Tₙ + r/n
  4. DTₙ = Tₐ + r/n
Show answerHide answer

Correct answer: (B) Tₙ = Tₐ + n/r

Q170CIL MT Systems, 26 Mar 2017 (12:30 PM)
Match the following. List-1: I) Independent access, II) Parallel access, III) Mirroring, IV) Striping List-2: A) RAID 0, B) RAID 3, C) RAID 5, D) RAID 1
  1. AI – B, II – C, III – D, IV – A
  2. BI – C, II – B, III – D, IV – A
  3. CI – A, II – D, III – B, IV – C
  4. DI – B, II – A, III – D, IV – C
Show answerHide answer

Correct answer: (B) I – C, II – B, III – D, IV – A

Q171CIL MT Systems, 26 Mar 2017 (12:30 PM)
Consider an information exchange scenario where Anthony is the sender and Bond is the intended recipient of the data. Match the following appropriately. List I: I) Message authentication, II) Message confidentiality, III) Message integrity, IV) Message non-repudiation List II: A) Anthony must not be able to deny sending a message that he or she, in fact, did send; B) The message must arrive at the Bond's side exactly as it was sent; C) Bond needs to be sure of Anthony's identity and that an imposter has not sent the message; D) The transmitted message must make sense to only Bond, and to all others it must be garbage
  1. AI – C, II – B, III – D, IV – A
  2. BI – C, II – D, III – A, IV – B
  3. CI – C, II – D, III – B, IV – A
  4. DI – A, II – D, III – B, IV – C
Show answerHide answer

Correct answer: (C) I – C, II – D, III – B, IV – A

Q172CIL MT Systems, 26 Mar 2017 (12:30 PM)
If the address of the operand is embedded in the instruction code itself, then the addressing mode is termed as:
  1. ARegister mode
  2. BDirect mode
  3. CDisplacement mode
  4. DImmediate mode
Show answerHide answer

Correct answer: (B) Direct mode

Q173CIL MT Systems, 26 Mar 2017 (12:30 PM)
Consider the process details given in the following table. Process ID – CPU Burst – Arrival Time – Priority P0 – 3 – 0 – 1 P1 – 9 – 2 – 4 P2 – 7 – 4 – 3 P3 – 6 – 3 – 2 A new pre-emptive scheduling algorithm is proposed, i.e., the Longest Remaining Time Next (LRTN), wherein ties are broken by giving priority to the process with the highest priority. Calculate the following. i. Turnaround time for Process P2 ii. Response time for Process P3
  1. A(i) 20, (ii) 6
  2. B(i) 19, (ii) 3
  3. C(i) 19, (ii) 8
  4. D(i) 20, (ii) 7
Show answerHide answer

Correct answer: (A) (i) 20, (ii) 6

Q174CIL MT Systems, 26 Mar 2017 (12:30 PM)
Under normal circumstances, the cardinality ratio of the binary relationship "Write" relating "Author" and "Book" entities is:
  1. A1 : N
  2. BN : 1
  3. C1 : 1
  4. DM : N
Show answerHide answer

Correct answer: (D) M : N

Q175CIL MT Systems, 26 Mar 2017 (12:30 PM)
If T is a binary tree with N nodes, then the number of levels is at least:
  1. A⌈log₂(N + 1)⌉
  2. BN − 1
  3. CN
  4. D⌊log₂(N + 1)⌋
Show answerHide answer

Correct answer: (A) ⌈log₂(N + 1)⌉

Q176CIL MT Systems, 26 Mar 2017 (12:30 PM)
Which of the following declares 'pf' as a pointer to a function, which returns an integer quantity and requires two integer arguments?
  1. Aint *pf(int, int);
  2. Bint (*pf) (int, int);
  3. C(int *) pf(int, int);
  4. Dint (int *pf(int, int));
Show answerHide answer

Correct answer: (B) int (*pf) (int, int);

Q177CIL MT Systems, 26 Mar 2017 (12:30 PM)
The output of the following 'C' language code is: void main(){ char arr[10]; arr = "world"; printf("%s", arr); }
  1. Aworld
  2. Bworld5
  3. Cworld10
  4. DL-value required error
Show answerHide answer

Correct answer: (D) L-value required error

Q178CIL MT Systems, 26 Mar 2017 (12:30 PM)
Interrupt generated due to which of the following operations does not belong to program-related interrupt category?
  1. ADivision by zero
  2. BAttempt to execute an illegal machine instruction
  3. CMemory parity error
  4. DReference outside a user's allowed memory space
Show answerHide answer

Correct answer: (C) Memory parity error

Q179CIL MT Systems, 26 Mar 2017 (12:30 PM)
What will be the minimum Hamming distance for the following coding scheme? Data Word – Code Word 00 – 00111 01 – 01001 10 – 10101 11 – 11100
  1. A1
  2. B2
  3. C3
  4. D4
Show answerHide answer

Correct answer: (B) 2

Q180CIL MT Systems, 26 Mar 2017 (12:30 PM)
In clustering index, the number of index entries is same as the number of:
  1. Aattributes in data file
  2. Brecords in data file
  3. Cblocks in data file
  4. Ddistinct index field values
Show answerHide answer

Correct answer: (D) distinct index field values

Q181CIL MT Systems, 26 Mar 2017 (12:30 PM)
Which of the following operators can be used if a portion of a given bit patterns needs to be copied to a new word, while the remainder of the new word is filled with 0s?
  1. ALogical AND
  2. BBitwise AND
  3. CBitwise OR
  4. DBitwise XOR
Show answerHide answer

Correct answer: (B) Bitwise AND

Q182CIL MT Systems, 26 Mar 2017 (12:30 PM)
Let each process Pᵢ, i=1 to 7 executes the following code. repeat P(mutex); CS V(mutex); forever The process P₈ executes the following code: repeat V(mutex); CS V(mutex); forever What is the maximum number of processes that can be present in the critical section at any point of time? Given that the initial value of binary semaphore variable "mutex" is 1.
  1. A7
  2. B8
  3. C1
  4. D10
Show answerHide answer

Correct answer: (B) 8

Q183CIL MT Systems, 26 Mar 2017 (12:30 PM)
Which of the following is the best-case time complexity of Floyd's algorithm for finding shortest paths in a graph with 'n' vertices?
  1. AΘ(n²)
  2. BΘ(1)
  3. CΘ(n)
  4. DΘ(n³)
Show answerHide answer

Correct answer: (D) Θ(n³)

Q184CIL MT Systems, 26 Mar 2017 (12:30 PM)
State TRUE or FALSE for the following. (i) A sine wave with a phase of 180° starts at time 0 with a zero amplitude. The amplitude is decreasing. (ii) If a signal changes instantaneously, its frequency is zero. (iii) In bipolar encoding, we use three voltage levels: positive, negative and zero. (iv) Infrared signals can be used for short-range communication in a closed area using ground propagation.
  1. A(i) TRUE, (ii) FALSE, (iii) TRUE, (iv) FALSE
  2. B(i) TRUE, (ii) TRUE, (iii) TRUE, (iv) FALSE
  3. C(i) FALSE, (ii) TRUE, (iii) FALSE, (iv) FALSE
  4. D(i) TRUE, (ii) TRUE, (iii) FALSE, (iv) FALSE
Show answerHide answer

Correct answer: (A) (i) TRUE, (ii) FALSE, (iii) TRUE, (iv) FALSE

Q185CIL MT Systems, 26 Mar 2017 (12:30 PM)
Consider the characters and their frequency counts given in the following table. Character: a, b, c, d, e, f Frequency (in 1000s): 24, 16, 12, 20, 8, 4 Using the Huffman coding technique, which of the following is the valid code for character 'c'?
  1. A11111
  2. B1110
  3. C11110
  4. D110
Show answerHide answer

Correct answer: (B) 1110

Q186CIL MT Systems, 26 Mar 2017 (12:30 PM)
A block of addresses is granted to a small organization. If one of the addresses is 210.32.64.79/26, then what will be the values of the following? (i) First address (ii) Last address (iii) Total number of addresses
  1. A(i) 210.32.64.64, (ii) 210.32.64.127, (iii) 64
  2. B(i) 210.32.64.64, (ii) 210.32.64.255, (iii) 32
  3. C(i) 210.32.64.79, (ii) 210.32.64.255, (iii) 64
  4. D(i) 210.32.64.64, (ii) 210.32.64.79, (iii) 128
Show answerHide answer

Correct answer: (A) (i) 210.32.64.64, (ii) 210.32.64.127, (iii) 64

Q187CIL MT Systems, 26 Mar 2017 (12:30 PM)
A ______ takes a directed ______ graph G and produces a linear ordering of all its vertices such that for every directed edge <v, w> in G, the vertex v comes before the vertex w in the ordering.
  1. Abreadth first search; acyclic
  2. Btopological sort; acyclic
  3. Cbreadth first search; cyclic
  4. Dtopological sort; cyclic
Show answerHide answer

Correct answer: (B) topological sort; acyclic

Q188CIL MT Systems, 26 Mar 2017 (12:30 PM)
Match the following. List I: I) Stack, II) Heap tree, III) Tree, IV) Binary search List II: P) Non-linear, Q) Complete binary tree, R) Ordered list, S) Linear
  1. AI – S, II – R, III – P, IV – Q
  2. BI – S, II – Q, III – P, IV – R
  3. CI – S, II – P, III – Q, IV – R
  4. DI – P, II – Q, III – R, IV – S
Show answerHide answer

Correct answer: (B) I – S, II – Q, III – P, IV – R

Q189CIL MT Systems, 26 Mar 2017 (12:30 PM)
Which of the following statements is TRUE for the function prototype declaration given below? int *(*P) (char *Q[]);
  1. AP is a function that accepts an argument which is a character array and returns a pointer to an integer quantity.
  2. BP is a function that accepts an argument which is a pointer to a character array and returns a pointer to an integer quantity.
  3. CP is a pointer to a function that accepts an argument which is an array of character pointers, and returns a pointer to an integer quantity.
  4. DP is a pointer to function that accepts an argument which is a character array and returns a pointer to an integer quantity.
Show answerHide answer

Correct answer: (C) P is a pointer to a function that accepts an argument which is an array of character pointers, and returns a pointer to an integer quantity.

Q190CIL MT Systems, 26 Mar 2017 (12:30 PM)
Consider the following segment of codes related to process creation. How many times the message "child process created" will be printed? #include <stdio.h> void main(){ fork(); fork(); fork(); printf("child process created"); }
  1. A9
  2. B7
  3. C8
  4. D3
Show answerHide answer

Correct answer: (C) 8

Q191CIL MT Systems, 26 Mar 2017 (12:30 PM)
What is the output when the following segment of 'C' code is executed? void main(){ float a = 123.456; printf("%7.2f, %7.3f, %12e", a, a, a); }
  1. A123.450, 123.4560, 1.234560e+02
  2. B123.46, 123.456, 1.234560e+02
  3. C123.456000, 123.456, 0.1234560e+03
  4. D123.45, 123.4560, 1.234560e+02
Show answerHide answer

Correct answer: (B) 123.46, 123.456, 1.234560e+02

Q192CIL MT Systems, 26 Mar 2017 (12:30 PM)
Which of the following is a seven-bit code?
  1. ABiquinary code
  2. BBCD code
  3. C2421 code
  4. DExcess-3 code
Show answerHide answer

Correct answer: (A) Biquinary code

Q193CIL MT Systems, 26 Mar 2017 (12:30 PM)
Which of the following attributes can be considered as composite, single-valued and key attribute?
  1. AAge
  2. BDate of birth
  3. CGender
  4. DEnrollment number
Show answerHide answer

Correct answer: (D) Enrollment number

Q194CIL MT Systems, 26 Mar 2017 (12:30 PM)
Which of the following statements about the following binary tree is FALSE? A is the root. A has left child B and right child C. B has left child D and right child E. C has left child F and right child G. D has children H (left) and I (right). E has children J (left) and K (right). F has a single left child L.
  1. AIt is a binary search tree.
  2. BIt is a complete binary tree.
  3. CNodes 'J' and 'K' are siblings.
  4. DNode 'B' is the ancestor of node 'J'.
Show answerHide answer

Correct answer: (A) It is a binary search tree.

Q195CIL MT Systems, 26 Mar 2017 (12:30 PM)
The default storage class for functions in 'C' language is:
  1. AStatic
  2. BRegister
  3. CExtern
  4. DAuto
Show answerHide answer

Correct answer: (C) Extern

Q196CIL MT Systems, 26 Mar 2017 (12:30 PM)
If T is a binary tree with number of levels as L, then the number of leaf nodes in the binary tree is at most:
  1. A2^(L+1)
  2. B2L
  3. C2^L
  4. D2^(L−1)
Show answerHide answer

Correct answer: (D) 2^(L−1)

Q197CIL MT Systems, 26 Mar 2017 (12:30 PM)
If a connected graph G does not contain any vertex whose removal disconnects the rest of the graph, then G is called:
  1. ABiconnected graph
  2. BSeparable graph
  3. CForest
  4. DDiagraph
Show answerHide answer

Correct answer: (A) Biconnected graph

Q198CIL MT Systems, 26 Mar 2017 (12:30 PM)
Consider a cache memory organization with m lines in which the cache is divided into v sets, each of which consists of k lines. The set associative mapping technique reduces to direct mapping when:
  1. Av = m and k = m
  2. Bv = 1 and k = m
  3. Cv = m and k = 1
  4. Dv = 1 and k = 1
Show answerHide answer

Correct answer: (C) v = m and k = 1

Q199CIL MT Systems, 26 Mar 2017 (12:30 PM)
Consider a memory unit of size 96 K × 16, where the first component represents the total number of words and the second component represents the number of bits per word. What will be the number of address lines and input-output data lines?
  1. A16 address lines, 7 data lines
  2. B7 address lines, 16 data lines
  3. C17 address lines, 16 data lines
  4. D16 address lines, 17 data lines
Show answerHide answer

Correct answer: (C) 17 address lines, 16 data lines

Q200CIL MT Systems, 27 Feb 2020 (8:00 AM)
A _______ is a pictorial depiction of the schema of a database that shows the relations in the database, their attributes, and primary keys and foreign keys.
  1. Arelational query languages
  2. Brelational algebra
  3. Cflow diagram
  4. Dschema diagram
Show answerHide answer

Correct answer: (D) schema diagram

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