In a survey of software developers regarding their proficiency in three programming languages—Python, Java, and C++:
- developers are proficient in Python.
- developers are proficient in Java.
- developers are proficient in C++.
- developers are proficient in all three languages.
- developers are proficient in none of the three languages.
If the total number of developers proficient in exactly two of these languages is twice the number of developers proficient in Python and Java only, how many developers are proficient in C++ only?
- A
- Answer
- C
- D
- E
Answer
The number of developers proficient in C++ only is 25.
The correct answer is 25. Subtracting the 30 developers proficient in none of the languages leaves 170 developers who are proficient in at least one language. Using the 3-set overlap equations, the number of developers proficient in exactly two languages is calculated to be 80. Since the number proficient in Python and Java only is half of this (40), the sum of the remaining two double-overlap regions (Java & C++ only, and Python & C++ only) must also equal 40. Subtracting this combined double-overlap count of 40 and the triple-overlap count of 20 from the total C++ count of 85 leaves 25 developers proficient in C++ only.
Step-by-Step Solution
Key Concept
Three-Set Overlapping Venn Diagrams and Subset Decompositions
Estimated Time:2m 30s