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.
AThe cardinality ratio for a binary relationship specifies the maximum number of relationship instances that an entity can participate in.
BThe cardinality ratio for a binary relationship specifies the minimum number of relationship instances that an entity can participate in.
CThe partial participation constraint is also called existence dependency.
DThe cardinality ratio for a binary relationship specifies the average number of relationship instances that an entity can participate in.
Show answerHide answer
Correct answer: (A) The cardinality ratio for a binary relationship specifies the maximum number of relationship instances that an entity can participate in.
Which of the following file-type arguments is used in fopen() library function to open a new file for both reading and writing, and destroys the file if a file with the specified file-name already exists in the current directory?
Which of the following does not represent the total number of multiplications for multiplying four matrices of orders 20 × 2, 2 × 30, 30 × 12 and 12 × 8?
Considering the relation schemas R (A, B, C, D) and S (C, D, E, F), what will be the degree of the resultant relation of the following Relational Algebra expression, where "*" represents the "natural join" operation?
(σc1(ΠA,B,C(R))) * (σc2(ΠC,D,E(S)))
Two concurrent processes P and Q execute the following code.
Process P:
while(True){
W: ____
print('0'); print('0');
X: ____
}
Process Q:
while(True){
Y: ____
print('1'); print('1');
Z: ____
}
Given S and T are binary semaphore variables, and P() and V() as standard "wait" and "signal" functions respectively. What should be the semaphore operations W, X, Y, and Z for the output string: 11001100…?
Which of the following protocols is built on client-server architecture and uses separate control and data connections between the client and the server?
Which of the following is/are FALSE?
I) Operator precedence parser works on ambiguous grammar
II) Top-down parser works on left recursive, unambiguous and deterministic grammar
III) LL(1) is a non-recursive descent parser
IV) CLR(1) is the most powerful parser
The decimal number 395, when converted into binary occupies ______ binary digits, whereas when it is represented using BCD codes, occupies ______ binary digits.
Match the following.
List I: I) Attenuation, II) Shannon capacity, III) Nyquist bit rate, IV) Distortion
List II: P) Loss of energy, Q) Changes in shape of the signal, R) Noisy channel, S) Noiseless channel
AI – P, II – Q, III – R, IV – S
BI – P, II – R, III – S, IV – Q
CI – S, II – R, III – Q, IV – P
DI – Q, II – P, III – S, IV – R
Show answerHide answer
Correct answer: (B) I – P, II – R, III – S, IV – Q
Let K2,2 be a complete bipartite graph with vertices 1 and 2 on one side and vertices 3 and 4 on the other side (each of 1 and 2 is joined to both 3 and 4). Which of the following is the total number of paths of length 3 from vertex 1 to vertex 4?
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;
}
Match the following.
List-1: A. Moves suspended process to secondary storage, B. Loads the processes into memory for execution, C. Moves one of the processes to Running state, D. Allocates CPU to a process
List-2: I. Short-Term Scheduler, II. Dispatcher, III. Medium-Term Scheduler, IV. Long-Term Scheduler
AA – III, B – IV, C – I, D – II
BA – II, B – I, C – IV, D – III
CA – III, B – I, C – II, D – IV
DA – II, B – IV, C – I, D – III
Show answerHide answer
Correct answer: (A) A – III, B – IV, C – I, D – II
Which of the following is the Postorder traversal of the binary tree whose Inorder and Preorder traversals are as follows?
In-order : OLCHJBEKNGMADFI
Preorder : KHLOCBJEAGNMFDI
Given total number of instances of a resource to be 18, three processes (P1, P2, and P3) and the resource requirement and allocation table are given below. Which of the following orders of process execution forms a safe (deadlock free) sequence?
Process – Max. Need – Current Allocation
P1 – 12 – 7
P2 – 10 – 5
P3 – 5 – 4
Match the following.
List-1: I) Class-A IP address, II) Class-B IP address, III) Class-C IP address
List-2: A) 8 bit host id and 24 bit network id, B) 16 bit host id and 16 bit network id, C) 24 bit host id and 8 bit network id
Suppose that we have an ordered file with r = 30000 records stored on a disk with block size B = 1024 bytes. If file records are of fixed size and are unspanned with record length R = 100 bytes, the blocking factor for the file and the number of blocks needed for the file are ______ and ______ respectively.
Consider the following Adjacency matrix corresponding to some weighted Graph 'G' (rows and columns are vertices 1 to 5).
Vertex 1: 0 5 0 10 2
Vertex 2: 5 0 4 6 2
Vertex 3: 0 4 0 1 0
Vertex 4: 10 6 1 0 7
Vertex 5: 2 2 0 7 0
What is the weight of the minimum spanning tree for the graph 'G'?
Consider the following relation schema R and S along with their tuple sets.
R(A, B) = {<a1, b1>, <a2, b1>, <a3, b1>, <a4, b1>, <a1, b2>, <a3, b2>, <a2, b3>, <a3, b3>, <a4, b3>, <a1, b4>, <a2, b4>, <a3, b4>}
S(A) = {a1, a2, a3}
What is the value of T ← R / S, where "/" represents the Relational Algebra "division" operation?
Considering the following key using a block of five characters, encryption of the message "NETWORKING" using the Transposition Cipher is:
Plaintext : 5 4 3 2 1
Ciphertext : 1 2 3 4 5
Assume that source S and destination D are connected through five intermediate routers R1, R2, R3, R4 and R5. Determine how many times each packet has to visit the Network layer and the Data Link layer during transmission from S to D?
ANetwork Layer: 7 times, Data Link Layer: 12 times
BNetwork Layer: 5 times, Data Link Layer: 12 times
CNetwork Layer: 12 times, Data Link Layer: 12 times
DNetwork Layer: 7 times, Data Link Layer: 7 times
Show answerHide answer
Correct answer: (A) Network Layer: 7 times, Data Link Layer: 12 times
Which of the following statements about the "DELETE" command is FALSE?
AIt removes tuples from a relation (table).
BIt removes tuples as well as the relation (table).
CA missing WHERE clause specifies that all tuples in the relation are to be deleted.
DDepending on the number of tuples selected by the condition in the WHERE clause, zero, one or several tuples can be deleted by a single DELETE command.
Show answerHide answer
Correct answer: (B) It removes tuples as well as the relation (table).
Given the Burst Time (BT) of 4 processes P1, P2, P3 and P4 as BT(t1, t2, t3, t4) = (4, 8, 6, 7), smoothening factor (α) = 0.5, and T1 = 10, what will be the burst time of process P5 for Shortest Job First scheduling, using the technique of exponential averaging?
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:
A⌊n / 10^(i−1)⌋ % 10
B⌈n / 10^i⌉ % 10
C⌈n / 10^(i−1)⌉ % 10
D⌊n / 10^i⌋ % 10
Show answerHide answer
Correct answer: (A) ⌊n / 10^(i−1)⌋ % 10
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.