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

GATE 2007

184 questions

MCQ 1841-mark 184

Questions 176–180 of 184

Q176Software Engineering1 markMCQ−0.33 if wrong
Consider the following pseudo-code:
 IF ((A > B) AND (C > D)) THEN
       A = A + 1
       B = B + 1
ENDIF

The cyclomatic complexity of the pseudo-code is

Q177Software Engineering1 markMCQ−0.33 if wrong
Consider the CPM activity chart where an arc connecting two milestones is labeled with a task identifier and the time taken in days. For example in order to go from A to B, task T1 takes 180 days. A dashed line depicts an additional dependency that is equivalent to a zero time task.
B C D G E H I J K F A T1:180 T9: 40 T2: 14 T3: 1 T4: 7 T5: 40 T6: 20 T7: 5 T8: 1 T10: 1
The set of activities that lie on the critical path are

Q178Software Engineering1 markMCQ−0.33 if wrong
In the simplified flowchart given below, the shaded boxes represent code that is executed during a test case.

The Branch coverage is

Q179Software Engineering1 markMCQ−0.33 if wrong
The following table shows the time between failures for a software system.
 Error Number 12345 Time since last failure(hours) 64856\begin{array}{|l|l|l|l|l|l|} \hline \text { Error Number } & 1 & 2 & 3 & 4 & 5 \\ \hline \text { Time since last failure(hours) } & 6 & 4 & 8 & 5 & 6 \\ \hline \end{array}
The reliability of the system for one hour of operation assuming an exponential model is :

Q180Software Engineering1 markMCQ−0.33 if wrong
Which of the following systems is a most likely candidate example of a pipe and filter architecture ?