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.
Given a code snippet in C programming language as follows:
int a = 10;
int *p;
int **w;
p = &a;
which statement correctly assigns the address of 'p' to 'w'?
Consider a Mealy machine designed to process a sequence representing the presence of mineral samples ('M') and non-mineral samples ('N') during a geological survey. The machine outputs 'A' when the current sample is 'M' and the previous sample was 'N', otherwise it outputs 'B'. Which description below correctly reflects the machine's output behavior?
AIt produces output based on both the current input and the previous state.
BIt produces output based only on the current input symbol.
CIt waits until the next transition to output a value.
DIt changes output only when the input switches from 'M' to 'N'.
Show answerHide answer
Correct answer: (A) It produces output based on both the current input and the previous state.
A botanist creates a digital representation of a rare plant's evolutionary tree, where each node records a unique genetic mutation. During research, they need to extract the chronological sequence of mutations as they would naturally occur along the main lineage. Which traversal algorithm, when applied to the tree, most accurately reflects the order of these mutations if left sub-branches represent earlier side mutations and right sub-branches represent later side mutations?
ALevel order traversal groups mutations by depth, not by evolutionary chronology.
BPerforming an inorder traversal yields the desired mutation sequence along the main lineage.
CA preorder traversal starts with the main mutation, missing proper side branch sequencing.
DApplying a postorder traversal lists mutations from leaves to root, not main lineage order.
Show answerHide answer
Correct answer: (B) Performing an inorder traversal yields the desired mutation sequence along the main lineage.
A graduate student wants to find the likelihood of passing a Statistics exam, given that they attended all lectures. Which formula should the student use to determine the probability of passing given attendance?
AThe formula P(Attend|Pass) = P(Pass and Attend) divided by P(Pass) is appropriate.
BThe formula P(Pass) plus P(Attend) is appropriate for this scenario.
CThe formula P(Pass) times P(Attend) is appropriate for this scenario.
DThe formula P(Pass|Attend) = P(Pass and Attend) divided by P(Attend) is appropriate.
Show answerHide answer
Correct answer: (D) The formula P(Pass|Attend) = P(Pass and Attend) divided by P(Attend) is appropriate.
Identify the correct option for project operation in relational algebra:
Statement-1: The project operation is a binary operation that returns its argument
relation, with certain tuple left out.
Statement-2: The result of the PROJECT operation can be visualized as a
horizontal partition of the relation into two relations: one has the needed rows (tuples) and contains the result of the operation, and the other contains the discarded rows.
AStatement-1 is True and Statement-2 is False
BStatement-1 is True and Statement-2 is True
CStatement-1 is False and Statement-2 is True
DStatement-1 is False and Statement-2 is False
Show answerHide answer
Correct answer: (D) Statement-1 is False and Statement-2 is False
Which of the following statements correctly describes Isolation and Transaction Isolation Levels in a database system?
Statement-1: Ensuring the isolation property is the responsibility of a component
of the database system called the concurrency-control system.
Statement-2: The isolation levels may be Serializable, Repeatable read, Read
committed, Read uncommitted and all the isolation levels additionally disallow dirty writes, that is, they disallow writes to a data item that has already been written by another transaction that has not yet committed or aborted.
AStatement-1 is True and Statement-2 is True
BStatement-1 is True and Statement-2 is False
CStatement-1 is False and Statement-2 is False
DStatement-1 is False and Statement-2 is True
Show answerHide answer
Correct answer: (A) Statement-1 is True and Statement-2 is True
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?
AFinding a package ID will become faster as the number of packages increases.
BSearch time grows linearly with the number of packages.
CThe time to search for any package ID will stay about the same, regardless of list size.
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.
Which of the following statements are TRUE about server and client side scripting in computer networks?
S1: PHP is used for server side scripting S2: HTML is used for database operations S3: CSS is used for server side scripting S4: ASP.NET is used for server side scripting
You are tasked to construct a binary search tree (BST) from a stream of incoming sensor readings, where each reading is processed as it arrives. Midway, the sensor malfunctions and emits a duplicate reading not originally in the stream. To preserve BST properties and ensure efficient future search operations, which strategy should you employ for the duplicate reading?
AAllow the duplicate in the left subtree and continue
BAllow the duplicate in the right subtree and continue
CIgnore the duplicate and continue inserting unique values
DReplace the existing node with the duplicate value and continue
Show answerHide answer
Correct answer: (C) Ignore the duplicate and continue inserting unique values
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?
Which of the following is an application of compiler technology?
ADisk scheduling
BCache mapping
CCode optimization
DVirtual memory management
Show answerHide answer
Correct answer: (C) Code optimization
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.