COMPUTER FUNDAMENTALS

COMPUTER SOFTWARE

SYSTEM SOFTWARE

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
The role of the Program Counter (PC) is to____
A
Hold the current instruction being executed
B
Holds the address of the next instruction to be executed
C
Holds the address of the memory location where data is fetched to be fetched from or written to
D
Used to temporarily store data that is read from/written to memory
Explanation: 

Detailed explanation-1: -A program counter is a register in a computer processor that contains the address (location) of the instruction being executed at the current time. As each instruction gets fetched, the program counter increases its stored value by 1.

Detailed explanation-2: -The register which stores the address of the next instruction is called the program counter. Usually after each instruction is executed, the program counter increases by one (hence the use of the word counter) so that it contains the address of the next instruction.

Detailed explanation-3: -A program counter contains the memory location of the next instruction. We can view a program counter as a modern digital counter. It facilitates faster execution of the instructions. Furthermore, it provides tracking of the execution points while the CPU executes the instructions.

Detailed explanation-4: -The program counter, PC, is a special-purpose register that is used by the processor to hold the address of the next instruction to be executed.

There is 1 question to complete.