All Exams Test series for 1 year @ ₹349 only
Question

40 software professionals were interviewed for a job. 25 knew PYTHON 20 knew JAVA and 5 knew neither language. How many knew both languages ?

This question was previously asked in
UGC NET 2024 Computer Science and Applications Question Paper (23-Aug-2024) (Shift 1)
The correct answer is

10

When two groups overlap, the inclusion-exclusion principle gives the size of their union: \(|P \cup J| = |P| + |J| - |P \cap J|\). People who know neither language lie outside the union.

Step 1 — People who know at least one language: \(|P \cup J| = 40 - 5 = 35\).

Step 2 — Substitute into the formula: \(35 = 25 + 20 - |P \cap J|\).

Step 3 — Solve: \(|P \cap J| = 45 - 35 = 10\). So 10 professionals knew both PYTHON and JAVA.

A value of 20 would require only 25 people to know at least one language. The values 53 and 88 are larger than the total of 40 interviewed and cannot be the size of any subgroup.

10 option is correct.

Was this answer helpful?

Similar Questions

  1. Consider a set A = {1, 2, 3, …….., 1000}. How many members of A shall be divisible by 3 or by 5 or by both 3 and 5 ?


Important Questions from Set Operations

  1. If cardinality of a set A is 6 and that of set B is 7 then find the Cardinality of A Δ B?

  2. Consider a set A = {1, 2, 3, …….., 1000}. How many members of A shall be divisible by 3 or by 5 or by both 3 and 5 ?

Need Expert Advice?
Upcoming Exams
CTET
December 12, 2026
WB SET
December 13, 2026
CBSE UGC NET
December 14, 2026
CSIR UGC NET
December 19, 2026
Test Series
UGC NET img
Teaching
UGC NET (Paper 2) December 2026 Mock Test Series
799 Tests 2 Tests Free
300 Attempts
4.4(45)
English, Hindi
More Questions from UGC NET

Start Your Preparation with Prepp Mobile App

Download the app from Google Play & App Store
Download the app from Google Play & App Store
Prepp Mobile App