Recent questions tagged gatecse-2007

88 88 votes
16 answers 16 answers
57.8k
57.8k views
Consider the following segment of C-code:int j, n; j = 1; while (j <= n) j = j * 2;The number of comparisons made in the execution of the loop for any $n 0$ is:$\lceil \...
47 47 votes
3 answers 3 answers
15.8k
15.8k views
Consider the following program segment. Here $\text{R1, R2}$ and $\text{R3}$ are the general purpose registers.$$\begin{array}{|l|l|l|c|} \hline & \text {Instruction} & \...
49 49 votes
6 answers 6 answers
14.8k
14.8k views
Consider the following program segment. Here $\text{R1, R2}$ and $\text{R3}$ are the general purpose registers.$$\small \begin{array}{|c|l|l||c|} \hline & \text {Instruct...
40 40 votes
4 answers 4 answers
12.9k
12.9k views
Consider the following Finite State Automaton:The minimum state automaton equivalent to the above FSA has the following number of states:$1$$2$$3$$4$
49 49 votes
3 answers 3 answers
23.4k
23.4k views
Suppose the letters $a, \,b, \,c, \,d, \,e, \,f$ have probabilities $\dfrac{1}{2}, \dfrac{1}{4}, \dfrac{1}{8}, \dfrac{1}{16}, \dfrac{1}{32}, \dfrac{1}{32}$, respectively....
34 34 votes
5 answers 5 answers
15.2k
15.2k views
Consider the CFG with $\left\{S, A, B\right\}$ as the non-terminal alphabet, $\{a, b\}$ as the terminal alphabet, $S$ as the start symbol and the following set of product...
63 63 votes
7 answers 7 answers
17.1k
17.1k views
Consider a machine with a byte addressable main memory of $2^{16}$ bytes. Assume that a direct mapped data cache consisting of $32$ lines of $64$ bytes each is used in th...
28 28 votes
5 answers 5 answers
10.6k
10.6k views
A process, has been allocated $3$ page frames. Assume that none of the pages of the process are available in the memory initially. The process makes the following sequenc...
58 58 votes
7 answers 7 answers
18.5k
18.5k views
Suppose that a robot is placed on the Cartesian plane. At each step it is allowed to move either one unit up or one unit right, i.e., if it is at $(i,j)$ then it can move...
30 30 votes
7 answers 7 answers
13.2k
13.2k views
Consider the DAG with $V = \{1,2,3,4,5,6\}$ shown below.Which of the following is not a topological ordering?$1$ $2$ $3$ $4$ $5$ $6$$1$ $3$ $2$ $4$ $5$ $6$$1$ $3$ $2$ $4$...
143 143 votes
15 answers 15 answers
37.1k
37.1k views
Information about a collection of students is given by the relation $\text{studInfo(}\underline{\text{studId}},\text{ name, sex)}$. The relation $\text{enroll(}{\text{stu...
74 74 votes
9 answers 9 answers
22.0k
22.0k views
Suppose that a robot is placed on the Cartesian plane. At each step it is allowed to move either one unit up or one unit right, i.e., if it is at $(i,j)$ then it can move...
25 25 votes
6 answers 6 answers
14.7k
14.7k views
A process has been allocated $3$ page frames. Assume that none of the pages of the process are available in the memory initially. The process makes the following sequence...
139 139 votes
13 answers 13 answers
48.9k
48.9k views
Consider a machine with a byte addressable main memory of $2^{16}$ bytes. Assume that a direct mapped data cache consisting of $32$ lines of $64$ bytes each is used in th...
33 33 votes
3 answers 3 answers
15.8k
15.8k views
Consider the CFG with $\left\{S, A, B\right\}$ as the non-terminal alphabet, $\{a, b\}$ as the terminal alphabet, $S$ as the start symbol and the following set of product...
41 41 votes
4 answers 4 answers
16.4k
16.4k views
Suppose the letters $a, \,b, \,c, \,d, \,e, \,f$ have probabilities $\frac{1}{2}, \frac{1}{4}, \frac{1}{8}, \frac{1}{16}, \frac{1}{32}, \frac{1}{32}$, respectively. Which...
58 58 votes
11 answers 11 answers
21.9k
21.9k views
Consider the following Finite State Automaton:The language accepted by this automaton is given by the regular expression$b^*ab^*ab^*ab^*$$(a + b)^*$$b^*a(a+b)^*$$b^*ab^*a...
81 81 votes
7 answers 7 answers
35.0k
35.0k views
Consider the following program segment. Here $\text{R1, R2}$ and $\text{R3}$ are the general purpose registers.$$\begin{array}{|l|l|l|c|} \hline & \text {Instruction} & \...
40 40 votes
4 answers 4 answers
23.1k
23.1k views
Match the following:$$\begin{array}{|ll|ll|} \hline \text{(P)} & \text{SMTP} &(1)& \text{Application layer} \\\hline \text{(Q)} & \text{BGP}& (2) & \text{Transport layer}...
87 87 votes
11 11 answers
33.6k
33.6k views
The distance between two stations $M$ and $N$ is $L$ kilometers. All frames are $K$ bits long. The propagation delay per kilometer is $t$ seconds. Let $R$ bits/second be ...
53 53 votes
10 answers 10 answers
46.0k
46.0k views
The message $11001001$ is to be transmitted using the CRC polynomial $x^3 +1$ to protect it from errors. The message that should be transmitted is:$11001001000$$110010010...
97 97 votes
16 16 answers
56.7k
56.7k views
The address of a class $\text{B}$ host is to be split into subnets with a $6\;\text{-bit}$ subnet number. What is the maximum number of subnets and the maximum number of ...
15 15 votes
1 answers 1 answer
22.5k
22.5k views
In a token ring network the transmission speed is $10^7$ bps and the propagation speed is $200\;\text{meters}/\mu \text{s}.$ The $1$-bit delay in this network is equivale...
54 54 votes
10 answers 10 answers
23.7k
23.7k views
There are $n$ stations in slotted LAN. Each station attempts to transmit with a probability $p$ in each time slot. What is the probability that ONLY one station transmits...
41 41 votes
7 answers 7 answers
14.4k
14.4k views
Consider the following schedules involving two transactions. Which one of the following statements is TRUE?$S_1 :r_1(X); r_1(Y); r_2(X); r_2(Y); w_2(Y); w_1(X)$$S_2 :r_1(...
69 69 votes
11 answers 11 answers
38.6k
38.6k views
The order of a leaf node in a $B^+$ - tree is the maximum number of (value, data record pointer) pairs it can hold. Given that the block size is $1K\;\text{bytes}$, data ...
124 124 votes
8 answers 8 answers
44.8k
44.8k views
Which one of the following statements is $\text{FALSE}$?Any relation with two attributes is in $\text{BCNF}$A relation in which every key has only one attribute is in $\t...
112 112 votes
7 answers 7 answers
43.6k
43.6k views
Consider the table employee(empId, name, department, salary) and the two queries $Q_1, \, Q_2$ below. Assuming that department $5$ has more than one employee, and we want...
126 126 votes
10 answers 10 answers
36.5k
36.5k views
Consider the relation employee(name, sex, supervisorName) with name as the key, supervisorName gives the name of the supervisor of the employee under consideration. What ...
91 91 votes
14 answers 14 answers
48.8k
48.8k views
Two processes, $P1$ and $P2$, need to access a critical section of code. Consider the following synchronization construct used by the processes:/* P1 */ while (true) { wa...