NTA UGC NET June 2025 Paper-2

Question 1
In a group of 120 people: 65 eat rice, 45 eat bread, 42 eat curd, 20 eat both rice and bread, 25 eat both rice and curd, 15 eat both bread and curd, and 8 eat all three items.
Which of the following is the number of people who eat at least one of the three items?
A
56
B
100
C
92
D
65
Question 1 Explanation: 
umber of people who eat at least one item =(Sum of individuals)−(Sum of two-set intersections)+(All-three intersection)
∣R∪B∪C∣=152−60+8
∣R∪B∪C∣=92+8
∣R∪B∪C∣=100
The number of people who eat at least one of the three items is 100.
Question 2
In a pack of 42 cards, 3 cards are chosen one after the other.
Find the number of ways this can be done without replacement.
A
1722 
B
1752 
C
68880
D
6880
Question 2 Explanation: 
The number of ways to choose the 3 cards one after the other is the product of the number of choices at each step:
First card: There are 42 choices.
Second card: Since the first card is not replaced, there are 42−1=41 choices left.
Third card: Since the first two cards are not replaced, there are 42−2=40 choices left.
Total number of ways =42×41×40
Total ways=68,880
Question 3
A positive integer selected at random from the set of positive integers not exceeding 200.
What is the probability that the selected number is divisible by either 2 or 5?
A
2/5
B
3/5
C
4/5
D
1/5
Question 3 Explanation: 
The set of positive integers is S={1,2,3,…,200}. Total Outcomes (N): The total number of integers is 200. Let A be the event that the number is divisible by 2. Let B be the event that the number is divisible by 5. We want to find the probability of the union, P(A∪B). 1. Count of Favorable Outcomes We use the formula for the number of elements in the union of two sets: ∣A∪B∣=∣A∣+∣B∣−∣A∩B∣ Count divisible by 2 (∣A∣): ∣A∣=⌊200/2​⌋=100 Count divisible by 5 (∣B∣): ∣B∣=⌊200/5​⌋=40 Count divisible by both 2 and 5 (∣A∩B∣): A number divisible by both 2 and 5 is divisible by their Least Common Multiple (LCM), which is 10. ∣A∩B∣=⌊200/10​⌋=20 Count divisible by 2 or 5 (∣A∪B∣): ∣A∪B∣=100+40−20=120 2. Probability The probability is the ratio of favorable outcomes to the total outcomes: P(A∪B)=∣A∪B∣​/ N=120​/200 Simplifying the fraction: P(A∪B)=200÷40/120÷40​=3​/5 The probability that the selected number is divisible by either 2 or 5 is 3/5.
Question 4
Consider the Boolean expression A(x, y, z) = x (y′ z)′.
Which of the following is the complete sum-of-products form of the given Boolean expression?
A
xyz + x’yz + x’y′z′
B
xyz’ + x’yz’ + x’y′z′
C
xyz’ + xy’z + x′y′z′
D
xyz + xyz’ + xy′z′
Question 4 Explanation: 
The complete sum-of-products (SOP) form of the Boolean expression A(x,y,z)=x(y′z)′ is xyz′+xy′z′+xy′z (after correcting a simplification step) or xyz′+xy′z′
Question 5
Binary equivalent of (A0F)₁₆ is :
A
111000111 
B
101001111
C
101000001111
D
111100001010
Question 5 Explanation: 
Conversion of (A0F)16​
0 in hex is 0000 in binary.
F in hex is 1111 in binary.
Concatenating the binary groups in order:
A∣0∣F
1010∣0000∣1111 ,br> The binary equivalent of (A0F)16​ is 101000001111.
Question 6
Choose the correct statement for a group G:
A
If for all x, y ∈ G, (xy)² = x²y² then G is Commutative.
B
If for all x ∈ G, x³ = 1, then G is Commutative. 1 is the identity element of G.
C
If for all x ∈ G, x⁵ = 1, then G is Commutative. 1 is the identity element of G.
D
If G is Commutative, the subgroup of G need not be Commutative.
Question 7
The write operation in I/O operation does the following:
A
Transfer data from I/O device to memory
B
Transfer data from memory to I/O device
C
Transfer data from CPU register to memory
D
Transfer data from CPU register to I/O device
Question 7 Explanation: 
In the context of standard Input/Output (I/O) operations, the terms Read and Write describe the direction of data flow relative to the computer's main memory (RAM):
Write Operation: Data is taken from the memory and moved to an external device (I/O device), such as saving a file to a hard disk, sending data to a network card, or displaying characters on a screen.
Read Operation: Data is taken from an external device (I/O device) and moved to the memory, such as loading a file from a hard disk, receiving data from a network, or reading input from a keyboard.
The CPU registers are temporary storage locations within the CPU itself and are typically involved in intermediate steps, but the primary data transfer path for an I/O write operation is between memory and the I/O device.
Question 8
The transformation of data from main memory to cache memory is referred to as —
A
Data exchange 
B
Data transformation 
C
Mapping
D
Matching
Question 8 Explanation: 
The term Mapping (or Cache Mapping) refers to the method or algorithm used to determine where a block of data from the larger main memory will be placed in the smaller, faster cache memory.
The three primary mapping techniques are:
Direct Mapping: Each block of main memory has only one possible location in the cache.
Associative Mapping: A block of main memory can be placed anywhere in the cache.
Set-Associative Mapping: A block of main memory can be placed in any line within a specific "set" in the cache.
Question 9
Gray code equivalent to decimal number 8 is —
A
1000  
B
1100  
C
1010  
D
1110
Question 9 Explanation: 
The conversion from a decimal number to Gray code involves two steps:
Step 1: Decimal to Binary
First, convert the decimal number 8 into its binary equivalent. (8)10​=(1000)2​
Step 2: Binary to Gray Code
The Gray code (G) is derived from the binary code (B) using the following rule:
The Most Significant Bit (MSB) of the Gray code is the same as the MSB of the binary code (G3​=B3​).
Any other bit Gi​ is the result of the Exclusive OR (XOR) operation between the corresponding binary bit Bi​ and the next higher bit Bi+1​ (Gi​=Bi+1​⊕Bi​).
Question 10
Consider the following C code:
int x = 128, y = 110;
do {
if (x > y)
x = x - y;
else
y = y - x;
} while (x != y);
printf("%d", x);
  Which one will be the output?  
