Discussion
Match List – I with List – II and select the correct answer using codes given below :
| List – I | List – II |
|---|---|
| a. if-then | 1. hex-data |
| b. % x | 2. garbage to calling function |
| c. gets( ) | 3. on-off controller |
| d. return; | 4. multi word string |
Codes : a b c d
Answer: A
The if-then construct is the on-off controller, so a matches 3. The format code %x is used for hexadecimal data, so b matches 1. The function gets( ) reads a multi word string, including spaces, so c matches 4. The statement return; in a function that should return a value hands back garbage to the calling function, so d matches 2. The code is 3 1 4 2. The codes 2 3 4 1, 1 2 3 4 and 4 3 2 1 each mismatch the first pair. The answer is 3 1 4 2.
No comment is present. Be the first to comment.
Loading…
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