OA. free
Free
Oracle Core Computer Science Core Computer Science Medium

9.

Oracle technical mcq question, verified with a worked answer. Free to practise - no sign-up.

Logic - Department Members**

In a company, 26 employees are in the HR department, 32 are in the technical department, and 30 are in the management department. Of these, 5 employees are in all three departments, 37 are in only one of them. How many employees like only two of the three departments?

Pick ONE option

Choose one option.
Show answer & explanation
Answer: B. B) 18

Total sum of sizes = 26 + 32 + 30 = 88. 88 = 1*(only 1) + 2*(only 2) + 3*(all 3) = 37 + 2*(only 2) + 3(5) = 52 + 2*(only 2). Thus only 2 = (88 - 52)/2 = 18.

Step-by-step Derivation:
Step 1: Sum of sizes S = 26 + 32 + 30 = 88.
Step 2: S = N1 + 2N2 + 3N3 where N1 = 37, N3 = 5.
Step 3: 88 = 37 + 2N2 + 15 = 52 + 2N2.
Step 4: 2*N2 = 36 => N2 = 18.