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 (B)</p> Signup and view all the answers

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

<p>Motherboard (C)</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 (C)</p> Signup and view all the answers

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

<p>Transcoding (C)</p> Signup and view all the answers

What does the control unit in the CPU primarily do?

<p>Directs the operation of the processor (D)</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 (C)</p> Signup and view all the answers

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

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

What does the term 'machine language' refer to?

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

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

<p>A3 (A)</p> Signup and view all the answers

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

<p>Operand (B)</p> Signup and view all the answers

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

<p>Fetch (D)</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 (D)</p> Signup and view all the answers

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

<p>Direct the execution of the program (C)</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 (B)</p> Signup and view all the answers

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

<p>Decode (D)</p> Signup and view all the answers

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

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

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

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

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

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

What does the term 'memory address' refer to?

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

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

<p>It is volatile storage (C)</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 (B)</p> Signup and view all the answers

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

<p>RAM (D)</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 (A)</p> Signup and view all the answers

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

<p>Mechanical Movement (A)</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 (C)</p> Signup and view all the answers

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

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

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

<p>RAM (D)</p> Signup and view all the answers

What is a disadvantage of using RAM for data storage?

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

Which of these characteristics applies to ROM?

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

Flashcards

Computer Definition

A programmable digital device using only two digits (0 and 1).

Computer Components

Computers have hardware (physical parts) and software (programs).

Computer Architecture Components

The main parts of a computer include the CPU, Registers, Bus, Motherboard.

CPU (Central Processing Unit)

The main component of a computer that processes instructions.

Signup and view all the flashcards

Registers

Special storage areas within the CPU to hold data and instructions during processing.

Signup and view all the flashcards

Bus Function

Connects and transmits data between components of a computer.

Signup and view all the flashcards

Computer Programs Stored

Computer programs, encoded as bit patterns, are stored in main memory for execution.

Signup and view all the flashcards

Computer Processes

A computer takes input, processes it, stores data and produces output.

Signup and view all the flashcards

Machine Instruction

A command encoded as a bit pattern that the CPU understands.

Signup and view all the flashcards

Machine Language

The set of all instructions recognized by a computer.

Signup and view all the flashcards

Data Transfer

A machine instruction type that copies data between locations.

Signup and view all the flashcards

Arithmetic/Logic Instruction

A machine instruction that combines data values to produce a new value.

Signup and view all the flashcards

Control Instruction

A machine instruction that directs program execution.

Signup and view all the flashcards

Op-code

Part of a machine instruction that specifies the operation to perform.

Signup and view all the flashcards

Operand

Part of a machine instruction that provides details about the operation.

Signup and view all the flashcards

Hexadecimal Notation

Short-hand representation of bit patterns using hexadecimal symbols.

Signup and view all the flashcards

Program Counter

A special register that holds the memory address of the next instruction to be executed by the CPU.

Signup and view all the flashcards

Instruction Register

A special register that holds the current instruction being executed by the CPU.

Signup and view all the flashcards

Fetch

The first step of the machine cycle, where the CPU retrieves the next instruction from memory.

Signup and view all the flashcards

Execute

The third and final step of the machine cycle, where the CPU performs the operations specified by the decoded instruction.

Signup and view all the flashcards

Memory Cell

A basic unit of main memory, typically containing 8 bits (a byte).

Signup and view all the flashcards

Memory Address

A unique numerical identifier that helps locate specific memory cells.

Signup and view all the flashcards

How are memory cells organized?

Memory cells are arranged in a sequential order, with each cell assigned a unique address starting from zero.

Signup and view all the flashcards

RAM

Temporary storage that holds data and instructions waiting to be processed. It is volatile, meaning data is lost when the power is off.

Signup and view all the flashcards

ROM

Permanent storage that holds essential instructions for the computer to start up. It is read-only and non-volatile, meaning data is retained even when the power is off.

Signup and view all the flashcards

Mass Storage

Devices that provide large storage capacity for data and programs. Examples include hard disks, CDs, and flash drives.

Signup and view all the flashcards

Hard Disk

Permanent storage using mechanical movement to read and write data. Stores programs and files.

Signup and view all the flashcards

CD/DVD/Blu-ray

Permanent storage using optical pulses to read and write data. Offers portable storage for programs and files.

Signup and view all the flashcards

Difference between RAM and ROM

RAM is temporary, volatile memory used for active processes, while ROM is permanent, non-volatile memory used for essential startup instructions.

Signup and view all the flashcards

What are the advantages of mass storage over main memory?

Mass storage offers less volatility, larger storage capacities, lower cost, and often allows for removable media.

Signup and view all the flashcards

How is data stored on a hard disk?

Data is stored magnetically on a spinning platter. A read/write head moves over the platter to access data.

Signup and view all the flashcards

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
Use Quizgecko on...
Browser
Browser