Skip to content

M.C.A. (Online Mode) Semester I Examination ​

Paper Code: OCA-502 MJ
Title: Processor Architecture and Design
Time: 3 Hours
Maximum Marks: 70

Q1) Multiple Choice Questions with reasoning — answer any 25 of 30 [25 × 2 = 50] ​

For every attempted question, select one option and give a brief reason.

No.QuestionABCD
1The stored-program concept means that:Instructions are separate from dataInstructions and data share memoryHardware must be rewiredData stays only in registers
2During fetch, the next instruction address comes from the:IRPCALUMDR
3The control unit primarily:Calculates arithmeticGenerates control signalsStores programs permanentlyReplaces the datapath
4NAND and NOR are universal because:They are fastestEither can implement any Boolean functionThey use no powerThey have two inputs
5A D flip-flop normally updates Q:Whenever D changesOn the active clock edgeOnly without a clockContinuously like a latch
6An FSM's next state depends on:Inputs onlyCurrent state onlyCurrent state and inputsClock frequency only
7The data bus is normally:CPU-to-memory onlyBidirectionalAddress-onlyControl-only
8Which component routes traffic between the fast CPU side and slower peripherals?Register fileALUChipsetInstruction register
9The two central CPU parts are:Cache and MMUDatapath and control unitALU and diskROM and buses
10DRAM stores a bit as:A stable flip-flopCapacitor charge needing refreshA magnetic domainA fuse
11CPU execution time equals:instruction count × clock rateinstruction count × CPI × cycle timeCPI + clock rateclock rate ÷ instructions
12Which is not a standard cache-miss class?CompulsoryCapacityConflictRead
13An ideal five-stage pipeline's steady throughput is:One instruction per five cyclesOne instruction per cycleFive per cycleOne per delay slot
14A data hazard occurs when:Two instructions need one resourceA needed result is not yet availableA branch target is unknownA cache misses
15Forwarding does what?Removes every hazardRoutes a result to a later stage before write-backRaises clock ratePredicts branches
16Which feature best identifies a load/store RISC design?Opcode countOnly loads/stores access memoryVariable instruction lengthFew registers
17AMAT is:hit time + miss rate × miss penaltyhit time × miss ratehit time + miss penaltyhit time ÷ miss rate
18Which ISA is an open standard?x86ARMRISC-V68000
19Time-sharing gives each process the illusion that it:Has unlimited RAMOwns the CPU continuouslyMay execute privileged instructionsHas extra registers
20A Type 1 hypervisor runs:As a host applicationDirectly on hardwareInside each guestIn firmware only
21A Type 2 hypervisor runs:On bare metalOn a host OSIn every guestOnly in protected ROM
22Virtual memory primarily gives each process:A replacement OSA large private address spaceA cache-only addressBIOS storage
23A TLB caches:Address translationsWhole page tables onlyInstructionsDisk blocks
24A set dirty bit means the page:Is executableHas been writtenIs absentIs shared
25Divide-by-zero during instruction execution is a:Hardware interruptNMISynchronous exceptionDMA request
26A good ISR should:Do all work inside itBe fast and defer noncritical workRun in user modeBlock for resources
27A system call enters the kernel through a:Device interruptSoftware-triggered synchronous trapPower failureCache miss
28Changing a calling convention breaks the:ABI, usually not APIAPI, usually not ABICache onlyISA only
29The normal PC boot order is:Kernel, firmware, bootloader, initFirmware, bootloader, kernel, initBootloader, firmware, init, kernelInit, firmware, kernel, bootloader
30Device drivers need kernel privilege because:User mode is slowerHardware access is privilegedDrivers always need more RAMEncryption requires it

Q2) Answer any five in approximately two sentences [5 × 2 = 10] ​

  1. State the roles of the PC and IR during the instruction cycle.
  2. Distinguish combinational and sequential circuits.
  3. Name the address, data, and control buses and state one role of each.
  4. Distinguish temporal and spatial locality.
  5. What is a pipeline data hazard, and how can forwarding help?
  6. Distinguish virtual and physical addresses.
  7. Differentiate an interrupt, an exception, and a trap.

Q3) Answer any two in approximately ten lines [2 × 5 = 10] ​

  1. Explain the fetch–decode–execute cycle and the roles of the datapath and control unit.
  2. Compare SRAM and DRAM, then explain how cache exploits locality to reduce AMAT.
  3. Explain the five-stage instruction pipeline and the three classes of pipeline hazard.
  4. Trace the boot path from firmware to user applications and distinguish API, ABI, ISA, and microarchitecture.

Built from Markdown with VitePress.