GATE 2015 (Session 2) Computer Science and Information Technology (CS) Questions with Solutions

GATE 2015 (Session 2)

64 questions

MCQ 42 · NAT 221-mark 29 · 2-mark 35

Questions 26–30 of 64

Q26Undecidability1 markMCQ−0.33 if wrong
Consider two decision problems Q1,Q2Q_1, Q_2 such that Q1Q_1 reduces in polynomial time to 3-SAT and 3-SAT reduces in polynomial time to Q2Q_2. Then which one of the following is consistent with the above statement?

Q27Matching1 markMCQ−0.33 if wrong
Match the following:
P. Lexical analysis1. Graph coloring Q. Parsing2. DFA minimization R. Register allocation3. Post-order traversal S. Expression evaluation4. Production tree

Q28Intermediate Code Generation1 markMCQ−0.33 if wrong
In the context of abstract-syntax-tree (AST) and control-flow-graph (CFG), which one of the following is TRUE?

Q29Software Engineering1 markMCQ−0.33 if wrong
Consider the basic COCOMO model where EE is the effort applied in person-months, DD is the development time in chronological months, KLOCKLOC is the estimated number of delivered lines of code (in thousands) and ab,bb,cb,dba_b, b_b, c_b, d_b have their usual meanings. The basic COCOMO equations are of the form

Q31Transaction1 markMCQ−0.33 if wrong
Consider the following transaction involving two bank accounts x and y.

read(x); x:=x-50; write(x); read(y); y:=y+50; write(y)

The constraint that the sum of the accounts x and y should remain constant is that of