Software Engineering MCQ
Software Engineering MCQ
21. In unit testing of a module, it is found that for a set of test data, at the maximum 90% of the code alone were tested with the probability of success 0.9. The reliability of the module is
- greater than 0.9
- equal to 0.9
- at most 0.81
- at least 1/0.81
22. Which of the following testing methods is normally used as the acceptance test for a software system ?
- regression testing
- Integration testing
- Unit testing
- Functional testing
23. A computer program can often be a very satisfactory ..... of a physical system such as road traffic conditions.
- solution
- replacement
- simulation
- model
24. for ( i = 0, s = 0 ; i < n; i++) s += a [i] ;
the symbolic execution with n = 3 at i = 2, s is
- a0 + a1 + a2 + a3
- a0 + a1 + a2
- a0 + a1
- a0 + a1 + a3
25. Software testing techniques are most effective if applied immediately after
- requirement specification
- design
- coding
- integration
26. For the above code, using symbolic execution, after the iteration with N = 5, IFACT is
- 1 * 1 * 2 * 3 * 4 * 5
- 1 * 2 * 3 * 4 * 5
- 1 * 1 * 2 * 3 * 4
- 1 * 2 * 3 * 4
27. Which of the following is not an assertion ?
- P is true, P and Q are true and K or not (Q) is t rue implies K is true.
- P is true, P and Q are true and K or not (Q) is true implies K is true.
- P is true, P and Q are false and K or Q is true implies K is true.
- P is true, P and Q are true and K or not (K) is true implies K is true.
28. The reliability of a program be 0.8. The reliability of an equivalent program (ie., another program that serves the same purpose)is 0.9. The probability that both the programs give the wrong result for the same input is
- 0.72
- 1.7
- 0.1
- 0.02
29. The program volume of a source code that has 10 operators including 6 unique operators, and 6 operands including 2 unique operands is
- 48
- 120
- 720
- insufficient data
30. To increase reliability, fault tolerance is included in the system in the form of multiple modules. If the problem can be solved by 5 different modules, each with probability of success 0.7. the probability that it can be solved even if 4 modules fail is approximately
- 0.3
- 0.03
- 0.49
- 0.05