Computer Organization — Study Notes
What to learn in Computer Organization
Computer Organization is the inside of the computer: what the CPU is made of, how it runs an instruction, how the parts talk to each other on buses, and how the machine counts in binary. This page has 82 practice questions: 39 from the bank and 43 new ones written to fill the gaps the bank leaves. Of the 39 bank questions, 37 come from the Computer Organization category itself and 2 come from the Computer Memory category: the binary system a 32-bit computer uses, and the input unit that accepts raw data. The order below is the order to learn in. Start with the five units of a computer, because every later section is one of those units in detail. Then the CPU and its two halves, the Control Unit and the ALU. Then the registers, which are the CPU's own tiny memory, and the buses, which are the roads between the parts. Then the instruction cycle, which is the one idea the whole topic hangs on. Then the two architectures, Von Neumann and Harvard, and how a CPU is built — RISC against CISC, pipelining, addressing. Then the logic gates that the ALU is built from, then the codes, then the types of computers, and last the BIOS and starting up. Four boundary rules for this page. First, the memory facts live on the Computer Memory page: the memory hierarchy from fastest to slowest, the units ladder from a bit to a terabyte, RAM against ROM, cache and virtual memory. This page gives only the one-line overview the CPU needs and links there for the questions. Second, the hardware-component facts live on the Hardware page: the motherboard, the power supply, the fan, the monitor, the graphics card and the network card. This page teaches how the parts work together, not what each device is. Third, the fetch-decode-execute order itself is asked on the Hardware page, and the Program Counter question lives on the Computer Memory page — this page teaches the cycle and its registers, and links to those pages for the questions. Fourth, the number systems live on the Number Systems page: the bases, the conversions, the binary arithmetic and the complements. This page uses binary only where the CPU needs it and links there for the questions. Past papers — PPSC, FPSC, KPPSC, SPSC, NTS, ETEA and STS — ask the same core facts again and again: the CPU is the brain, the ALU calculates, the Control Unit directs, a byte is 8 bits, the address bus carries addresses, and the instruction cycle is fetch, decode, execute. Learn each fact with its opposite — ALU against Control Unit, data bus against address bus, Von Neumann against Harvard — because the papers test the pairs.
The computer as five units
A computer is five units working together: the input unit, the output unit, the memory unit, the ALU and the Control Unit — the last two together with the registers make the CPU. The input unit accepts raw data and instructions from the user; the memory unit stores data and instructions; the ALU does the calculating; the Control Unit directs everything; and the output unit produces the results as useful information. A computer system itself consists of both hardware and software: the hardware is the physical parts, and the software is the set of instructions that operates the various parts of the hardware. The main box that holds the CPU, the memory and the other main parts is the system unit, and it contains the main parts of the computer, such as the CPU and memory — not only the keyboard, the screen or the printer. Two traps sit in this section. The first is GIGO: computer errors caused by incorrect input data or unreliable programs are called GIGO, Garbage In, Garbage Out — bad data in means bad results out, however good the machine is. The second is the difference between a part and its job: the monitor shows pictures and text, the hard disk stores files permanently, the motherboard connects the parts — those device facts live on the Hardware page — while this page asks what each unit of the organisation does. Learn the five units as one picture: data comes in through the input unit, is stored in the memory unit, is worked on by the ALU under the Control Unit, and goes out through the output unit.
The five units, one line each
- Input unit — accepts raw data and instructions from the user.
- Memory unit — stores data and instructions.
- Arithmetic Logic Unit (ALU) — carries out arithmetic and logical operations.
- Control Unit (CU) — directs and controls all the other parts.
- Output unit — produces the results of processed data as useful information.
Two facts to keep straight
- A computer system is both hardware and software — never one without the other.
- GIGO (Garbage In, Garbage Out) — incorrect input data or unreliable programs cause computer errors.
The CPU: the brain of the computer
The CPU, the Central Processing Unit, is the brain of the computer: it carries out instructions and processes data. A microprocessor is the whole CPU — Control Unit, ALU and registers — built on a single silicon chip. A CPU contains a Control Unit and an Arithmetic Logic Unit, and its speed is measured in hertz: the clock speed is the speed at which the CPU carries out instructions, and one gigahertz (1 GHz) is one billion clock ticks per second. The CPU is the fastest part of the machine — faster than magnetic tapes and disks, faster than a video terminal, faster than sensors. A quad-core processor has four cores, so it can work on four streams of instructions at once, and a 64-bit processor processes 64 bits of data at a time, because its registers and its data bus are 64 bits wide. A multi-user system can link several dumb terminals to a single processing unit, which is how small businesses once saved the cost of a computer each. The trap in this section is the word 'brain': the CPU is the brain, the microprocessor is the CPU on one chip, and the Control Unit is the part of the CPU that directs — three different answers to three different questions, and the papers ask all three. What the CPU is not is also asked: the hard disk, the monitor and the memory are not parts of the CPU, and neither is any input or output device.
The CPU in numbers
- CPU speed is measured in hertz; 1 GHz is one billion clock ticks per second.
- A quad-core processor has 4 cores.
- A 64-bit processor processes 64 bits of data at a time.
- A microprocessor is the CPU on a single chip.
The Control Unit and the ALU
The CPU has two halves, and every question in this section is about telling them apart. The Control Unit directs and controls all the other parts of the computer: it is the processor unit that controls, coordinates and directs all operations, it directs the flow of data and instructions inside the computer, and it is the part that directs all operations of a computer. The Arithmetic Logic Unit carries out arithmetic and logical operations: it is the unit of the CPU that performs arithmetic and logical operations, the part that does all the calculations, and the component responsible for performing arithmetic and logical operations in the CPU. The ALU also compares numbers, by subtracting one number from the other. The full forms are asked as well: ALU stands for Arithmetic Logic Unit and CU stands for Control Unit. The traps are the near-misses. JMP, the jump instruction, is not an arithmetic instruction — it is a control instruction, and SUB, MUL and DIV are the arithmetic ones. The ALU does not store files, show pictures or connect to the internet; the Control Unit does not do the calculating; and the memory unit does not direct anything. Learn them as a pair: the Control Unit decides, the ALU calculates. When a question asks 'which part directs', the answer is the Control Unit; when it asks 'which part calculates', the answer is the ALU; when it asks what the CPU contains, the answer is a Control Unit and an Arithmetic Logic Unit.
Control Unit against ALU
- Control Unit — directs and controls all the other parts; decodes instructions; sends out control signals.
- ALU — carries out arithmetic operations (add, subtract, multiply, divide) and logical operations (AND, OR, NOT).
- ALU — compares numbers by subtracting one from the other.
- ALU stands for Arithmetic Logic Unit; CU stands for Control Unit.
- JMP is not an arithmetic instruction — it is a control (branch) instruction.
Registers: the CPU's own tiny memory
A register is a small, fast storage area located in the CPU. Registers hold the data the CPU is working on right now, the addresses it needs, and the instruction it is executing — and they are the fastest storage in the whole machine, faster even than cache memory. The question that asks which register holds the address of the next instruction lives on the Computer Memory page, and the same question in its fetch-cycle form lives on the Hardware page; this page teaches the whole set so the instruction cycle makes sense. The Program Counter (PC) holds the address of the next instruction to be carried out. The Instruction Register (IR) holds the instruction that is currently being decoded and executed. The Memory Address Register (MAR) holds the address of the memory location to be read from or written to. The Memory Data Register (MDR), also called the Memory Buffer Register (MBR), holds the data or instruction just read from memory, or the data about to be written to it. The accumulator holds the result of a calculation performed by the ALU, ready for the next operation. The status register, also called the flag register, holds the flags the ALU sets after an operation — zero when the result is zero, carry when an addition carries out. Registers come in two kinds: general-purpose registers such as AX, BX, CX and DX hold data being worked on, while special-purpose registers — the Program Counter, the Instruction Register and the Memory Address Register — have fixed jobs. One operation to remember: to set a register or a counter to the all-zero state is called a reset.
The registers, one line each
- Program Counter (PC) — holds the address of the next instruction.
- Instruction Register (IR) — holds the instruction being decoded and executed.
- Memory Address Register (MAR) — holds the address to be read from or written to.
- Memory Data Register (MDR/MBR) — holds the data or instruction just read, or about to be written.
- Accumulator — holds the result of an ALU calculation.
- Status (flag) register — holds the zero, carry and other flags set by the ALU.
Two kinds of register
- General-purpose registers (AX, BX, CX, DX) — hold data being worked on.
- Special-purpose registers (PC, IR, MAR) — have fixed jobs.
- Reset — setting a register or counter to the all-zero state.
Buses: the roads between the parts
A bus is a set of wires that carries data between parts of the computer, and it is how data is transferred internally in a computer. There are three buses, and the papers ask each one by its job. The data bus carries the actual data between the CPU and the memory, in both directions — it is two-way (bidirectional), carrying data and instructions from memory to the CPU and results back again. The address bus carries memory addresses from the CPU to the memory, in one direction only — it is one-way (unidirectional), because the memory never sends an address back. The control bus carries control signals such as memory read, memory write, interrupt, clock and bus request, in both directions, and it is what coordinates all the activities within the computer. The three together — data bus, address bus and control bus — are the system bus. The width of a bus is a number the papers love: a bus with n lines can address 2 to the power n locations, so a 16-bit address bus can address 65,536 locations. The trap is mixing up the buses: the address bus carries addresses, never data; the data bus carries data, never addresses; and the control bus carries neither — it carries the signals that say read, write or interrupt. The motherboard is the board the buses run on and the parts plug into, and its full facts live on the Hardware page.
The three buses
- Data bus — carries the actual data; two-way (bidirectional).
- Address bus — carries memory addresses from the CPU to the memory; one-way (unidirectional).
- Control bus — carries control signals (read, write, interrupt, clock); two-way.
- Data bus + address bus + control bus = the system bus.
- A bus with n lines can address 2 to the power n locations.
The instruction cycle: fetch, decode, execute
The fetch-decode-execute sequence performed by a CPU is known as the instruction cycle, and it is the basic working of every computer: the CPU repeats the cycle for every instruction in the program, one at a time. In the fetch step, the address held in the Program Counter is copied to the Memory Address Register, the instruction is read from that address into the Memory Data Register, and the Program Counter moves on to the next instruction. In the decode step, the Control Unit reads the instruction held in the Instruction Register, works out what operation it asks for and which operands it needs, and sends out the control signals for it. In the execute step, the ALU carries out the calculation, or the data is moved, or the flow of the program changes. The order of the three steps — fetch, decode, execute — is asked as a question on the Hardware page, and this page teaches the steps with the registers that carry them. Two things can break into the cycle. An interrupt is a signal that pauses what the CPU is doing: the CPU finishes the current instruction, saves the Program Counter so it can return later, and runs the interrupt handler, the interrupt service routine. Direct Memory Access (DMA) is the opposite idea: an input/output device reads from or writes to memory directly, without the CPU carrying every byte itself, so the CPU is free to do other work. A faster CPU overlaps the cycle itself: in pipelining, the CPU starts the next instruction before the previous one has finished — while one instruction is being executed, the next is already being decoded and the one after that is already being fetched, like an assembly line. Machine language is the lowest level of all this: a line of machine-language code is a string of 1s and 0s, such as 10101110111101111, because each type of computer has its own machine language made of ones and zeros.
The cycle, step by step
- Fetch — copy the Program Counter address to the MAR, read the instruction into the MDR, move the Program Counter on.
- Decode — the Control Unit works out what operation the instruction asks for.
- Execute — the ALU calculates, data moves, or the program flow changes.
- The cycle is called the instruction cycle; the order, fetch, decode, execute, is asked on the Hardware page.
Breaking into the cycle
- Interrupt — the CPU saves the Program Counter and runs the interrupt handler, then returns.
- Direct Memory Access (DMA) — a device moves data to and from memory without the CPU.
- Pipelining — the next instruction starts before the previous one has finished.
Von Neumann and Harvard: two ways to store a program
The stored-program concept is the idea the whole machine rests on: instructions are stored in memory and the CPU fetches and executes them one at a time. John von Neumann set out the architecture that carries his name, and the question that asks which part is not a core component of it is on this page: the core components are the memory unit, the CPU and the ALU, and the I/O interface is the odd one out. In the Von Neumann architecture, instructions and data are stored together in the same memory and share one set of buses, so only one of them can be fetched at a time — the Von Neumann bottleneck, and the reason the machine fetches strictly one thing after another. In the Harvard architecture, instructions and data are stored in two separate memories, each with its own bus, so an instruction and data can be fetched at the same time, which is faster. The year von Neumann set out the stored-program concept, and the question of who is called the father of the computer, live on the Hardware page. Learn the pair as one contrast: Von Neumann means one memory for everything, Harvard means two memories; Von Neumann means one fetch at a time, Harvard means two fetches at once. The papers ask the contrast more than either architecture alone, so say both definitions together until either one brings the other to mind.
Von Neumann against Harvard
- Von Neumann — instructions and data together in one memory, one set of buses, one fetch at a time.
- Harvard — instructions and data in two separate memories, their own buses, fetched at the same time.
- Stored-program concept — instructions are stored in memory and fetched and executed one at a time.
- Von Neumann core components — memory unit, CPU, ALU; the I/O interface is not one of them.
How the CPU is built: RISC, CISC, pipelining and control
Once the cycle is understood, the papers ask how the CPU itself is designed. A RISC processor — Reduced Instruction Set Computer — uses a small set of simple instructions, each carried out quickly, in very few clock cycles. A CISC processor — Complex Instruction Set Computer — has a large set of powerful, complex instructions instead, each doing more work but taking longer. Flynn's taxonomy sorts computers by their streams of instructions and data: SISD is one instruction stream and one data stream — the ordinary single processor; SIMD is one instruction stream and many data streams; MISD is many instruction streams and one data stream; MIMD is many instruction streams and many data streams. The Control Unit itself comes in two kinds. A hardwired Control Unit produces its signals from fixed circuits: it is fast, but its behaviour cannot be changed. A microprogrammed Control Unit produces its signals from microinstructions stored in a small control memory, so its behaviour can be changed by changing the microprogram. Instructions also differ in how they find their operands. In immediate addressing, the operand is in the instruction itself, so the CPU does not have to fetch it from a register or from memory. And instructions fall into four groups by what they do: arithmetic instructions such as ADD, SUB, MUL and DIV; logic instructions such as AND and OR; data-transfer instructions such as LOAD and STORE; and control or branch instructions such as JMP and CALL, which change the order the instructions run in.
Design choices, one line each
- RISC — a small set of simple instructions, each carried out quickly.
- CISC — a large set of powerful, complex instructions.
- SISD — one instruction stream and one data stream.
- Hardwired Control Unit — fixed circuits, fast, cannot be changed.
- Microprogrammed Control Unit — microinstructions in a control memory, can be changed.
- Immediate addressing — the operand is in the instruction itself.
The four kinds of instruction
- Arithmetic — ADD, SUB, MUL, DIV.
- Logic — AND, OR, NOT.
- Data transfer — LOAD, STORE.
- Control (branch) — JMP, CALL.
Logic gates and combinational circuits
The ALU is built from logic gates, and the papers ask the gates by their truth tables — what comes out for each combination of inputs. AND, NAND and OR are basically logical gates. An AND gate produces an output of 1 only when both inputs are 1, and its output is HIGH only when all inputs are HIGH. An OR gate produces an output of 1 when any of its inputs is 1, and 0 only when all inputs are 0. A NOT gate has one input and inverts it — 1 becomes 0 and 0 becomes 1 — which is why it is also called an inverter. An XOR gate, the exclusive OR, produces an output of 1 only when its two inputs are different, and 0 when they are the same. An XNOR gate is the opposite of XOR: it produces an output of 1 when all inputs are the same, either all 0s or all 1s. A NAND gate is an AND gate followed by a NOT gate, and a NOR gate is an OR gate followed by a NOT gate; NAND and NOR are the universal gates, because any other gate can be built from NAND gates alone, or from NOR gates alone. Two more circuits complete the section. A decoder turns a coded input into one active output: a 3x8 decoder has 3 inputs and 8 outputs, because 2 to the power 3 is 8. And parity is how the machine catches a flipped bit: under mark parity each parity bit is always set to 1, under space parity it is always set to 0, and under even and odd parity the bit is chosen so the total number of 1s comes out even or odd. Learn the gates as a table, not as separate facts: for the inputs 0,0 then 0,1 then 1,0 then 1,1, say the AND column, then the OR column, then the XOR column, until the whole table comes out in one breath.
The gates, one line each
- AND — output 1 only when all inputs are 1.
- OR — output 1 when any input is 1.
- NOT (inverter) — one input, inverted: 1 becomes 0, 0 becomes 1.
- XOR — output 1 only when the two inputs are different.
- XNOR — output 1 when all inputs are the same (all 0s or all 1s).
- NAND — an AND gate followed by a NOT gate; a universal gate.
- NOR — an OR gate followed by a NOT gate; a universal gate.
Two more circuits
- A 3x8 decoder has 8 outputs (2 to the power 3).
- Mark parity — each parity bit is always set to 1.
Number systems live elsewhere
The number systems — binary, octal, decimal and hexadecimal, their bases and their conversions, the binary arithmetic and the complements — have their own topic page now: Number Systems. The questions that used to sit here live there, with the full method. This page keeps only what the CPU needs: the machine counts in binary, a bit is a 0 or a 1, and a byte is 8 bits.
The four number systems
- Binary — base 2, digits 0 and 1.
- Octal — base 8, digits 0 to 7.
- Decimal — base 10, digits 0 to 9.
- Hexadecimal — base 16, digits 0 to 9 and A to F (A = 10, F = 15).
Conversions to work by hand
- Binary to decimal: 101 = 5, 1001 = 9, 1111 = 15, 10100 = 20, 11101 = 29.
- Decimal to binary: 7 = 111, 10 = 1010.
- Octal to decimal: 17 = 15, 25 = 21.
- Hexadecimal to decimal: F = 15, A = 10, 2A = 42, FF = 255.
- Binary to hexadecimal: group bits in fours from the right — 1110 = E.
Binary arithmetic and complements
- 1 + 1 = 10 in binary; 101 + 11 = 1000; 1111 + 1 = 10000.
- 1's complement — flip every bit: 1010 becomes 0101.
- 2's complement — flip the bits and add 1: 0101 becomes 1011.
- 8 bits represent 256 values: 0 to 255 unsigned, -128 to +127 in 2's complement.
Codes live elsewhere
The codes that turn letters into numbers — ASCII, BCD, EBCDIC and Unicode — have their own topic page now: Number Systems. The questions that used to sit here live there, with the full tables. This page keeps only the one-line idea: a code is the table that says which number stands for which character.
The codes, one line each
- ASCII — 7-bit code, 128 characters; 'A' is 65, 'a' is 97, '0' is 48, space is 32.
- BCD — each decimal digit coded separately in 4 bits; 1010 to 1111 are never used.
- EBCDIC — 8-bit code used on IBM mainframes.
- Unicode / UTF-8 — every script in the world; 1 to 4 bytes per character.
Types of computers
Computers are classified three ways, and the papers ask each way separately, so learn them as three lists and never mix them. By size, the classification is mainframe, mini computer (miniframe), supercomputer and microcomputer: the mainframe is the big multi-user machine, the microcomputer is the personal computer, and the supercomputer is the fastest of all. What is not a classification by size is the digital computer — that is a classification by signal, not by size. By purpose, a computer is either general-purpose, built to do many kinds of work, or special-purpose, built for one job: the computer a mechanic uses for wheel alignment is a special-purpose computer, because it does one job and nothing else. By the signals they work with, computers are analog, digital or hybrid: an analog computer works with continuous signals, a digital computer works with discrete signals, with data represented as 0s and 1s, and a hybrid computer processes both analog and digital signals. A computer that has more than one processor is called a multiprocessor, and that question lives on the Hardware page. The generations of computers — vacuum tubes, then transistors, then integrated circuits, then microprocessors — belong to the Computer History & Generations page, not to this one. The trap in this section is answering from the wrong list: when the question says 'based on their size', the answer comes from the size list only, and 'digital' is never in it.
Three ways to classify a computer
- By size — mainframe, mini computer, supercomputer, microcomputer.
- By purpose — general-purpose (many jobs) or special-purpose (one job, such as wheel alignment).
- By signal — analog (continuous), digital (discrete 0s and 1s), hybrid (both).
- Digital computer is not a classification by size.
BIOS and starting up
The BIOS is the firmware that controls and configures the hardware components of a computer during startup: it is the first program that runs when the machine is switched on, checking the hardware and then handing over to the operating system. The firmware that contains a computer's startup instructions is the BIOS, and the check it runs as the machine starts is called POST, the Power-On Self-Test — the POST question lives on the Hardware page. Two BIOS facts live on the Computer Memory page and are not repeated here: what BIOS stands for, and that the BIOS program is stored in ROM. What this page adds is the role: BIOS is firmware, not software and not hardware — a program built into the machine that configures the hardware before anything else runs. Its settings are kept in CMOS memory, kept alive by a small battery on the motherboard, and that fact lives on the Computer Memory page too. If a question asks which firmware controls the hardware at startup, the answer is BIOS; if it asks where the BIOS program is stored, or what the letters stand for, the answer is on the Computer Memory page.
BIOS, in one line each
- BIOS is the firmware that controls and configures the hardware during startup.
- What BIOS stands for, and that it is stored in ROM, live on the Computer Memory page.
- POST, the Power-On Self-Test run by the BIOS at startup, lives on the Hardware page.
How to revise this topic
Take the sections in order, because each one uses the words of the one before it: the five units first, then the CPU, then the registers and the buses, then the cycle, then the architectures and the gates, then the codes. Inside each section, learn the pairs that sound alike before doing its questions: Control Unit against ALU, data bus against address bus, Von Neumann against Harvard, RISC against CISC, BCD against binary, AND against OR against XOR. Work every conversion by hand at least once on the Number Systems page — binary to decimal, decimal to binary, octal to decimal, hexadecimal to decimal — because the method is one rule and the papers only change the numbers. Then do the practice questions and read the explanation of every one you miss, especially the ones with 'not' in them: which bus does not carry data, which instruction is not arithmetic, which is not a classification by size, which is not a part of the CPU. The traps to watch for are the same in every paper: the address bus carries addresses and the data bus carries data, never the other way round; the Control Unit directs and the ALU calculates, never the other way round; Von Neumann is one memory and Harvard is two; BCD codes each digit in 4 bits while binary writes the whole number — the full code tables live on the Number Systems page. When you can answer every question on this page without looking, go to the Number Systems page next, then Computer Memory, then Hardware — the four pages together are the whole inside of the computer, and the papers ask them as one subject.
More facts to learn
- <p><b>Which computer unit is mainly responsible for accepting raw data and instructions from the user?</b><br>Input unit</p> <p><b>Which part of a computer stores data and instructions?</b><br>The memory unit.</p> <p><b>The process that produces results of processed data for getting useful information is known as:</b><br>Output</p> <p><b>A computer system consists of:</b><br>Both hardware and software</p> <p><b>In a computer, what is the system unit?</b><br>The main box that holds the CPU, memory and other main parts</p> <p><b>In a computer, which unit is known as the 'brain' of the computer?</b><br>The Central Processing Unit (CPU).</p> <p><b>Which part of computer is known as Heart/Brain of Computer?</b><br>Microprocessor/CPU</p> <p><b>What is the main function of the central processing unit (CPU) in a computer?</b><br>It carries out instructions and processes data.</p> <p><b>A CPU contains _______?</b><br>A control unit and an arithmetic logic unit</p> <p><b>What does CPU stand for?</b><br>Central Processing Unit</p> <p><b>How many cores does a quad-core processor have?</b><br>4</p> <p><b>Which number system is generally adapted in a typical 32-bit computer?</b><br>Binary</p> <p><b>In a computer, what does the term 'clock speed' measure?</b><br>The speed at which the CPU carries out instructions.</p> <p><b>What is the speed of a CPU measured in?</b><br>Hertz</p> <p><b>Which of the following is the fastest?</b><br>CPU</p> <p><b>Multi user systems provided cost savings for small business because they use a single processing unit to link several.</b><br>Dumb Terminals</p> <p><b>Which part of the computer directs and controls all the other parts of the computer?</b><br>Control Unit</p> <p><b>What is the main function of the control unit of a computer?</b><br>To direct and control the operations of the computer.</p> <p><b>A processor unit that controls, coordinates and directs all operations performed by the computer is ______?</b><br>Control unit</p> <p><b>CU stands for?</b><br>Control Unit</p> <p><b>Which part of the computer carries out arithmetic and logical operations?</b><br>Arithmetic Logic Unit (ALU)</p> <p><b>ALU perform?</b><br>Arithmetic and logical operations</p> <p><b>The component responsible for performing arithmetic and logical operations in the CPU is called ______?</b><br>ALU</p> <p><b>Which unit of the CPU performs arithmetic and logical operations?</b><br>The ALU.</p> <p><b>What does ALU stand for in a computer?</b><br>Arithmetic Logic Unit</p> <p><b>The Control Unit controls theoperations of a computer
- The ALU is a part of what?</b><br>CPU</p> <p><b>The ALU performsarithmetic and logical operations
- The Control Unit controls what?</b><br>Operations of a computer</p> <p><b>A register is a small, fast storage area located in the?</b><br>CPU</p> <p><b>To set a register or counter to the all zero state is</b><br>Reset</p> <p><b>In a computer, what is a bus?</b><br>A set of wires that carries data between parts of the computer</p> <p><b>Which bus in a computer carries memory addresses from the CPU to the memory?</b><br>Address bus</p> <p><b>In a computer, which bus carries the actual data between the CPU and the memory?</b><br>Data bus.</p> <p><b>Which is used to transfer data internally in a computer?</b><br>Bus</p> <p><b>The fetch-decode-execute sequence performed by a CPU is known as what?</b><br>Instruction cycle</p> <p><b>Which one of the following could be a line of code from Machine Language programming?</b><br>10101110111101111</p> <p><b>Which of the following is NOT a core component of the Von Neumann architecture?</b><br>I/O Interface</p> <p><b>Which one is not an arithmetic instruction?</b><br>JMP</p> <p><b>Which computer architecture has one instruction stream and one data stream?</b><br>SISD</p> <p><b>AND, NAND and OR are basically:</b><br>Logical Gates</p> <p><b>Which logic gate produces an output of 1 only when both inputs are 1?</b><br>AND gate</p> <p><b>Which logic gate produces an output of 1 when all inputs are either 0s or 1s?</b><br>XNOR gate</p> <p><b>3x8 decoder will have:</b><br>8 outputs</p> <p><b>Under mark parity, each parity bit is:</b><br>Always set to 1</p> <p><b>Computer errors caused due to incorrect input data or unreliable programs are often referred to as</b><br>GIGO</p> <p><b>Bit is stands for:</b><br>Binary Digit</p> <p><b>When you go to a tyre shop for wheel alignment, what type of computer does the mechanic use?</b><br>Special-purpose computer</p> <p><b>If you are asked to classify computers based on their size, which of the following options correctly represents this classification?</b><br>Mainframe, Mini frame, Supercomputer, Microcomputer</p> <p><b>Which of these is not a classification of computers based on size?</b><br>Digital Computer</p> <p><b>The computer that processes both analog and digital signals is called:</b><br>Hybrid computer</p> <p><b>In which type of computer, data are represented as discrete signals?</b><br>Digital computer</p> <p><b>The firmware that controls and configures the hardware components of a computer during startup is called:</b><br>BIOS</p> <p><b>In a computer, which register holds the address of the memory location the CPU wants to read from or write to?</b><br>Memory Address Register (MAR)</p> <p><b>In a computer, which register holds the data or instruction that has just been read from memory?</b><br>Memory Data Register (MDR)</p> <p><b>Which register holds the instruction that the CPU is currently decoding and executing?</b><br>Instruction Register (IR)</p> <p><b>In a computer, which register holds the result of a calculation performed by the ALU?</b><br>Accumulator</p> <p><b>Which of the following is a general-purpose register, used to hold data the CPU is working on?</b><br>AX</p> <p><b>What is a microprocessor?</b><br>The CPU built on a single chip</p> <p><b>Which of the following is NOT a part of the CPU?</b><br>Hard disk</p> <p><b>What does it mean for a processor to be a 64-bit processor?</b><br>It processes 64 bits of data at a time</p> <p><b>One gigahertz (1 GHz) of clock speed means the CPU clock ticks how many times per second?</b><br>One billion times</p>