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

Discussion

Match List-I with List-II :

List I : RegisterList II : Use
(a) IP(i) Loop operations
(b) CX(ii) String manipulation
(c) SI(iii) Modular programming
(d) SP(iv) Code access

  • A.a-iv, b-ii, c-iii, d-i
  • B.a-ii, b-i, c-iii, d-iv
  • C.a-iv, b-i, c-ii, d-iii
  • D.a-i, b-iii, c-ii, d-iv

Answer: C

The correct matching is a-iv, b-i, c-ii, d-iii.

  • (a) IP, the instruction pointer, holds the offset of the next instruction in the code segment: code access (iv).
  • (b) CX is the count register used by LOOP and REP: loop operations (i).
  • (c) SI, the source index, points to the source in string instructions such as MOVS: string manipulation (ii).
  • (d) SP, the stack pointer, manages the stack used by CALL and RET to run subroutines, the basis of modular programming (iii).

The other codes swap the loop counter and the string index or misplace IP.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.