Machine-translated by Google. Questions are authored in English.
Top

Discussion

Match List – I with List – II and select the correct answer using codes given below :

List – IList – II
a. if-then1. hex-data
b. % x2. garbage to calling function
c. gets( )3. on-off controller
d. return;4. multi word string

Codes : a b c d

  • A.3 1 4 2
  • B.2 3 4 1
  • C.1 2 3 4
  • D.4 3 2 1

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.