Computer Science and Information Technology (CS) 2026
Review the key details, then start the test when you are ready. You can also open the full package to see related papers.
Paper pattern & analysis
Available question types, difficulty and classifications for this paper.
Topic distribution
Subtopic distribution
Difficulty distribution
Question type distribution
Practise paper questions
Choose your answer to check it. Log in to view the explanation. For a timed attempt and result, start the exam.
Fill the blank by choosing a word with a meaning similar to that of the words given above.

Based only on this sentence, which one of the following options is necessarily true?
Choose the P and Q combination from the options below to form a meaningful analogy.

A salesperson needs to make a trip. She needs to start from a city, visit each of the remaining cities exactly once, and finally return to the same city from which she started.
Which one of the following options is then true?


There is a person who does not know anyone else, but that person is known by everyone else.
Which one of the following expressions represents the above statement?
| T | S |
|---|---|
| I: Inorder | L: left subtree, node, right subtree |
| II: Preorder | M: node, left subtree, right subtree |
| III: Postorder | N: left subtree, right subtree, node |
Which one of the following is the correct match from T to S ?
Turing machine M decides the language L \(\subseteq\) {0,1}\(^{*}\)
\[f(x) = \frac{1}{3\sqrt{2\pi}} \exp\left(-\frac{x^2}{18}\right), \quad x \in (-\infty, +\infty)\]
Which one of the following statements is correct about the random variable X ?
| T | S |
|---|---|
| I: Logical schema | L: Views |
| II: Physical schema | M: File organization and indexes |
| III: External schema | N: Relations |
Note: + is OR operation, . is AND operation, and ' is NOT operation
In C runtime environment, which one of the following is stored in heap?
S1: In non-vectored interrupt mechanism, it usually takes more time to start the Interrupt Service Routine (ISR) when compared to that in a vectored interrupt mechanism.
S2: In daisy-chain interrupt mechanism, the CPU polls all the input devices individually to determine the source of the interrupt.
Which one of the following options is correct with respect to S1 and S2 ?
| P1 | P2 | P3 |
|---|---|---|
| #include <stdio.h> int a=5; int main() { int a=7; return(0); } | #include <stdio.h> int main() { int a=5; int a=7; return(0); } | #include <stdio.h> int main() { int a=5; float a=7; return(0); } |
Which one of the following is the total time (in seconds) to transfer the file?
Note: 1M=106, 1k=103
Which one of the following protocols may need to broadcast some of its messages?
Which one of the following CPU scheduling algorithms cannot be preemptive?
\[ n^{1/3}, \; \log(n), \; \log(n!), \; 2^{\log(n)} \]
Which one of the following options lists the functions in increasing order of asymptotic growth rate?
Note: Assume the base of log to be 2.
Which of the following grammars is/are ambiguous?
Reflexivity: If \( Y \subseteq X \), then \( X \rightarrow Y \)
Augmentation: If \( X \rightarrow Y \), then \( XZ \rightarrow YZ \) for any Z
Transitivity: If \( X \rightarrow Y \) and \( Y \rightarrow Z \), then \( X \rightarrow Z \)
The additional rule of Union is defined as follows.
Union: If \( X \rightarrow Y \) and \( X \rightarrow Z \), then \( X \rightarrow YZ \)
It can be proved that the additional rule of Union is also implied by the three rules of Armstrong’s Axioms. Listed below are four combinations of these three rules. Which one of these combinations is both necessary and sufficient for the proof ?
[Image of control flow graph]
Which one of the following options is the set of live variables at the exit point of each basic block?

S1: A hash index must be a dense index
S2: A \( B^+ \) tree index can be a sparse index
Which one of the following options is correct?
Which of the following statements is/are true?

Which of the following constraints ensure(s) that the language $L$ is context-free?
For a node $V$, let $Suc(V)$ denote the node that is its inorder successor. If a node $V$ does not have an inorder successor, then $Suc(V)$ is $NULL$. As there are no duplicates, if $Suc(V)$ is not $NULL$, then $Val(V) < Val(Suc(V))$.
Corresponding to every leaf node $L_i$ that has a non-NULL $Suc(L_i)$, a new key $k_i$ with the following property is to be inserted into the BST.
$$Val(L_i) < k_i < Val(Suc(L_i))$$
Let $K$ represent the list of all such new keys to be inserted into the BST.
Which of the following statements is/are true?
Given the output, the objective is to predict whether an element was assigned to $S$ or $Q$.
Which of the following options is/are possible valid assignment(s) of the elements?
Note: In the options, the notation $xS$ denotes that element $x$ was assigned to $S$ and $yQ$ denotes that element $y$ was assigned to $Q$.
Pseudocode of P1, P2, and P3
Wait(A);
Print(*);
X = X+1;
If (X == 2)
{
Print($);
Signal(B);
}
Signal(A);
Wait(B);
Print(#);
Signal(B);
Assume that any of the three processes can start to execute first and context switching can happen between these processes at any arbitrary time and in any arbitrary order.
Which of the following patterns is/are possible to be generated as an outcome of the execution of these three processes?
Assume that the cache memory is initially empty. The physical addresses of the words are given below (1 word = 1 byte).
P: 0x845B32, Q: 0x845B26, R: 0x845B36, S: 0x846B32
Which of the following statements is/are true?
Note: 1K=210 and 1M=220
Note: 1K=210 and 1G=230
Note: 1K=210, 1M=220, 1G=230
Note: 1K=210
Note: 1K=210 and 1M=220
Note: 1G=109
Note: 1K=210
Note: One input combination is an instance of [A B S1 S0].

#include <stdio.h>
int main() {
int *ptr, a, b, c;
a=5; b=11; c=20;
ptr=&a; *ptr=c; ptr=&c;
a=(*&b); c=*ptr-a;
printf("%d",c);
return(0);
}
The output of this program is ________________. (answer in integer)
Note: Assume that the program compiles and runs successfully.
int func(int start, int end){
int length=end+1-start;
if((length<1)||(start<0)||(end<0)){ return(0); }
if(length%3==0){
return(func(start+1, end));
} else if(length%3==1){
return(1+func(start, end-1));
} else {
return(func(start+2, end-1));
}
}
The maximum possible value that can be returned from this function is __________. (answer in integer)
Note: Ignore syntax errors (if any) in the function.
The conditional probability \( P(E_1 | E_2) \) is equal to __________. (rounded off to one decimal place)
For a real number \( r \in (0,1) \), \( f(r) = 1 \) if the second digit after the decimal point in \( r \) is one of the four digits 2, 3, 6 and 7. Otherwise, \( f(r) \) is equal to 0.
The number of points in \( (0,1) \) at which \( f \) is discontinuous is __________. (answer in integer)
Let \( N \) be the minimum number of bits needed for the sequence number field in the protocol header such that
i. the sequence numbers do not wrap around before 60 seconds, and
ii. the maximum utilization of the link is achieved.
The value of \( N \) is __________. (answer in integer)
Showing 5 of 65 questions