Computer Science Overview
32 Questions
0 Views

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to lesson

Podcast

Play an AI-generated podcast conversation about this lesson

Questions and Answers

What is the main component of a computer responsible for processing data?

  • Main Memory
  • Central Processing Unit (CPU) (correct)
  • Bus
  • Motherboard
  • Which of the following best describes the role of the bus in computer architecture?

  • Executing instructions
  • Managing power supply
  • Storing user data
  • Transferring data between components (correct)
  • What kind of instructions can a program be encoded as?

  • Hexadecimal patterns
  • Graphical representations
  • Bit patterns (correct)
  • Decimal values
  • What is the purpose of registers in the CPU?

    <p>Hold instructions and data during processing</p> Signup and view all the answers

    Which part of a computer holds the main electronic components to work together?

    <p>Motherboard</p> Signup and view all the answers

    What are the two different types of registers mentioned in computer architecture?

    <p>General purpose and Special purpose</p> Signup and view all the answers

    Which of the following is NOT a primary function of how a computer works?

    <p>Transcoding</p> Signup and view all the answers

    What does the control unit in the CPU primarily do?

    <p>Directs the operation of the processor</p> Signup and view all the answers

    What is the primary function of the op-code in a machine instruction?

    <p>Defines which operation to execute</p> Signup and view all the answers

    Which type of machine instruction is used primarily for arithmetic operations?

    <p>Arithmetic/Logic</p> Signup and view all the answers

    What does the term 'machine language' refer to?

    <p>An instruction set recognized by the CPU</p> Signup and view all the answers

    In hexadecimal notation, the binary number 10100011 is represented as what?

    <p>A3</p> Signup and view all the answers

    Which part of a machine instruction varies its interpretation based on the op-code?

    <p>Operand</p> Signup and view all the answers

    What is the first step in the CPU's main program execution cycle?

    <p>Fetch</p> Signup and view all the answers

    What is the primary purpose of a data transfer instruction?

    <p>To copy data from one location to another</p> Signup and view all the answers

    What does the 'control' category of machine instructions do?

    <p>Direct the execution of the program</p> Signup and view all the answers

    What is the primary function of the program counter in the program execution cycle?

    <p>To hold the address of the next instruction</p> Signup and view all the answers

    Which step in the machine cycle involves interpreting the instruction to determine the operation needed?

    <p>Decode</p> Signup and view all the answers

    What is typically the size of a memory cell in main memory?

    <p>1 byte (8 bits)</p> Signup and view all the answers

    Which of the following is NOT a component of primary storage?

    <p>USB Flash Drive</p> Signup and view all the answers

    In what sequence do the steps of the machine cycle occur?

    <p>Fetch, Decode, Execute</p> Signup and view all the answers

    What does the term 'memory address' refer to?

    <p>A unique identifier for a memory cell</p> Signup and view all the answers

    Which of the following is a characteristic of Random Access Memory (RAM)?

    <p>It is volatile storage</p> Signup and view all the answers

    What is the role of the Instruction Register during the machine cycle?

    <p>To hold the current instruction being executed</p> Signup and view all the answers

    What type of storage is referred to as volatile and temporary?

    <p>RAM</p> Signup and view all the answers

    Which of the following types of storage is non-volatile and used to hold bootstrap instructions?

    <p>ROM</p> Signup and view all the answers

    What mechanism does a hard disk use to read and write data?

    <p>Mechanical Movement</p> Signup and view all the answers

    Which storage medium is characterized as portable and uses optical processes for reading and writing?

    <p>CD/DVD/Blu-ray</p> Signup and view all the answers

    What is a primary advantage of mass storage devices compared to main memory?

    <p>Larger storage capacities</p> Signup and view all the answers

    Which of the following is NOT a type of mass storage?

    <p>RAM</p> Signup and view all the answers

    What is a disadvantage of using RAM for data storage?

    <p>Data retention only while powered</p> Signup and view all the answers

    Which of these characteristics applies to ROM?

    <p>It retains data even when powered off.</p> Signup and view all the answers

    Study Notes

    Computer Science Overview

    • Computers are programmable, digital devices
    • They use only two digits (0 and 1)
    • Computers have hardware and software components

    How Computers Work

    • Input -> Processing -> Storage -> Output
    • This is the fundamental cycle of computing.
    • The computer has a central processing unit (CPU) which is the main component of the computer system.
    • The CPU has an Arithmetic/Logic unit (ALU), Control unit and Registers
      • Registers hold instructions/data during processing or status of a program.
      • The ALU performs arithmetic and logic operations.
      • The Control unit directs the execution of the program.
    • A bus transfers data between different components.
    • The motherboard holds the main electronic parts and lets them work together.
    • A program is encoded in bit patterns in main memory.
      • The CPU extracts and executes the instructions.

    Machine Instructions

    • Machine instruction: An instruction or command encoded as a bit pattern recognizable by the CPU.
    • Machine language: The set of all instructions recognized by a machine.
    • Machine instruction types:
      • Data Transfer: move data from one location to another in memory.
      • Arithmetic/Logic: use existing bit patterns to compute new ones.
      • Control: direct the execution of the program.
    • Each machine instruction has an op-code and operand.
      • Op-code specifies the operation to execute.
      • Operand gives more detailed information about the operation.
      • Operand interpretation depends on the op-code.

    Hexadecimal Notation

    • Hexadecimal notation is a shorthand for long bit patterns.
    • It divides a bit pattern into groups of four bits each.
    • Each group is represented by a single symbol.
      • 0–9 represent themselves
      • A–F represent 10–15

    Decoding Instructions

    • Figure 2.6 shows how to decode an instruction (e.g., 35A7) to identify the operation type, source, and destination.
      • The op-code (e.g., 3) determines the operation.
      • Parts of the operand (e.g., 5, A, 7) identify memory addresses and registers.

    Program Execution Cycle

    • The CPU's main functions: Fetch, Decode, Execute, Increment.
    • Program Counter: holds the address of the next instruction.
    • Instruction Register: holds the current instruction.
    • Machine Cycle: Fetch -> Decode -> Execute

    Main Memory

    • Memory Cell: A unit of main memory, typically 8 bits (one byte).
    • Memory Address: A unique identifier for each memory cell. Memory addresses are assigned consecutively starting with 0.
    • Memory Terminology:
      • Primary Storage: RAM (Random Access Memory), ROM (Read-Only Memory)
      • Secondary Storage: Magnetic disk, Optical disk (CD, DVD, Blu-ray), Flash Storage

    Storage

    • RAM: Temporary storage, volatile, holds data and instructions waiting to be processed, individual cells are easily accessed any order.

    • ROM: Permanent storage, non-volatile, read-only, holds bootstrap instructions (instructions needed to start the computer).

    • Mass Storage (Additional devices): magnetic disks, CDs, DVDs, magnetic tapes, Flash drives, solid-state disks.

      • Advantages of mass storage over main memory: less volatility, larger storage capacities, lower cost, can often be removed.
    • Hard Disk: Permanent storage, non-volatile, stores programs and files, mechanical movement to read or write.

    • CD/DVD/Blu-ray: Permanent storage, non-volatile, uses optical pulses to read or write, portable storage.

    • Flash Storage: Permanent storage, non-volatile, uses electrical pulses to read/write, portable, mass storage choice for digital cameras, smart phones, SD cards.

    Measuring Storage Capacity

    • Kilobyte (KB): 210 bytes = 1024 bytes
    • Megabyte (MB): 220 bytes = 1,048,576 bytes
    • Gigabyte (GB): 230 bytes = 1,073,741,824 bytes

    Studying That Suits You

    Use AI to generate personalized quizzes and flashcards to suit your learning preferences.

    Quiz Team

    Related Documents

    Description

    This quiz covers the fundamental concepts of computer science, including the components and functioning of computers. You will learn about the input-processing-output cycle, the role of the CPU, and the various elements that allow computers to operate effectively.

    More Like This

    CPU Architecture and Arithmetic Operations
    5 questions
    Computer Architecture Overview
    55 questions
    Computer Architecture Overview
    10 questions
    Computer Architecture Overview
    5 questions
    Use Quizgecko on...
    Browser
    Browser