GATE 2006 Computer Science and Information Technology (CS) Questions with Solutions

GATE 2006

191 questions

MCQ 1911-mark 191

Questions 186–190 of 191

Q186Software Engineering1 markMCQ−0.33 if wrong
A software project has four phases P1, P2, P3 and P4. Of these phases, P1 Is the first one and needs to be completed before any other phase can commence. Phases P2 and P3 can be executed in parallel. Phase P4 cannot commence until both P2 and P3 are completed. The optimistic, most likely, and pessimistic estimates of the phase completion times in days, for Pl, P2, P3 and P4 are, respectively, (11, 15, 25), (7, 8, 15), (8, 9, 22), and (3, 8, 19). The critical path for the above project and the slack of P2 are, respectively,

Q187Software Engineering1 markMCQ−0.33 if wrong
 void swap(float* A1, float* A2)
{
    float temp;
    if (*A1 = = *A2) return;
    temp = *A1;
    *A1 = *A2;
    *A2 = temp;
    return;
}

The program volume for the above module using Halstead's method is

Q188Software Engineering1 markMCQ−0.33 if wrong
Consider the following structure chart diagram. The boxes have function names embedded in them, while the variables are indicated along the arcs.
F1 F2 F3 F4 F6 F4 A2 A1 A5 A3 A4 A8 A7 A1 A6 A9 A1

Given below are a set of statements relevant to the above diagram.

I. F3 and F6 can be in the same module.
II. F4 and F6 can be in the same module.
III. A4 is both an output and a control variable.
IV. It is incorrect to pass A1 as data and use it as a control variable.

Which combination of these statements is TRUE?

Q189Software Engineering1 markMCQ−0.33 if wrong
A software program consists of two modules M1M_1 and M2M_2 that can fail independently, but never simultaneously. The program is considered to have failed if any of these modules fails. Both the modules are 'repairable' and so the program starts working again as soon as the repair is done. Assume that the mean time to failure (MTTF) of M1M_1 is T1T_1 with a mean time to repair (MTTR) of R1R_1. The MTTF of M2M_2 is T2T_2 with an MTTR of R2R_2. What is the availability of the overall program given that the failure and repair times are all exponentially distributed random variables?

Q190Software Engineering1 markMCQ−0.33 if wrong
With respect to software testing, consider a flow graph G with one connected component. Let E be the number of edges, N be the number of nodes, and P be the number of predicate nodes of G. Consider the following four expressions:

I. E - N + P
II. E - N + 2
III. P + 2
IV. P + 1

The cyclomatic complexity of G is given by