Computer Science & Information Technology (CS) 2020 [Session 2]
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.
Cook : Cook :: Fly : ____
Which one of the following statements can be inferred from the given passage?
The cost of travel on an edge between two nodes is given in rupees. Nodes 'a', 'b', 'c', 'd', 'e', and 'f' are toll booths. The toll price at toll booths marked 'a' and 'e' is Rs. 200, and is Rs. 100 for the other toll booths. Which is the cheapest route from node 1 to node 2?

Which one of the following statements can be inferred from the given passage?

The total revenue of a company during 2014-2018 is shown in the bar graph. If the total expenditure of the company in each year is 500 million rupees, then the aggregate profit or loss (in percentage) on the total expenditure of the company during 2014-2018 is ____.

I. \( e^{-x} \)
II. \( x^2 - \sin x \)
III. \( \sqrt{x^3 + 1} \)
Which of the above functions is/are increasing everywhere in [0,1]?
I. Daisy chaining is used to assign priorities in attending interrupts.
II. When a device raises a vectored interrupt, the CPU does polling to identify the source of interrupt.
III. In polling, the CPU periodically checks the status bits to know if any device needs its attention.
IV. During DMA, both the CPU and DMA controller can be bus masters at the same time.
Which of the above statements is/are TRUE?
Consider an instruction: R0 ← R1 + R2. The following steps are used to execute it over the given data path. Assume that PC is incremented appropriately. The subscripts r and w indicate read and write operations, respectively.
1. R2r, TEMP1r, ALUadd, TEMP2w
2. R1r, TEMP1w
3. PCr, MARw, MEMr
4. TEMP2r, R0w
5. MDRr, IRw
Which one of the following is the correct order of execution of the above steps?

The preorder traversal of a binary search tree is 15, 10, 12, 11, 20, 18, 16, 19. Which one of the following is the postorder traversal of the tree?
I. If \(L_1 \cup L_2\) is regular, then both \(L_1\) and \(L_2\) must be regular.
II. The class of regular languages is closed under infinite union.
Which of the above statements is/are TRUE?
I. Symbol table is accessed only during lexical analysis and syntax analysis.
II. Compilers for programming languages that support recursion necessarily need heap storage for memory allocation in the run-time environment.
III. Errors violating the condition ‘any variable must be declared before its use’ are detected during syntax analysis.
Which of the above statements is/are TRUE?
I. \(L\) is deterministic context-free.
II. \(L\) is context-free but not deterministic context-free.
III. \(L\) is not LL(k) for any \(k\).
Which of the above statements is/are TRUE?
Consider allocation of memory to a new process. Assume that none of the existing holes in the memory will exactly fit the process’s memory requirement. Hence, a new hole of smaller size will be created if allocation is made in any of the existing holes. Which one of the following statements is TRUE?
I. A running process can move to ready state.
II. A ready process can move to running state.
III. A blocked process can move to running state.
IV. A blocked process can move to ready state.
Which of the above statements are TRUE?
| Catalogue | ||
|---|---|---|
| sno | pno | cost |
| S1 | P1 | 150 |
| S1 | P2 | 50 |
| S1 | P3 | 100 |
| S2 | P4 | 200 |
| S2 | P5 | 250 |
| S3 | P1 | 250 |
| S3 | P2 | 150 |
| S3 | P3 | 300 |
| S3 | P4 | 250 |
| Suppliers | ||
|---|---|---|
| sno | sname | location |
| S1 | M/s Royal furniture | Delhi |
| S2 | M/s Balaji furniture | Bangalore |
| S3 | M/s Premium furniture | Chennai |
| Parts | ||
|---|---|---|
| pno | pname | part_spec |
| P1 | Table | Wood |
| P2 | Chair | Wood |
| P3 | Table | Steel |
| P4 | Almirah | Steel |
| P5 | Almirah | Wood |
The primary key of each table is indicated by underlining the constituent fields.
SELECT s.sno, s.sname
FROM Suppliers s, Catalogue c
WHERE s.sno = c.sno AND
cost > (SELECT AVG (cost)
FROM Catalogue
WHERE pno = 'P4'
GROUP BY pno);
The number of rows returned by the above SQL query is

