GATE 2004
199 questions
MCQ 1991-mark 199
Questions 186–190 of 199
What is the availability of a software with the following reliability figures?
Mean Time Between Failure (MTBF) = 25 days
Mean Time To Repair (MTTR) = 6 hours
Mean Time Between Failure (MTBF) = 25 days
Mean Time To Repair (MTTR) = 6 hours
Answer: (D)
Availability formula: MTBF/(MTBF+MTTR) * 100
Put in the values, with MTBF changed to hours: 25*24/(25*24 + 6) * 100
Result: 99.009 %
Put in the values, with MTBF changed to hours: 25*24/(25*24 + 6) * 100
Result: 99.009 %
A software was tested using the error seeding strategy in which 20 errors were seeded in the code. When the code was tested using the complete test suite, 16 of the seeded errors were detected. The same test suite also detected 200 non-seeded errors. What is the estimated number of undetected errors in the code after this testing?
Answer: (B)
In error seeding, the fraction of seeded errors found is taken to be the fraction of real errors found.
Let seeded errors, seeded errors found, and non-seeded errors found.
Estimated total non-seeded errors: .
Undetected errors: . This is the same as .
Answer: (B)
Let seeded errors, seeded errors found, and non-seeded errors found.
Estimated total non-seeded errors: .
Undetected errors: . This is the same as .
Answer: (B)
Assume that the delivered lines of code of a software is related to the effort in person months and duration in calendar months by the relation , where and are two constants for the software process and skills factor. For a software project, the effort was estimated to be 20 person months and the duration was estimated to be 8 months. However, the customer asked the project team to complete the software project in 4 months. What would be the required effort in person months?
Answer: (D)
. The program is the same, so , and stay constant.
So is constant. Raising to the power 3 gives .
person-months.
Answer: (D)
So is constant. Raising to the power 3 gives .
person-months.
Answer: (D)
Consider the following program module:
int module1 (int x, int y) {
while (x! = y) {
if (x > y)
x = x - y,
else y = y - x;
}
return x;
} What is Cyclomatic complexity of the above module?
Answer: (C)
The module has 2 decision points: the condition and the condition.
Cyclomatic complexity = decision points + 1 = .
Check with the flow graph: 5 nodes (while test, if test, , , return) and 6 edges give .
Answer: (C)
Cyclomatic complexity = decision points + 1 = .
Check with the flow graph: 5 nodes (while test, if test, , , return) and 6 edges give .
Answer: (C)
A software project involves execution of 5 tasks T1, T2, T3, T4 and T5 of duration 10, 15, 18, 30 and 40 days, respectively. T2 and T4 can start only after T1 completes. T3 can start after T2 completes. T5 can start only after both T3 and T4 complete. What is the slack time of the task T3 in days?
Answer: (A)
Slack time is how long a task can be delayed without delaying any other task or the project completion date.
Two values are needed to find the slack time:
- ES – the earliest time an activity can start
- LS – the latest time an activity must start.
The slack time is found as:
Slack Time = LS-ES
T3 can start only after T1 and T2 are complete, so
ES=T1+T2=10+15=25
T5: ES =10+15+18=43
T3: LS =43-18=25
Slack time = ES-LS =25-25=0 // For T3