GATE CSE 2007


Q31.

Consider the following program segment. Here R1, R2 and R3 are the general purpose registers. Assume that the content of memory location 3000 is 10 and the content of the register R3 is 2000. The content of each of the memory locations from 2000 to 2010 is 100. The program is loaded from the memory location 1000. All the numbers are in decimal. Assume that the memory is word addressable. After the execution of this program, the content of memory location 2010 is:
GateOverflow

Q32.

In Ethernet when Manchester encoding is used, the bit rate is:
GateOverflow

Q33.

Match the following: (P) SMTP (1) Application layer (Q) BGP (2) Transport layer (R) TCP (3) Data link layer (S) PPP (4) Network layer (5) Physical layer
GateOverflow

Q34.

Consider a pipelined processor with the following four stages: IF: Instruction Fetch ID: Instruction Decode and Operand Fetch EX: Execute WB: Write Back The IF, ID and WB stages take one clock cycle each to complete the operation. The number of clock cycles for the EX stage depends on the instruction. The ADD and SUB instructions need 1 clock cycle and the MUL instruction needs 3 clock cycles in the EX stage. Operand forwarding is used in the pipelined processor. What is the number of clock cycles taken to complete the following sequence of instructions? ADD R2, R1, R0 (R2 \leftarrow R1 + R0) MUL R4, R3, R2 (R4 \leftarrow R3 * R2) SUB R6, R5, R4 (R6 \leftarrow R5 - R4)
GateOverflow

Q35.

Consider the series x_{n+1}=\frac{x_{n}}{2}+\frac{9}{8x_{n}},x_{0}=0.5 obtained from the Newton-Raphson method. The series converges to
GateOverflow

Q36.

Let G be the non-planar graph with the minimum possible number of edges. Then G has
GateOverflow

Q37.

Two processes, P1 and P2, need to access a critical section of code. Consider the following synchronization construct used by the processes: Here, wants1 and wants2 are shared variables, which are initialized to false. Which one of the following statements is TRUE about the above construct?
GateOverflow

Q38.

Let Graph(x) be a predicate which denotes that x is a graph. Let Connected(x) be a predicate which denotes that x is connected. Which of the following first order logic sentences DOES NOT represent the statement: "Not every graph is connected"?
GateOverflow

Q39.

Information about a collection of students is given by the relation studinfo(\underline{studId}, name, sex). The relation enroll(\underline{studId}, courseId) gives which student has enrolled for (or taken) what course(s). Assume that every course is taken by at least one male and at least one female student. What does the following relational algebra expression represent?
GateOverflow

Q40.

Consider the following two statements: P: Every regular grammar is LL(1) Q: Every regular set has a LR(1) grammar Which of the following is TRUE?
GateOverflow