Q: 1 A processor performing fetch or decoding of different instruction during the execution of another instruction is called ___________.
Super-Scaling
Pipe-Lining
Parallel Computation
None of the above
[ Option B ]
Pipelining is a technique in which a processor overlaps multiple stages of instruction execution. While one instruction is being executed, another instruction can be fetched and a third one can be decoded at the same time.
This means different stages like Fetch → Decode → Execute are performed simultaneously for different instructions, increasing CPU efficiency.
Q: 2 Which of the following obeys immediate addressing mode in assembly language (R1 and R2 are registers)?
MOV R1,#35H
MOV R1,R2
ADD R1,[0301]
None of these
[ Option A ]
In assembly language, addressing mode specifies how the operand is provided to the instruction.
In Immediate Addressing Mode, the operand is a constant value that is directly given in the instruction itself. It is not stored in a register or memory location.
In instruction MOV R1, #35H, #35H represents a constant hexadecimal value (35H). The # symbol indicates that the value is immediate data. This is immediate addressing mode because the value is directly provided in the instruction.
Q: 3 Which of the following architecture is suitable for a wide range of data types?
IA-32
ARM
ASUS firebird
68000
[ Option A ]
IA-32 (Intel Architecture, 32-bit) is a widely used computer architecture known for its support of a wide range of data types such as bytes (8 bits), words (16 bits), double words (32 bits), and quad words (64 bits).
It defines various data sizes and supports complex instruction sets for handling these different types efficiently, making it versatile across many computing applications.
Q: 4 Which of the following is correct for an ‘m’ bit microprocessor?
It has m-1 bits Instruction Register
It has m bit Data Register
It has m-1 bit Data Register
It must have m bit Flag Register
[ Option B ]
An ‘m’ bit microprocessor means that it can process m bits of data at a time. This directly relates to the size of its data register, which must be capable of holding m bits.
| Statement | Why Incorrect? |
|---|---|
| It has m-1 bits Instruction Register | Instruction register size depends on instruction format, not fixed as m-1. |
| It has m-1 bit Data Register | Data register must be m bits to match processor word size. |
| It must have m bit Flag Register | Flag register size depends on number of flags, not on m. |
Q: 5 Consider a computer system with speed of 106 instructions per second. A program P, having 2n2 steps is run on this system, where n is the input size. If n=10000, what is the execution time for P?
2 sec
20 sec
100 sec
200 sec
[ Option D ]
Execution Time = (Number of Instructions) / (Instructions Per Second)
Number of instructions for program P= 2n2
Given, n=10000
Number of instructions = 2*(10000)2 = 2*108
Speed of computer is given as 106 instructions per second.
Execution Time = (2*108) / (106) = 200 seconds
Q: 6 To fetch data from the secondary memory which one of the following registers is used?
MAR
PC
IR
MBR
[ Option A ]
The Memory Address Register (MAR) is used to hold the address of the data that needs to be fetched from or stored to memory, including secondary memory locations during data transfer operations.
When the CPU wants to fetch data from secondary memory, it places the address of the required data in the MAR, which then facilitates the transfer via the system bus.
Q: 7 Zero address instruction format is used for ___________.
Von-Neumann Architecture
CISC Architecture
Stack-Organized Architecture
None of the above
[ Option C ]
A zero address instruction format means that the instruction does not explicitly specify any operands. Instead, all operations are performed using a stack, where operands are implicitly taken from the top of the stack.
In a stack-organized architecture, instructions like ADD automatically use the top elements of the stack, so no address fields are required.
Q: 8 Which of the interrupts are non-maskable?
RST 7.5
TRAP
RST 5.5
INTR
[ Option B ]
In microprocessors like 8085, interrupts can be maskable or non-maskable. A Non-Maskable Interrupt (NMI) cannot be disabled or ignored by the processor and has the highest priority.
TRAP is a non-maskable interrupt, meaning:
Q: 9 A processor has 32bit architecture with 32 bit word instructions. It has 32 registers of each 32 bits long. It need to support 56 instructions, which have immediate operand in addition to two register operands. Assume that the immediate operand is an unsigned integer, the maximum value of immediate operand is?
65536
32768
65535
32767
[ Option C ]
In an instruction format, the total instruction size is fixed, and it must accommodate:
The instruction length is 32 bits. To represent 56 instructions, 6 bits are required for the opcode.
Since there are 32 registers, each register needs 5 bits, so two registers require 10 bits. The remaining bits for the immediate operand are 32-(6+10) = 16 bits. As the immediate value is unsigned, its maximum value is 216-1 = 65535.
Q: 10 Program Counter gets effected by which instruction?
Push, Pop
Call, Return
PSW
Call, Jump
[ Option D ]
The Program Counter (PC) is a special register in a processor that stores the address of the next instruction to be executed.
Normally, the Program Counter increases sequentially after each instruction. But some instructions change the normal flow of execution by loading a new address into the Program Counter.
The instructions that directly affect the Program Counter are:
These instructions transfer control from one location of the program to another.
Q: 11 When n bits are used to represent an operation (op) code, then how many different operations a computer can perform?
n operations
2*n operations
2n operations
2/n operations
[ Option C ]
In a computer, the operation code (opcode) is the part of an instruction that specifies which operation the CPU should perform, such as addition, subtraction, or data transfer.
If an opcode contains n bits, then each bit can have two possible values either 0 or 1. Therefore, the total number of different combinations possible with n bits is 2n.
Each unique combination can represent a different operation. Hence, a computer can perform 2n different operations.
For example, if value of n is 3 then total operations = 23 = 8.
Q: 12 The process when processor fetch or decode another instruction during the execution of current instruction is called?
Supercomputing
Pipelining
Cloud Computing
Grid Computing
[ Option B ]
When the CPU starts fetching or decoding the next instruction while the current instruction is still executing, this overlapping process is called Pipelining. It helps the CPU work faster by using its time efficiently.
Q: 13 The least expensive technology is for PCB design is
Surface Mount Technology
Printed Circuit Borad
Through Hole Technology
CAD Design Technology
[ Option C ]
In PCB (Printed Circuit Board) manufacturing, different technologies are used to mount electronic components on the board. The cost of production depends on the manufacturing process, equipment required, assembly complexity, and component handling.
Through Hole Technology (THT) is considered the least expensive and simplest technology for basic PCB design and assembly, especially for small-scale production and educational projects.
In this technology, the leads of components are inserted through holes drilled in the PCB and then soldered on the opposite side.
In Surface Mount Technology (SMT), the components mounted directly on PCB surface and cost is high.
Q: 14 Which of the following registers is used to keep track of address of memory location where the next instruction is located?
Program Counter
Memory Address Register
Memory Data Register
Instruction Counters
[ Option A ]
The register that keeps track of the address of the next instruction to be executed is the Program Counter (PC). After one instruction is executed, the PC is automatically updated to point to the next instruction in memory.
Q: 15 The instructions like MOV or ADD are called as ___________.
Opcode
Operators
Operand
None of the above
[ Option A ]
In assembly language, instructions like MOV and ADD are called opcodes (Operation Codes). An opcode specifies what operation the processor has to perform, such as moving data or performing addition. An instruction generally has two parts:
The operator is general programming term.
Q: 16 Index register in a digital computer is used for?
Pointing to the stack address
Indirect addressing
Keeping track the number of times loop executed
Address modification
[ Option D ]
A Register is a very small and very fast memory unit inside the CPU. It is used to temporarily store data, instructions, addresses, or results while the CPU is working. Because registers are located inside the processor, the CPU can access them much faster than main memory (RAM).
An Index Register is a special-purpose register used mainly to modify the address of an operand during program execution. It is commonly used when accessing arrays, tables, or sequential data structures.
| REGISTER TYPE | DESCRIPTION |
|---|---|
| Accumulator (AC) | Stores intermediate results of arithmetic and logic operations. |
| Program Counter (PC) | Holds the address of the next instruction to be executed. |
| Instruction Register (IR) | Stores the instruction currently being executed. |
| Memory Address Register (MAR) | Stores the address of the memory location to be accessed. |
| Memory Data Register (MDR) | Stores data being transferred to or from memory. |
| General Purpose Register | Store temporary data and operands. |
| Index Register | Used to modify addresses, especially while accessing arrays. |
| Base Register | Holds the starting address of a program or data block |
| Stack Pointer (SP) | Points to the top of the stack. |
| Status / Flag Register | Stores condition flags such as Zero, Carry, and Overflow. |
Q: 17 Which Register holds the address of the next instruction to be executed?
Instruction Register
Accumulator
Program Counter
Data Register
[ Option C ]
The Program Counter (PC) is a special register in the CPU that stores the address of the next instruction to fetch and execute from memory.
After fetching the current instruction, the PC increments to point to the next instruction’s address unless modified by a jump or branch instruction.
This allows the CPU to execute the sequence of instructions in order and supports control flow changes.
Q: 18 What will be the contents of the register AL after the following statements are executed?
MOV BL, 8C
MOV AL, 7E
ADD AL, BL
0A and carry flag is set
0A and carry flag is reset
6A and carry flag is set
6A and carry flag is reset
[ Option A ]
In this question, the values are in hexadecimal. First, the instruction MOV BL, 8C loads 8C (hex) into BL, and MOV AL, 7E loads 7E (hex) into AL.
Now perform the addition:
126+140 = 266 (Decimal)
Convert 266 back to hexadecimal:
266 = 10A (Hex)
Since AL is an 8-bit register, it can store only values from 00 to FF (0 to 255 in Decimal). The result 10A (Hex) = 266 (Decimal) exceeds this range.
So, AL stores only the lower 8 bits, which is 0A (Hex) = 10 (Decimal). The remaining higher bit (1) is carried out, so the carry flag is set.
Q: 19 A CPU generates 32-bit virtual addresses. The page size is 4 KB. The processor has a translation look-aside buffer (TLB) which can hold a total of 128-page table entries and is 4-way set associative. The minimum size of the TLB tag is:
13 bits
20 bits
11 bits
15 bits
[ Option D ]
The CPU generates 32-bit virtual addresses. Since the page size is 4 KB, this means each page contains 212 bytes. Therefore, the lower 12 bits of the virtual address are used as the page offset. The remaining bits represent the virtual page number (VPN). Hence, the number of VPN bits is 32-12=20 bits.
The Translation Look-Aside Buffer (TLB) can hold a total of 128 page table entries and is 4-way set associative. This means the TLB is divided into sets, with each set containing 4 entries. The total number of sets in the TLB is 128/4=32. Since 32=25, 5 bits are required to select a set.
The TLB tag is formed from the remaining bits of the virtual page number after removing the set index bits. Therefore, the size of the TLB tag is 20-5=15 bits.
Q: 20 If a processor clock is rated as 2500 million cycles per second, then its clock period is?
2.50*10-10 sec
4.00*10-10 sec
1.00*10-10 sec
None of these
[ Option B ]
Clock frequency = 2500 million cycles per second
= 2500*106 = 2.5*109 Hz
Clock period is the inverse of frequency:
Clock Period = 1/Clock Frequency
=1/2.5*109 = 0.4*10−9 = 4.0*10−10 sec
Number Scale Table:
| NAME | POWER OF 10 |
|---|---|
| Thousand | 103 |
| Million | 106 |
| Billion | 109 |
| Trillion | 1012 |
| Quadrillion | 1015 |
| Quintillion | 1018 |
Q: 21 In which addressing mode the operand is given explicitly in the instruction?
Absolute
Immediate
Indirect
Index
[ Option B ]
Addressing Modes define how an operand is specified in an instruction. In Immediate Addressing Mode, the actual data (operand) is directly provided within the instruction itself. This means no memory lookup is required to fetch the operand, making it fast and straightforward.
For example, in an instruction like MOV AL, 5, the value 5 is directly given in the instruction. Hence, it is called Immediate Addressing Mode.
| ADDRESSING MODE | DESCRIPTION | EXAMPLE |
|---|---|---|
| Immediate | The operand is directly given in the instruction itself, so no memory lookup is needed. | MOV AL, 5 |
| Absolute (Direct) | The instruction contains the memory address of the operand, and the CPU fetches data from that location. | MOV AL, [1000H] |
| Indirect | The instruction specifies a register/memory that holds the address of the operand, so an extra step is needed. | MOV AL, [BX] |
| Indexed | The effective address is calculated using an index register and a constant value, useful for arrays. | MOV AL, [SI + 10] |
Q: 22 Which of the following processor registers are used for fetch and execute operations?
(i) Program Counter
(ii) Instruction Register
(iii) Address Register
Only (i)
Only (ii)
Only (i) and (ii)
Only (ii) and (iii)
[ Option C ]
During the fetch-execute cycle, specific CPU registers play important roles. The Program Counter (PC) holds the address of the next instruction to be fetched from memory. During the fetch phase, the PC is used to locate the instruction.
The fetched instruction is then loaded into the Instruction Register (IR), which holds the current instruction while it is being decoded and executed. So, both PC and IR are directly involved in the fetch and execute operations.
The Address Register (Memory Address Register [MAR]) is used to hold memory addresses during read/write operations, but it is not specifically responsible for controlling the fetch-execute sequence itself in this context.
Q: 23 The register which keeps track of the execution of a program and which contains the memory address of the instruction currently being executed is known as _________.
Index Register
Memory Address Register
Program Counter
Instruction Register
[ Option C ]
During program execution, the CPU must keep track of which instruction is currently being executed and which one will be executed next. This is done using a special register called the Program Counter.
The Program Counter (PC) stores the memory address of the next instruction to be executed. As each instruction is executed, the PC is automatically updated to point to the next instruction in sequence. This ensures the correct flow of program execution.
Q: 24 The instruction fetch phase ends with _______________.
Placing the data from the address in MAR into MDR.
Placing the address of the data into MAR.
Completing the execution of the data and placing its storage address into MAR.
Decoding the data in MDR and placing it in IR.
[ Option D ]
The instruction fetch phase is the first step of the instruction cycle in a CPU. During this phase, the instruction is fetched from memory and prepared for execution.
During the instruction fetch phase, the address from the Program Counter (PC) is first transferred to the MAR, then the instruction is fetched from memory into the MDR, and finally it is transferred to the IR and decoded.
The fetch phase ends when the instruction is placed in the IR and decoded, making it ready for execution.
Q: 25 A microprocessor operates with a crystal frequency of 16 MHz and clock frequency half the crystal frequency. The time required to execute an instruction is 0.5 µs. What is the number of T-states needed for executing that particular instruction?
1
4
5
8
[ Option B ]
In a microprocessor, the execution of an instruction is measured in T-states, where one T-state represents one clock cycle. The duration of each T-state depends on the clock frequency, which is derived from the crystal frequency.
In this question, the crystal frequency is 16 MHz, and since the clock operates at half of it, the effective clock frequency becomes 8 MHz. The time period of one clock cycle is the inverse of frequency, so one T-state takes 1/(8*106) or 1/8 MHz = 0.125μs.
Now, the total time required to execute the instruction is given as 0.5 µs. To find the number of T-states, we divide the total execution time by the time of one T-state: 0.5/0.125 = 4. This means the instruction takes 4 clock cycles (T-states) to execute.
Q: 26 What is the minimum length of Opcode (in bits) required to implement a CPU with 20 arithmetic instructions, 1 control instruction and 2 data transfer instructions?
6
5
8
16
[ Option B ]
In a CPU, the opcode is the part of an instruction that specifies the operation to be performed. To uniquely represent all instructions, the number of opcode bits must be sufficient to encode every instruction.
In this question, the total number of instructions are 23 [20 (Arithmetic) + 1 (Control) + 2 (Data Transfer)].
To determine the minimum number of bits required, we use the concept that 2n possible combinations can be represented using n bits.
Here, 24=16 is not enough to represent 23 instructions, while 25=32 is sufficient. Therefore, the minimum number of bits required for the opcode is 5.
Q: 27 What is the function of the program counter register?
It holds the operand address
It holds the address of current instruction
It holds the address of previous instruction
It holds the address of next instruction
[ Option D ]
The Program Counter (PC) is a special register in the CPU that stores the address of the next instruction to be executed.
When the processor executes one instruction, the Program Counter automatically updates to point to the next instruction in memory. This helps the CPU execute programs sequentially.
Q: 28 In Register direct addressing mode, data are accessed by,
specifying the register name in which they are stored.
specifying the memory location in which they are stored.
secondary storage.
specifying the data directly.
[ Option A ]
Register Direct Addressing Mode
So, in Register Direct Addressing Mode, data are accessed by specifying the register name in which they are stored.
Q: 29 Small fastest data holding unit in CPU is _________.
Cache
Register
Buffer
All of these
[ Option B ]
A Register is the smallest and fastest storage unit inside the CPU. Registers are located directly within the processor and are used to hold data, instructions, memory addresses, or intermediate results during execution.
Registers operate at the same speed as the CPU, which makes them significantly faster than cache and main memory. Because of their limited size and very high speed, they are used for immediate processing tasks.
Thank you so much for taking the time to read my Computer Science MCQs section carefully. Your support and interest mean a lot, and I truly appreciate you being part of this journey. Stay connected for more insights and updates! If you'd like to explore more tutorials and insights, check out my YouTube channel.
Don’t forget to subscribe and stay connected for future updates.