A
18
B
2
C
92
D
74
Question 10 Explanation: 
The loop terminates when x becomes equal to y. At this point, x=2 and y=2
Question 11
Which of the following techniques is used for Clipping?
A
Stack based Seed 
B
Scan Line Seed
C
Sutherland–Cohen 
D
Inverse Scaling
Question 11 Explanation: 
The Sutherland–Cohen algorithm is a well-known method used in computer graphics to perform line clipping.
Clipping is the process of determining the portion of a geometric object (like a line segment, polygon, or text) that is visible within a rectangular area, called the clipping window. Any part of the object outside this window is discarded.
Question 12
What will be the output of the following C programming code?
int i, j;
for (i = 1; i < 5; i += 2)
for (j = 1; j < i; j += 2)
printf("%d", j);
A
1
B
1 2
C
1 3
D
1 1 3
Question 13
What would be the equivalent pointer expression for referring the array element ar[m][n][o]?
A
*(*(*(ar) + m + n) + o) *(*(*(ar) + m + n) + o)
B
(*(*(*ar + m) + n) + o)
C
(*(*(ar + m) + n) + o)
D
*(*(*(ar + m) + n) + o)
Question 14
Consider R(A, B, C, D, E) with the following dependencies:
C → F, E → A, EC → D, A → B.
Which of the following is a key for R?
A
CD
B
EC
C
AE
D
AC
Question 15
Consider the relation T1(A, B, C, D, E) with dependencies {EB → C, D → E, EA → B} and T2(A, B, C, D) with dependencies {C → A, A → B, A → D}.
Which of the following is TRUE?
A
T1 is in 3NF
B
T2 is in 3NF
C
T1 is not in 3NF
D
T1 is in 2NF
Question 16
In a relational database, which one of the following is correct?
A
A relation with only two attributes is always in BCNF.
B
If all attributes of a relation are prime attributes then the relation is in BCNF.
C
Every relation has at least one non-prime attribute.
D
BCNF decomposition preserves functional dependencies.
Question 16 Explanation: 
Any 2-attribute relation is always in 4NF, which implies BCNF. However, the "all prime attributes" rule is a more general and theoretically strong statement often tested against the BCNF definition. Given a choice, the BCNF definition based on superkeys is the primary focus.
But option-2(If all attributes of a relation are prime attributes then the relation is in BCNF.) is also true
Question 17
A
1
B
2
C
3
D
4
Question 18
Consider the following table about processes, their burst time and arrival time:
Process Burst Time Arrival Time
P₁ 9 0
P₂ 30 0
P₃ 4 0
P₄ 8 2
P₅ 11 6

Which of the processes shall finish second last as per the respective Gantt charts for non-preemptive SJF and Round Robin (time quantum = 10) scheduling methods?
A
SJF : P4 ; RR : P₄
B
SJF : P₅ ; RR : P₄
C
SJF : P₄ ; RR : P₃
D
SJF : P₅ ; RR : P₅
Question 19
Which of the following statements is correct for Pthreads?
A
It refers to POSIX standard (IEEE 1002.1c)
B
This standard defines API for thread creation only
C
This is a specification only for thread behavior and not its implementation
D
Operating systems like Solaris, Linux, and Mac OS X (except Tru64 UNIX) implement Pthreads
Question 20
What shall be the average waiting time per process if we know that 10 processes (on average) arrive every second and there are normally 20 processes in the queue?
A
3 seconds
B
2 seconds
C
18 seconds
D
9 seconds
There are 20 questions to complete.

Access quiz wise question and answers by becoming as a solutions adda PRO SUBSCRIBER with Ad-Free content

Register Now

If you have registered and made your payment please contact solutionsadda.in@gmail.com to get access