કમ્પ્યુટર આર્કિટેક્ચર: પ્રશ્નો અને જવાબોComputer Architecture: questions and answers
GPSC, GSSSB, તલાટી અને ગુજરાત પોલીસ પરીક્ષા માટે 10 ફ્રી પ્રશ્નો, દરેકનો જવાબ અને ગુજરાતી + English સમજૂતી સાથે.10 free practice questions for GPSC, GSSSB, Talati and Gujarat Police exams, each with the answer and a Gujarati + English explanation.
1. પાઇપલાઇનિંગમાં, "માળખાકીય ખતરો" ત્યારે થાય છે જ્યારે:In pipelining, a "structural hazard" occurs when:
- Aસૂચના અગાઉની સૂચનાના પરિણામ પર આધારિત છેAn instruction depends on the result of a previous instruction
- Bબે સૂચનાઓ માટે એક જ સમયે સમાન હાર્ડવેર સંસાધનનો ઉપયોગ જરૂરી છેTwo instructions require the use of the same hardware resource at the same time
- Cશાખાની સૂચના અમલના પ્રવાહમાં ફેરફાર કરે છેA branch instruction changes the flow of execution
- DAn interrupt occursAn interrupt occurs
જવાબ જુઓShow answer
જવાબ:Answer: (B) બે સૂચનાઓ માટે એક જ સમયે સમાન હાર્ડવેર સંસાધનનો ઉપયોગ જરૂરી છેTwo instructions require the use of the same hardware resource at the same time
સંસાધન તકરારના કારણે માળખાકીય જોખમો ઉદ્ભવે છે, જ્યાં હાર્ડવેર એકસાથે બધી ઓવરલેપ થયેલી સૂચનાઓને સમર્થન આપી શકતું નથી (દા.ત., ડ્યુઅલ પોર્ટ વિના એક જ મેમરી બેંક પર વારાફરતી વાંચવાનો અને લખવાનો પ્રયાસ કરવો).Structural hazards occur due to resource conflicts, where the hardware cannot support all overlapped instructions simultaneously (e.g., trying to read and write to the same memory bank simultaneously without dual ports).
2. CPU માં પાઇપલાઇનિંગ સુધારે છે:Pipelining in CPU improves:
- AMemory capacityMemory capacity
- BThroughput (instruction execution rate)Throughput (instruction execution rate)
- CAccuracyAccuracy
- DStorageStorage
જવાબ જુઓShow answer
જવાબ:Answer: (B) Throughput (instruction execution rate)Throughput (instruction execution rate)
પાઇપલાઇનિંગ બહુવિધ સૂચનાઓના અમલીકરણને ઓવરલેપ કરીને CPU થ્રુપુટને સુધારે છે. જ્યારે દરેક સૂચના એક જ સમય લે છે, ત્યારે એકસાથે વિવિધ તબક્કામાં બહુવિધ સૂચનાઓ પર પ્રક્રિયા કરવામાં આવે છે.Pipelining improves CPU throughput by overlapping the execution of multiple instructions. While each instruction takes the same time, multiple instructions are processed simultaneously at different stages.
3. પાઈપલાઈનિંગમાં ડેટાના જોખમોને બાયપાસ કરવા માટે વપરાતી ટેકનિકને ALU થી સીધું જ આગળની સૂચનાના અમલના તબક્કામાં પસાર કરીને કહેવામાં આવે છે:A technique used to bypass data hazards in pipelining by passing the result directly from the ALU to the execution stage of the next instruction is called:
- ABranch predictionBranch prediction
- BData forwarding (or bypassing)Data forwarding (or bypassing)
- CInstruction schedulingInstruction scheduling
- DLoop unrollingLoop unrolling
જવાબ જુઓShow answer
જવાબ:Answer: (B) Data forwarding (or bypassing)Data forwarding (or bypassing)
ડેટા ફોરવર્ડિંગ (જેને ઓપરેન્ડ બાયપાસિંગ પણ કહેવાય છે) એએલયુ અથવા મેમરી યુનિટના આઉટપુટમાંથી ડેટાને સીધા જ પાઈપલાઈનના પહેલાના તબક્કામાં લઈ જાય છે જ્યાં તેની જરૂર હોય, રજિસ્ટર ફાઇલને બાયપાસ કરીને.Data forwarding (also called operand bypassing) routes data directly from the output of an ALU or memory unit back to an earlier stage of the pipeline where it is needed, bypassing the register file.
4. કઈ બસ CPU અને મેમરી વચ્ચે ડેટા વહન કરે છે?Which bus carries data between the CPU and memory?
- AAddress BusAddress Bus
- BData BusData Bus
- CControl BusControl Bus
- DSystem BusSystem Bus
જવાબ જુઓShow answer
જવાબ:Answer: (B) Data BusData Bus
ડેટા બસ CPU, મેમરી અને I/O ઉપકરણો વચ્ચે વાસ્તવિક ડેટા વહન કરે છે. એડ્રેસ બસ મેમરી એડ્રેસ વહન કરે છે અને કંટ્રોલ બસ કંટ્રોલ સિગ્નલો વહન કરે છે.The Data Bus carries actual data between the CPU, memory, and I/O devices. The Address Bus carries memory addresses, and the Control Bus carries control signals.
5. દ્વિસંગી સંખ્યા 101101 ના દશાંશ સમકક્ષ શું છે?What is the decimal equivalent of the binary number 101101?
- A4343
- B4545
- C4747
- D4949
જવાબ જુઓShow answer
જવાબ:Answer: (B) 4545
(1 × 32) + (0 × 16) + (1 × 8) + (1 × 4) + (0 × 2) + (1 × 1) = 32 + 8 + 4 + 1 = 45.(1 × 32) + (0 × 16) + (1 × 8) + (1 × 4) + (0 × 2) + (1 × 1) = 32 + 8 + 4 + 1 = 45.
6. BIOS નો અર્થ શું છે?What does BIOS stand for?
- ABasic Input Output SystemBasic Input Output System
- BBinary Input Output SystemBinary Input Output System
- CBasic Integrated Operating SystemBasic Integrated Operating System
- DBinary Integrated Output SystemBinary Integrated Output System
જવાબ જુઓShow answer
જવાબ:Answer: (A) Basic Input Output SystemBasic Input Output System
BIOS એ મૂળભૂત ઇનપુટ આઉટપુટ સિસ્ટમ માટે વપરાય છે — બુટીંગ પ્રક્રિયા દરમિયાન હાર્ડવેર આરંભ કરવા માટે વપરાતું ફર્મવેર.BIOS stands for Basic Input Output System — firmware used to perform hardware initialization during the booting process.
7. DMA નો અર્થ છે:DMA stands for:
- ADirect Memory AccessDirect Memory Access
- BDynamic Memory AllocationDynamic Memory Allocation
- CDigital Memory ArrayDigital Memory Array
- DData Memory ArchitectureData Memory Architecture
જવાબ જુઓShow answer
જવાબ:Answer: (A) Direct Memory AccessDirect Memory Access
ડીએમએ (ડાયરેક્ટ મેમરી એક્સેસ) હાર્ડવેર ઉપકરણોને સીપીયુ હસ્તક્ષેપ વિના સીધું જ સિસ્ટમ મેમરીને એક્સેસ કરવાની મંજૂરી આપે છે, મોટા ડેટા ટ્રાન્સફર માટે I/O પ્રદર્શનમાં સુધારો કરે છે.DMA (Direct Memory Access) allows hardware devices to access system memory directly without CPU intervention, improving I/O performance for large data transfers.
8. હેક્સાડેસિમલ નંબર "1F" દશાંશ નંબરની સમકક્ષ છે:The hexadecimal number "1F" is equivalent to the decimal number:
- A2525
- B3131
- C3333
- D3535
જવાબ જુઓShow answer
જવાબ:Answer: (B) 3131
હેક્સમાં 1F = 1×16 + F×1 = 1×16 + 15×1 = 16 + 15 = 31 દશાંશમાં.1F in hex = 1×16 + F×1 = 1×16 + 15×1 = 16 + 15 = 31 in decimal.
9. નીચેનામાંથી કઈ નોન-વોલેટાઈલ મેમરી છે?Which of the following is a non-volatile memory?
- ARAMRAM
- BCacheCache
- CROMROM
- DRegisterRegister
જવાબ જુઓShow answer
જવાબ:Answer: (C) ROMROM
ROM (ઓન્લી-રીડ મેમરી) નોન-વોલેટાઇલ છે — પાવર બંધ હોય ત્યારે પણ તે તેનો ડેટા જાળવી રાખે છે. રેમ, કેશ અને રજિસ્ટર અસ્થિર યાદો છે.ROM (Read-Only Memory) is non-volatile — it retains its data even when the power is turned off. RAM, Cache, and Registers are volatile memories.
10. માઇક્રો-પ્રોગ્રામ્ડ કંટ્રોલ યુનિટમાં, સૂચનો જે સૂક્ષ્મ-ઓપરેશનનો ક્રમ નક્કી કરે છે તે આમાં સંગ્રહિત થાય છે:In a micro-programmed control unit, the instruction that determines the sequence of micro-operations is stored in the:
- AMain memoryMain memory
- BControl Memory (ROM)Control Memory (ROM)
- CArithmetic Logic UnitArithmetic Logic Unit
- DCache MemoryCache Memory
જવાબ જુઓShow answer
જવાબ:Answer: (B) Control Memory (ROM)Control Memory (ROM)
કંટ્રોલ મેમરી એ કંટ્રોલ યુનિટની અંદર એક રોમ (અથવા રેમ) છે જે પ્રોસેસરની વર્તણૂકને વ્યાખ્યાયિત કરતા માઇક્રોપ્રોગ્રામ (માઇક્રોઇન્સ્ટ્રક્શનનો ક્રમ) સ્ટોર કરે છે.Control memory is a ROM (or RAM) within the control unit that stores the microprogram (a sequence of microinstructions) defining the behavior of the processor.
કમ્પ્યુટર આર્કિટેક્ચર ના વધુ 3 સેટ3 more sets of Computer Architecture
પ્રેક્ટિસમાં દરેક પ્રશ્ન પછી તરત જવાબ મળે છે. ફુલ મોક ટેસ્ટમાં અસલી પરીક્ષા જેવો સમય હોય છે.Practice gives the answer right after each question. Full mock tests time you like the real exam.