ISRO Computer Science (CSE) 2013 - Question 35

All ISRO Computer Science (CSE) papers | ISRO Computer Science (CSE) 2013

How many number of times the instruction sequence below will loop before coming out of the loop? MOV AL, 00H; A1: INC AL; JNZ A1

  • A. 1
  • B. 255
  • C. 256
  • D. will not come out the loop

Answer: C. 256

Explanation: AL starts 0. INC AL -> 1 (NZ). Loops... 255 (NZ). INC -> 0 (Zero flag set). Loop terminates. Total 256 iterations (1 to 0).

| | All questions of ISRO Computer Science (CSE) 2013