Question 75

Computer Awareness Data Structure Easy

When one object feference variable is assigned to another object reference variable, then

(A) a copy of the object is created
(B) a copy of thereference is not created
(C) it is illegal to assign one object reference variable to another object reference variable
(D) a copy of the refence is created
✓ Correct Answer: Option B Verified Solution

📘 Step-by-Step Solution & Detailed Explanation:

When assigning one object reference variable to another, the reference itself is assigned, not the object. This means that both reference variables will now point to the same object in memory. Let's clarify each option: \[\] (a) a copy of the object is created: This is incorrect because assigning a reference does NOT involve copying the actual object. \[\] - (b) a copy of the reference is not created: Correct because the reference is just assigned, and no new memory is allocated for the object. \[\] - (c) it is illegal to assign one object reference variable to another object reference variable: Incorrect because reference assignment is valid in most object-oriented languages like Java or C++. \[\] - (d) a copy of the reference is created: Incorrect because only the reference itself is shared between the two variables, with no new copies being created. \[\] Correct Answer: (b)

Practice Similar Data Structure Questions

Reinforce your conceptual grasp with related questions from CUET-MCA 2021:

Q35 Which of the following standard algorithms is not a greedy algorithm?
Solve →
Q54 Which of these operators is used to allocate memory to array variable in...
Solve →
Q56 Consider the following function implemented in C \[\] void test fun(int x,...
Solve →
Q66 What happens if the following program is executed in C and C++? \[\]int...
Solve →
Q69 What is the output of this C code? \[\]void main() \[\]int x = 18;...
Solve →
Full-Length Test Series

Prepare for CUET-MCA Under Real Exam Conditions

Take timed full-length mock tests with authentic question distributions, negative marking (+12/-3 in Math), and instant All India Rank calculation.

Start Free Mock Test Series →