Skip to content
Related Articles

Related Articles

UGC-NET | UGC NET CS 2014 Dec – III | Question 4
  • Last Updated : 28 Jun, 2018



Match the following:

List – IList – II
(a)XCHG(i)only carry flag is affected.
(b)SUB(ii) no flags are affected.
(c)STC(iii) all flags other than carry flag are affected.
(d)DCR(iv)all flags are affected.


codes:

(a)(b)(c)(d)
(1)(iv)(i)(iii)(ii)
(B)(iii)(ii)(i)(iv)
(C)(ii)(iii)(i)(iv)
(D)(ii)(iv)(i)(iii)



(A) (A)
(B) (B)
(C) (C)
(D) (D)


Answer: (D)

Explanation:

  • In XCHG instruction exchange of data takes place so, no flags are affected.
  • In SUB instruction subtraction occurs so, all flags are affected.
  • STC is set carry flag so, only carry flag will be affected
  • DCR is decrement flag all flag other then carry will be affected.

    So, option (D) is correct.

    Quiz of this Question

    Attention reader! Don’t stop learning now. Get hold of all the important DSA concepts with the DSA Self Paced Course at a student-friendly price and become industry ready.

    My Personal Notes arrow_drop_up
  • Recommended Articles
    Page :