Lecture 18

Create Questions

Submitted Questions

Displaying 1 - 5 of 5

In the instructions given below which of the following statement is used to store the value of N?

  1. PUSH EBP
  2. MOV EBP , ESP
  3. SUB ESP , 0X40
  4. MOV EBX,[EBX+8]
  5. DEC EBX

 

4 viewscreated by   on Sat, 06/13/2020 - 16:30

Find the number of times the loop will be executed.

MOV R6,#200

BACK:MOV R5,#100

HERE: DJNZ R5,HERE

DJNZ R6, BACK

END

3 viewscreated by   on Sat, 06/13/2020 - 16:25

Which of the following are overhead for recursion ?

2 viewscreated by   on Sat, 06/13/2020 - 12:59

int fact_rec(int N)

{

if(N==1)

return 1;

else

return _____________;

}

which of the following statement will be inserted to complete the above code?

 

1 viewcreated by   on Sat, 06/13/2020 - 12:45

write the assembly opcode for the following program.

int fact_rec(int N)

{

if (N==1)

return 1;

else

return N*fact_rec(N-1)

}

1 viewcreated by   on Sat, 06/13/2020 - 12:23