Recent questions tagged gatecse-2004

49 49 votes
4 answers 4 answers
21.6k
21.6k views
Consider the following C function:int f(int n) { static int i = 1; if(n >= 5) return n; n = n+i; i++; return f(n); }The value returned by $f(1)$ is:$5$$6$$7$$8$
16 16 votes
7 answers 7 answers
15.3k
15.3k views
The problem $\text{3-SAT}$ and $\text{2-SAT}$ are both in $\text{P}$both $\text{NP}$ complete$\text{NP}$-complete and in $\text{P}$ respectivelyundecidable and $\text{NP}...
128 128 votes
8 answers 8 answers
53.0k
53.0k views
The tightest lower bound on the number of comparisons, in the worst case, for comparison-based sorting is of the order of$n$$n^2$$n \log n$$n \log^2n$
56 56 votes
4 answers 4 answers
26.1k
26.1k views
What is the result of evaluating the following two expressions using three-digit floating point arithmetic with rounding?$(113. + -111.) + 7.51$$113. + (-111. + 7.51)$$9....
54 54 votes
7 answers 7 answers
18.8k
18.8k views
Let $A, B, C, D$ be $n \times n$ matrices, each with non-zero determinant. If $ABCD = I$, then $B^{-1}$ is $D^{-1}C^{-1}A^{-1}$ $CDA$ $ADC$ Does not necessarily e...
39 39 votes
10 answers 10 answers
21.5k
21.5k views
The number of different $n \times n $ symmetric matrices with each element being either 0 or 1 is: (Note: $\text{power} \left(2, X\right)$ is same as $2^X$)$\text{power} ...
30 30 votes
4 answers 4 answers
10.0k
10.0k views
If a fair coin is tossed four times. What is the probability that two heads and two tails will result?$\frac{3}{8}$$\frac{1}{2}$$\frac{5}{8}$$\frac{3}{4}$
50 50 votes
7 answers 7 answers
17.6k
17.6k views
Consider the binary relation:$S= \left\{\left(x, y\right) \mid y=x+1 \text{ and } x, y \in \left\{0, 1, 2\right\} \right\}$The reflexive transitive closure is $S$ is$\lef...
134 134 votes
9 answers 9 answers
299k
299k views
Identify the correct translation into logical notation of the following assertion.Some boys in the class are taller than all the girlsNote: $\text{taller} (x, y)$ is true...
30 30 votes
5 answers 5 answers
23.3k
23.3k views
How many $8-bi$t characters can be transmitted per second over a $9600$ baud serial communication link using asynchronous mode of transmission with one start bit, eight d...
93 93 votes
12 answers 12 answers
35.0k
35.0k views
The minimum number of page frames that must be allocated to a running process in a virtual memory environment is determined bythe instruction set architecturepage sizenum...
54 54 votes
7 answers 7 answers
20.4k
20.4k views
Which of the following addressing modes are suitable for program relocation at run time?Absolute addressingBased addressingRelative addressingIndirect addressingI and IVI...
27 27 votes
3 answers 3 answers
10.1k
10.1k views
If $73_x$ (in base-x number system) is equal to $54_y$ (in base $y$-number system), the possible values of $x$ and $y$ are$8, 16$$10, 12$$9, 13$$8, 11$
60 60 votes
9 answers 9 answers
33.0k
33.0k views
In an $SR$ latch made by cross-coupling two NAND gates, if both $S$ and $R$ inputs are set to $0$, then it will result in$Q = 0, Q' = 1$$Q = 1, Q' = 0$$Q = 1, Q' = 1$Inde...
40 40 votes
5 answers 5 answers
13.8k
13.8k views
A Boolean function $x’y’ + xy + x’y$ is equivalent to$x' + y'$$x + y$$x + y'$$x' + y$
34 34 votes
3 answers 3 answers
16.3k
16.3k views
Which of the following is NOT true with respect to a transparent bridge and a router?Both bridge and router selectively forward data packetsA bridge uses IP addresses whi...
40 40 votes
6 answers 6 answers
13.6k
13.6k views
Choose the best matching between $\text{Group 1}$ and $\text{Group 2}$$$\begin{array}{|l|l|}\hline \textbf{Group-1} & \textbf{Group-2} \\\hline \text{P. Data link layer}...
93 93 votes
8 answers 8 answers
49.3k
49.3k views
Consider the following relation schema pertaining to a students database:Students (rollno, name, address)Enroll (rollno, courseno, coursename)where the primary keys are s...
50 50 votes
1 answers 1 answer
12.6k
12.6k views
Let $R_1 \left(\underline{A}, B, C\right)$ and $R_2\left(\underline{D}, E \right) $ be two relation schema, where the primary keys are shown underlined, and let C be a fo...
77 77 votes
5 answers 5 answers
27.8k
27.8k views
Consider an operating system capable of loading and executing a single sequential user process at a time. The disk head scheduling algorithm used is First Come First Serv...
79 79 votes
9 answers 9 answers
41.6k
41.6k views
Consider the following statements with respect to user-level threads and kernel-supported threadscontext switch is faster with kernel-supported threadsfor user-level thre...
37 37 votes
2 answers 2 answers
9.8k
9.8k views
Consider a program $P$ that consists of two source modules $M_1$ and $M_2$ contained in two different files. If $M_1$ contains a reference to a function defined in $M_2$ ...
32 32 votes
3 answers 3 answers
16.6k
16.6k views
Which of the following grammar rules violate the requirements of an operator grammar? $P, Q, R$ are nonterminals, and $r, s, t$ are terminals.$P \rightarrow Q R$$P \right...
32 32 votes
5 answers 5 answers
13.9k
13.9k views
Given the following input $(4322, 1334, 1471, 9679, 1989, 6171, 6173, 4199)$ and the hash function $x$ mod $10$, which of the following statements are true?$9679, 1989, 4...
31 31 votes
3 answers 3 answers
10.4k
10.4k views
Level order traversal of a rooted tree can be done by starting from the root and performingpreorder traversalin-order traversaldepth first searchbreadth first search
27 27 votes
4 answers 4 answers
11.2k
11.2k views
The best data structure to check whether an arithmetic expression has balanced parentheses is aqueuestacktreelist
40 40 votes
6 answers 6 answers
30.1k
30.1k views
The following numbers are inserted into an empty binary search tree in the given order: $10, 1, 3, 5, 15, 12, 16$. What is the height of the binary search tree (the heigh...
66 66 votes
7 answers 7 answers
48.3k
48.3k views
A single array $A[1 \ldots \text{MAXSIZE}]$ is used to implement two stacks. The two stacks grow from opposite ends of the array. Variables $top1$ and $top2$ $(top1 < top...
36 36 votes
5 answers 5 answers
20.4k
20.4k views
Consider the following functionvoid swap(int a, int b) { int temp; temp = a; a = b; b = temp; }In order to exchange the values of two variables $x$ and $y$.call $swap(x, ...
39 39 votes
3 answers 3 answers
13.9k
13.9k views
The goal of structured programming is to:have well indented programsbe able to infer the flow of control from the compiled codebe able to infer the flow of control from t...