Skip to content
Related Articles

Related Articles

Improve Article
Save Article
Like Article

UGC-NET | UGC-NET CS 2017 Dec 2 | Question 31

  • Last Updated : 19 Nov, 2018

Consider the following program fragment in assembly language :

mov ax, 0h
mov cx, 0A h

doloop :
dec ax
loop doloop

What is the value of ax and cx registers after the completion of the doloop ?
(A) ax=FFF5 h and cx=0 h
(B) ax=FFF6 h and cx=0 h
(C) ax=FFF7 h and cx=0A h
(D) ax=FFF5 h and cx=0A h

Answer: (B)


Quiz of this Question

My Personal Notes arrow_drop_up

Start Your Coding Journey Now!