Answer a)
The fundamental distinction between PUSH and POP is how they handle stacks. When you want to add more items to a stack, use PUSH, and when you want to remove items from it, use POP.
POP removes the entry at the end of the stack, or the one that was most recently added to it, automatically.
POP only accepts one argument, but PUSH accepts two.
Answer b)
A stack pointer is a CPU register that keeps track of the current call stack. An instruction pointer, on the other hand, is a CPU register that shows where a computer is in its programme sequence.
Instruction pointer is also known as a programme counter, instruction address register, and instruction counter, whereas stack pointer is also known as a stack register.
The address of the previous programme request in a stack is stored in the stack pointer, whereas the address of the next instruction to be executed is stored in the instruction pointer.
The stack pointer keeps track of the stack's actions, whereas the instruction pointer keeps track of the current execution point.
Answer c)
A closed loop instruction is a rotation instruction. That is, data that has been transported out of one end gets returned to the other. The data that is transferred out of the final bit positions is lost when using the shift instruction.
Shift rotates the bits out one side and back in the other, whereas rotate cycles the bits around going out one side and back in the other, leaving the region where the rotated bits were either unmodified or zeroes.
No comments:
Post a Comment