Which one of the following is used to represent the supporting many-one relationships of a weak entity set in an entity-relationship diagram?
I. A router does not modify the IP packets during forwarding.
II. It is not necessary for a router to implement any routing protocol.
III. A router should reassemble IP fragments if the MTU of the outgoing link is larger than the size of the incoming IP packet.
Which of the above statements is/are TRUE?
#include
int main() {
int a[4][5] = {{1, 2, 3, 4, 5},
{6, 7, 8, 9, 10},
{11, 12, 13, 14, 15},
{16, 17, 18, 19, 20}};
printf("%d\n", *(*(a+**a+2)+3));
return 0;
}
The output of the program is ________.
\(S \rightarrow aSB \mid d\)
\(B \rightarrow b\)
The number of reduction steps taken by a bottom-up parser while accepting the string \(aaadbbh\) is ______.
\(L_1 = \{M \mid L(M) = \emptyset\}\)
\(L_2 = \{(M, w, q) \mid M \text{ on input } w \text{ reaches state } q \text{ in exactly 100 steps}\}\)
\(L_3 = \{(M) \mid L(M) \text{ is not recursive}\}\)
\(L_4 = \{(M) \mid L(M) \text{ contains at least 21 members}\}\)
I. rank(AB) = rank(A) rank(B)
II. det(AB) = det(A) det(B)
III. rank(A + B) ≤ rank(A) + rank(B)
IV. det(A + B) ≤ det(A) + det(B)
Which of the above statements are TRUE?
Which one of the following minterm lists represents the circuit given above?

If \(R3 = \frac{R1}{R2}\), what is the value stored in R3?
A1 = 0x42C8A4, A2 = 0x546888, A3 = 0x6A289C, A4 = 0x5E4880
Which one of the following is TRUE?
\(L_1 = \{wxyx \mid w, x, y \in (0 + 1)^+\)
\(L_2 = \{xy \mid x, y \in (a + b)^*, |x| = |y|, x \neq y\}\)
Which one of the following is TRUE?
Rule 1: P.i = A.i + 2, Q.i = P.i + A.i, and A.s = P.s + Q.s
Rule 2: X.i = A.i + Y.s and Y.i = X.s + A.i
Which one of the following is TRUE?
CODE SECTION P
wait(a); count=count+1;
if (count==n) signal(b);
signal(a); wait(b); signal(b);
CODE SECTION Q
What does the code achieve?
(P, 155), (Q, 85), (R, 110), (S, 30), (T, 115)
Assume the head is positioned at cylinder 100. The scheduler follows Shortest Seek Time First scheduling to service the requests.
Which one of the following statements is FALSE?
Consider a relational table R that is in 3NF, but not in BCNF. Which one of the following statements is TRUE?
| \(T_1\) | RA | RC | WD | WB | Commit | |||||
|---|---|---|---|---|---|---|---|---|---|---|
| \(T_2\) | RB | WB | RD | WC | Commit |
Here, RX stands for “Read(X)” and WX stands for “Write(X)”. Which one of the following schedules is conflict equivalent to the above schedule?
| \(T_1\) | RA | RC | WD | WB | Commit | |||||
|---|---|---|---|---|---|---|---|---|---|---|
| \(T_2\) | RB | WB | RD | WC | Commit |
Here, RX stands for “Read(X)” and WX stands for “Write(X)”. Which one of the following schedules is conflict equivalent to the above schedule?
Note that \( W \) is a predicate formula without any free occurrence of \( x \).
Which one of the options completes the following sentence so that it is TRUE?
“The shortest paths in \( G \) under \( w \) are shortest paths under \( w' \) too, ________.”
int fun1(int n) { static int i = 0; if (n > 0) { ++i; fun1(n-1); } return(i); } int fun2(int n) { static int i = 0; if (n > 0) { i = i + fun1(n); fun2(n-1); } return(i); }The return value of \( fun2(5) \) is __________.
int tob(int b, int* arr) { int i; for(i=0; b>0; i++) { if (b%2) arr[i]=1; else arr[i]=0; b = b/2; } return(i); } int pp(int a, int b) { int arr[20]; int i, tot = 1, ex, len; ex = a; len = tob(b, arr); for(i=0; iThe value returned by \( pp(3,4) \) is __________.
| Processes | \( P_1 \) | \( P_2 \) | \( P_3 \) | \( P_4 \) |
|---|---|---|---|---|
| Burst time (in ms) | 8 | 7 | 2 | 4 |
If the time quantum for RR is 4 ms, then the absolute value of the difference between the average turnaround times (in ms) of SJF and RR (round off to 2 decimal places) is __________.
\( L = \{ x \in \{a, b\}^* \mid \) number of \( a \)'s in \( x \) is divisible by 2 but not divisible by 3\}
The minimum number of states in a DFA that accepts \( L \) is __________.
Showing 5 of 65 questions