Placement AptitudeHardWipro · Accenture pattern
How many integers from 1 to 500 are divisible by 3 or by 7, but not by both?
- A. 237
- B. 214
- C. 166
- D. 191
Correct answer: D. 191
Multiples of 3: 166; of 7: 71; of 21 (both): 23. 'Either but not both' = 166 + 71 − 2 × 23 = 191. 214 = 166 + 71 − 23 is 'at least one', which still includes the 23 numbers divisible by both.
Practise more Permutations, Combinations and Probability (Placement) questionsPermutations, Combinations and Probability (Placement): notes and key points
More Permutations, Combinations and Probability (Placement) questions
- 10 chairs are arranged in a circle. In how many ways can 3 chairs be chosen so that no two chosen chairs are next to each other?
- Two cards are drawn without replacement from five cards numbered 1 to 5. What is the expected value of the larger number drawn?
- Two fair dice are thrown. Given that the sum is odd, what is the probability that the sum is a prime number?
- A and B take turns throwing a pair of dice, A first. A wins if A throws a total of 7 before B throws a total of 6; B wins if B throws a…
- How many squares of all sizes are there in a 6 × 4 grid of unit squares?
- 4 married couples stand in a row. In how many arrangements does no husband stand next to his own wife?