Discussion
Match List – I with List – II and select the correct answer using codes given below :
| List-I | List-II |
|---|---|
| (a) call by reference | (i) Incorrect statement |
| (b) size of (float); | (ii) Function |
| (c) & | (iii) 4 |
| (d) return (a, b); | (iv) bitwise AND |
Answer: C
The matching is a-ii, b-iii, c-iv, d-i. Call by reference is a way of passing arguments to a function, so it goes with function. The operator sizeof(float) gives 4, the number of bytes of a float. The symbol & as a binary operator is the bitwise AND. The statement return (a, b); is an incorrect statement in the sense that a function cannot return two values this way, as the comma operator would give only b. Option (A) pairs call by reference with an incorrect statement. Options (B) and (D) reverse several of the pairs. Only (C) fits all four.
Post your comment
Please log in or register to post a comment.
Examination Categories
- SSC Exams
- Banking Exams
- Teaching Exams
- Civil Services Exams
- Railways Exams
- Engineering Recruitment Exams
- Defence Exams
- State Government Exams
- Police Exams
- Insurance Exams
- Nursing Exams
- Other Government Exams
- NRA CET
- PG Entrance Exams
- Campus Placement
- MBA Entrance Exams
- CUET and UG Entrance
- Judiciary Exams
- Regulatory Body Exams
- Software Development