XAT 2012 — QA & DI Question 21
Answer the following question based on the information given below.
Ramya, based in Shanpur, took her car for a 400 km trip to Rampur. She maintained a log of the odometer readings and the amount of petrol she purchased at different petrol pumps at different prices (given below). Her car already had 10 litres of petrol at the start of the journey, and she first purchased petrol at the start of the journey, as given in table below, and she had 5 litres remaining at the end of the journey.
âââââââ
A computer program was tested 300 times before its release. The testing was done in three stages of 100 tests each. The software failed 15 times in Stage I, 12 times in Stage II, 8 times in Stage III, 6 times in both Stage I and Stage II, 7 times in both Stage II and Stage III, 4 times in both Stage I and Stage III, and 4 times in all the three stages. How many times the software failed in a single stage only?
Answer & solution
- A
10
13
- C
15
- D
17
- E
35
Assume that the software fails a, b and c times in a single stage, in two stages and in all stages respectively.
Hence, b + 3c = 6 + 7 + 4 = 17
But c = 4, hence, b = 5
Similarly, we have,
a + 2b + 3c = 15 + 12 + 8
Hence, a = 13
Hence, option (b).