Computer Architecture Fundamentals
48 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

Which of the following is NOT a characteristic of secondary memory?

  • It is non-volatile.
  • It has a smaller storage capacity than primary memory. (correct)
  • It is cheaper than primary memory.
  • It cannot be directly accessed by the CPU.

Why is data in secondary storage first transferred to main memory before the CPU can access it?

  • Because the CPU can only directly address main memory. (correct)
  • To reduce power consumption by the CPU.
  • To ensure data integrity during processing.
  • Because secondary storage is volatile and requires constant refreshing.

Which of the following storage devices provides the fastest data transfer speed?

  • Memory Card
  • Solid State Drive (SSD) (correct)
  • CD/DVD
  • Hard Disk Drive (HDD)

What physical component is responsible for transferring data between different components within a computer system?

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

Which type of bus is responsible for transmitting the memory address the CPU wants to access?

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

Which of the following best describes the function of the control bus?

<p>Communicating control signals between different components. (D)</p> Signup and view all the answers

What is the collective term for the data bus, address bus, and control bus when they function together?

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

If the CPU needs to retrieve data from a specific location in main memory, which bus is used to specify that location?

<p>The address bus, specifying the memory location. (D)</p> Signup and view all the answers

Which of the following scenarios best exemplifies the use of RAM in a computer system?

<p>Holding a video game's textures and models while it is running. (D)</p> Signup and view all the answers

Suppose a computer has 8 GB of RAM. After the operating system loads, 6 GB of RAM is still available. A user then opens several applications that collectively require 7 GB of RAM. What is the likely outcome?

<p>The computer will use virtual memory, potentially slowing down performance. (C)</p> Signup and view all the answers

If you have a file that is exactly 2,048 KB, what is the file size in MB?

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

A computer is advertised as having 2 TB of storage. Approximately how many 500 GB external hard drives could you completely back up onto this computer?

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

What is the key difference between primary and secondary memory in a computer system?

<p>Primary memory is directly accessible to the CPU and is typically faster than secondary memory. (B)</p> Signup and view all the answers

Which of the following is the correct sequence, from smallest to largest, of memory units?

<p>KB, MB, GB, TB (B)</p> Signup and view all the answers

A user reports that their computer loses all unsaved data whenever it is powered off. What type of memory is primarily responsible for this behavior?

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

If a hard drive is advertised as 4 TB, what is its equivalent storage capacity in kilobytes (KB)?

<p>$4 * 1024^4$ KB (C)</p> Signup and view all the answers

What is the primary advantage of using assembly language over machine language?

<p>Assembly language uses English-like words and symbols, making it easier to write code. (D)</p> Signup and view all the answers

Why are translators necessary when using high-level programming languages?

<p>To translate the high-level code into machine language that the computer can understand. (A)</p> Signup and view all the answers

Which of the following is a characteristic of low-level languages?

<p>They are machine dependent, meaning code written for one CPU may not work on another. (D)</p> Signup and view all the answers

What is the main reason writing code directly in machine language is difficult?

<p>It is difficult to remember all operation codes and machine addresses. (B)</p> Signup and view all the answers

Which of the following statements best describes high-level programming languages?

<p>They use English-like sentences and are easier to write, but require translation. (C)</p> Signup and view all the answers

Which of the following is NOT a typical characteristic of high-level programming languages?

<p>Direct execution by the computer (C)</p> Signup and view all the answers

What is the primary purpose of code editors in the program development process?

<p>To provide an environment for writing and editing source code. (D)</p> Signup and view all the answers

Consider a scenario where a programmer needs to write code that interacts directly with the hardware. Which type of language would be MOST suitable?

<p>Assembly language because it provides a level of abstraction while still offering hardware control. (D)</p> Signup and view all the answers

Which of the following scenarios exemplifies the data capturing stage in data processing?

<p>Utilizing a barcode reader at a retail checkout to record product purchases. (C)</p> Signup and view all the answers

What is a primary challenge associated with data storage in contemporary digital environments?

<p>The escalating rate at which data is generated. (A)</p> Signup and view all the answers

How have organizations adapted to manage the increasing demands of data storage?

<p>Deploying data servers with larger and faster storage capabilities. (D)</p> Signup and view all the answers

What role do remote sensors on an earth-orbiting satellite play in data processing?

<p>They capture data from the Earth's surface and atmosphere. (E)</p> Signup and view all the answers

A company is planning to upgrade its data storage infrastructure. What factor should be MOST important in their decision-making process?

<p>The projected rate of data increase over time. (C)</p> Signup and view all the answers

Which of the following is NOT a typical tool or method used for data capturing in digital format?

<p>Manual transcription of handwritten documents into a physical ledger. (D)</p> Signup and view all the answers

How does heterogeneity among data sources impact the data capturing process?

<p>It can make data capturing more complex due to variations in data formats and structures. (A)</p> Signup and view all the answers

Which activity involves retrieving data from storage for further processing?

<p>Extracting customer purchase history to analyze sales trends. (A)</p> Signup and view all the answers

What is the primary difference in how a compiler and an interpreter handle source code?

<p>A compiler translates the entire program at once, creating an object code, while an interpreter translates code one line at a time. (D)</p> Signup and view all the answers

Why is an interpreter typically needed every time a source code is executed?

<p>Because the interpreter translates the source code into executable code line by line during execution. (D)</p> Signup and view all the answers

What is the main function of a text editor in program development?

<p>To create and modify text files containing program instructions. (A)</p> Signup and view all the answers

Which of the following best describes the role of a debugger in program development?

<p>A tool for detecting and correcting errors in source code. (D)</p> Signup and view all the answers

Which of the following is the MOST comprehensive definition of an Integrated Development Environment (IDE)?

<p>A software suite containing a text editor, building tools, and a debugger. (A)</p> Signup and view all the answers

Which task is NOT typically performed within an Integrated Development Environment (IDE)?

<p>Designing computer hardware. (B)</p> Signup and view all the answers

What is the primary function of system software?

<p>To provide core functionalities of the computer system. (C)</p> Signup and view all the answers

Which component is essential for converting human-readable source code into machine-executable code?

<p>Translator (Compiler or Interpreter) (A)</p> Signup and view all the answers

Which scenario exemplifies the necessity of customized application software over general-purpose software?

<p>A school requires a system to manage student records, attendance, and grades tailored to their specific policies. (A)</p> Signup and view all the answers

Why is system software considered more fundamental to a computer's operation than application software?

<p>Application software requires system software to run, while system software can operate independently. (D)</p> Signup and view all the answers

Which software is specifically designed to run on top of the system software?

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

What is a key characteristic that distinguishes general-purpose software from customized software?

<p>General-purpose software is designed for a broad audience, while customized software is tailored to specific needs. (D)</p> Signup and view all the answers

A business requires software to manage its unique inventory tracking and customer relationship processes. What type of software would best suit these needs?

<p>Customized application software (B)</p> Signup and view all the answers

Which of the following is an example of general-purpose application software?

<p>Mozilla Web Browser (B)</p> Signup and view all the answers

If a computer has an operating system installed but lacks any application software, what functionality can the user expect?

<p>Basic operation of the computer, but without specific applications like word processors. (B)</p> Signup and view all the answers

A large hospital needs a software solution that integrates patient records, billing, and appointment scheduling into a single system tailored to its specific workflows. Which type of software would be most appropriate?

<p>A customized Electronic Health Records (EHR) system. (B)</p> Signup and view all the answers

Flashcards

Kilobyte (KB)

A unit of digital data equal to 1024 bytes.

Megabyte (MB)

A unit of digital data equal to 1024 kilobytes.

Gigabyte (GB)

A unit of digital data equal to 1024 megabytes.

Terabyte (TB)

A unit of digital data equal to 1024 gigabytes.

Signup and view all the flashcards

Petabyte (PB)

A unit of digital data equal to 1024 terabytes.

Signup and view all the flashcards

Exabyte (EB)

A unit of digital data equal to 1024 petabytes.

Signup and view all the flashcards

Zettabyte (ZB)

A unit of digital data equal to 1024 exabytes.

Signup and view all the flashcards

Yottabyte (YB)

A unit of digital data equal to 1024 zettabytes.

Signup and view all the flashcards

Secondary Memory

Non-volatile memory with larger storage capacity than primary memory, but slower and cheaper.

Signup and view all the flashcards

Secondary Memory Examples

Examples include Hard Disk Drive (HDD), CD/DVD, and Memory Card.

Signup and view all the flashcards

Solid State Drive (SSD)

A storage device that supports very fast data transfer speed, faster than older HDDs.

Signup and view all the flashcards

Bus

Physical wires used to transfer data between computer components.

Signup and view all the flashcards

Data Bus

Transfers data between different components.

Signup and view all the flashcards

Address Bus

Transfers memory addresses between CPU and main memory.

Signup and view all the flashcards

Control Bus

Communicates control signals between different components.

Signup and view all the flashcards

System Bus

The collective name for the Data bus, Address bus, and Control bus working together.

Signup and view all the flashcards

Data Capturing

The process of gathering data from various sources in digital form.

Signup and view all the flashcards

Data Capturing Tools

Instruments used to collect data in digital format (e.g. keyboard, barcode reader).

Signup and view all the flashcards

Data Storage

The process of saving captured data for later use and processing.

Signup and view all the flashcards

Data Servers

Computers with large, fast storage used in organizations to efficiently store and process vast amounts of data.

Signup and view all the flashcards

Data Input

Inputting or gathering raw facts, figures, or information.

Signup and view all the flashcards

Data Retrieval

Accessing and retrieving stored data for processing or use.

Signup and view all the flashcards

Database

A collection of organized data, often stored electronically.

Signup and view all the flashcards

Digital Storage

Electronic locations or physical devices used to store digital information.

Signup and view all the flashcards

Machine Language

Languages that computers understand directly, using 1s and 0s.

Signup and view all the flashcards

Assembly Language

A low-level language that uses English-like words and symbols.

Signup and view all the flashcards

High-Level Languages

Languages that are machine independent and easier for humans to write.

Signup and view all the flashcards

Language Translator

Software that converts high-level code into machine language.

Signup and view all the flashcards

Code Editors

Programs used to create, modify, and test code.

Signup and view all the flashcards

Low-Level Languages

Machine-dependent languages that include machine language and assembly language.

Signup and view all the flashcards

Machine Language Coding

Using 1s and 0s to write instructions that are directly understood by the computer.

Signup and view all the flashcards

Assembly Language Coding

Using English-like words and symbols to simplify coding.

Signup and view all the flashcards

Compiler

Translates an entire program at once, creating an executable file; not needed after translation.

Signup and view all the flashcards

Interpreter

Translates and executes code line by line; always needed to run the source code.

Signup and view all the flashcards

Text Editor

Software for creating and editing text files, where you write program instructions.

Signup and view all the flashcards

Translator

Translates source code into object code for execution.

Signup and view all the flashcards

Integrated Development Environment (IDE)

Software suite with a text editor, building tools, and debugger for program development.

Signup and view all the flashcards

Debugger

Software to detect and correct errors (bugs) in source code.

Signup and view all the flashcards

Application Software

Software that performs specific tasks for the user.

Signup and view all the flashcards

System Software

Provides core functionality of the computer system.

Signup and view all the flashcards

General Purpose Software

Application software for generic tasks, useful for a wide audience.

Signup and view all the flashcards

Examples of General Purpose Software

LibreOffice Calc, Adobe Photoshop, GIMP, Mozilla, iTunes

Signup and view all the flashcards

Customised Software

Application software tailored for specific needs of an organization or individual.

Signup and view all the flashcards

Examples of Customised Software

Websites, School Management Software, Accounting Software

Signup and view all the flashcards

Is application software essential for a computer to work?

A computer can function without application software.

Signup and view all the flashcards

Why is system software needed?

It installs application software.

Signup and view all the flashcards

Study Notes

  • A computer is an electronic device, programmable to accept data (input), process it, and generate results (output)
  • A computer system consists of hardware and software

Computer System Components

  • Central Processing Unit (CPU)
  • Memory
  • Input/output devices
  • Storage devices
  • These components operate as one to produce the desired output
  • Computer systems vary in form and size, from high-end servers to smartphones

Central Processing Unit (CPU)

  • It executes the actual processing
  • Referred to as the "brain" of the computer
  • Can be placed on one or more microchips called integrated circuits (ICs)
  • ICs are made of semiconductor materials
  • Given instructions and data through programs
  • Fetches program and data from memory
  • Performs arithmetic and logic operations according to instructions
  • Stores results back to memory

CPU Components

  • Arithmetic Logic Unit (ALU)
  • Control Unit (CU)

Registers

  • Local memory in the CPU used for storing data and instructions during processing
  • Registers are limited in size and number

Arithmetic Logic Unit (ALU)

  • Performs arithmetic and logic operations as instructed by a program

Control Unit (CU)

  • It controls sequential instruction execution
  • Interprets instructions
  • Guides data flow through the computer's memory, ALU, and input/output devices
  • CPU is also known as a microprocessor

Input Devices

  • Control signals are sent to a computer using input devices
  • Converts input data into a digital form
  • Examples: keyboard, mouse, scanner, touch screen, braille keyboards, voice input

Data Storage

  • Data entered through an input device is temporarily stored in main memory (RAM)
  • Permanent storage for future use is in secondary memory

Output Devices

  • Receives data from a computer system and converts digital information into human-understandable form

  • Used for display, physical production, etc.

  • Examples: monitor, projector, headphone, speaker, printer

  • Braille display monitors are useful for visually challenged users

  • Printers are the most common device to get output in physical (hardcopy) form

  • Common printer types include inkjet, laserjet and dot matrix

  • 3D printers build physical replicas of digital 3D designs

Evolution of Computing Devices

  • Computing devices have evolved from simple calculators to powerful data processors
  • Key milestones:

Abacus

  • A mechanical device that is capable of doing simple mathematics; invented around 500 BC

Pascaline

  • Invented in 1642 by Blaise Pascal
  • Mechanical calculator that can perform addition and subtraction directly
  • Multiplies and divides through repeated addition and subtraction.

Tabulating Machine

  • Designed by Herman Hollerith in 1890
  • Summarizes data stored on punched cards
  • Considered a step towards programming

Analytical Engine

  • It was invented in 1834 by Charles Babbage
  • It can input, process store and display output
  • Basis of modern computers

Turing Machine

  • It was developed in 1937
  • General-purpose programmable machine
  • Solves problems by executing programs stored on punched cards.

EDVAC/ENIAC

  • In 1945, John Von Neumann introduced the concept of stored program computer
  • This computer was capable of storing data and programs in memory

Transistor

  • Developed at Bell Labs in 1947
  • Replaced vacuum tubes
  • Made using semiconductor materials

Integrated Circuit (IC)

  • A silicon chip containing an entire electronic circuit
  • Reduced the size of computers

Von Neumann Architecture

  • The Von Neumann architecture consists of a CPU for processing, memory for storage, input/output devices and communication channels
  • The Electronic Numerical Integrator and Computer (ENIAC) is the first binary programmable computer based on Von Neumann architecture
  • Large Scale Integration (LSI) of electronic circuits allowed CPU integration on a single chip (microprocessor) during the 1970s
  • Moore's Law predicted exponential growth in the number of transistors on a microchip
  • Very Large Scale Integration (VLSI) in the 1980s integrated around 3 million components on a small chip
  • Super Large Scale Integration (SLSI) fabricated around 106 components on a single IC
  • IBM introduced its first personal computer (PC) in 1981, followed by Apple's Macintosh in 1984
  • The Graphical User Interface (GUI) made computers more user-friendly, replacing command-line interfaces
  • The World Wide Web (WWW) accelerated computer usage in the 1990s
  • Laptops, smartphones, tablets, and personal digital assistants made computing portable
  • These advancements were made possible through processor miniaturization, faster memory, and high-speed data and connectivity
  • Wearable gadgets like smart watches, lenses, headbands, and smart appliances are the next wave of computing, leveraging IoT and AI

Computer Memory

  • Computer systems need memory to store data and instructions for processing
  • Primary memory, is the main memory
  • Secondary memory stores data, instructions, and results permanently

Units of Memory

  • Binary digits (0 and 1) are the basic units of memory, called bits
  • Bits are grouped to form words
  • 4-bit word = Nibble
  • 8-bit word = Byte
  • Bytes are grouped to make bigger chunks or units of memory

Types of Computer Memory

Primary Memory

  • Essential component
  • Programs and data are loaded before processing
  • The CPU interacts directly with primary memory
  • Two types of primary memory: Random Access Memory (RAM) and Read Only Memory (ROM)

RAM

  • Volatile memory (data is lost when power is off)
  • Used for temporary data storage while the computer is working
  • Called 'main memory'
  • It is faster than secondary memory

ROM

  • Non-volatile memory (contents are not lost when power is off)
  • Used for permanent storage of rarely changed content, like the startup program (boot loader)

Cache Memory

  • High-speed memory between the CPU and primary memory
  • Stores copies of frequently accessed data
  • Reduces the average time to access data

Secondary Memory

  • It has limited storage capacity, and is either volatile (RAM) or read-only (ROM)
  • Auxiliary memory to store data or instruction permanently
  • Non-volatile with larger storage capacity than primary memory
  • Slower and cheaper than main memory
  • Cannot be accessed directly by the CPU
  • Needs to be brought the cpu to access
  • Examples: Hard Disk Drive (HDD), CD/DVD, Memory Card
  • Solid State Drives (SSD) has faster data transfer speeds
  • Portable flash drives are used to transfer data between computers easily.

Data transfer

  • Happens between the CPU, primary memory, and secondary memory
  • Data is transferred using physical wires called a bus.
  • Types of buses:
    • Data bus: Transfers data between components
    • Address bus: Transfers memory addresses between CPU and main memory
    • Control bus: Communicates control signals between components
  • Data bus is bidirectional, while control and address buses are unidirectional
  • A memory controller manages data flow into and out of the computer's main memory

Microprocessors

  • A CPU implemented on a single microchip
  • Microprocessors carry out tasks involved in data processing and arithmetic operations
  • Microprocessors are built over integrated circuits with small components like resistors, transistors and diodes
  • They have evolved to increase processing capability, decreasing physical size and reduced cost
  • They can process millions of instructions per millisecond

Microprocessor Specifications

  • Word Size: Maximum number of bits a microprocessor can process at a time
    • Increased from 8 bits to 16 bits to 64 bits
  • Memory Size: Size of RAM varies depending on word size
    • Initially, small for 4/8 bits words, has become feasible to use RAM of sizes up to 16 Exabytes (EB) with 64 bit words
  • Clock Speed: Number of pulses generated per second by the clock
    • Measured in Hertz (Hz), Kilohertz (kHz), and now Gigahertz (GHz)
  • Cores: Basic computation unit of the CPU
    • Multi-core processors allows a computer to execute multiple tasks
    • CPUs with two cores (dual-core), four cores (quad-core), and eight cores (octa-core)

Microcontrollers

  • Small computing devices that are embedded into another item
  • Consist of a CPU, RAM, ROM, embedded on a single chip
  • Designed for specific tasks
  • Low cost
  • Microcontrollers are used in washing machines, digital cameras, etc

Data and Information

  • Computers use data and information
  • Data is a broad term for any data

Data Types

  • Raw, unorganized facts that are processed to get meaningful information
  • Three types of data:
    • Structured data: data organized in a strict record structure (tables)
    • Unstructured data: data not organized in a pre-defined format (audio, video, graphics, tweets)
    • Semi-structured data: Not well defined, has internal tags or markup to define elements (CSV files)

Data Management

  • Consists of capturing and organizing data
  • Steps include:
    • Capturing: Gathering date from differenct sources
    • Storage: Storing data (can be challenging)
    • Retrieval: Fetching data from the storage device
    • Deletion and Recorvery: Process of deleting data, but also having backups to recover if data is lost

Software

  • Computer hardware can't function on it's own; software is a set of instructions to operate hardware
  • Instructions and data to be processed using computer hardware

Software Comprises

  • A set of instructions which on execution deliver the desired outcome.
  • Each piece of software is written for the purpose of a computation.
  • Examples include Ubuntu or Windows 7/10, word processing tool like LibreOffice or Microsoft Word, video player like VLC Player, photo editors like GIMP and LibreOffice

Software need

  • To make the computer operational
  • Interacts with the end user
  • Is an interface btw humans and hardware

Categorization of software

  • System software
  • Programming tools
  • Application software

System Software

  • Provides basic functionality to operate
  • It knows how to operate different components
  • Provides services to end users

Examples os System Softare

  • Operating systems
  • System utilities
  • Device drivers

Operating Systems

  • Most basic system software, other software doesn't work without it
  • Manages application programs
  • Provides access and security to users
  • Popular Operating Systems:*
  • Windows
  • Linux
  • Macintosh
  • Ubuntu
  • Fedora
  • Android
  • IOS

System Utilities

  • Used for configuration and maintenance
  • Some utilities ship with the OS (disk defragmentation tool, formatting utility)
  • Others improve performance (anti-virus software)

Device Drivers

  • Ensure proper function of a device
  • Operating system work with the device

Programming tools

  • Needed to give instructions, which give the desired outcome
  • Computer languages assist to write instructions

Progrmaming Languages

  • Translators need to convert to Machine

How to progrom

  • Code editors are needed
  • Human and Computers have separate needs to understand

Classification of Programing Languages

  • Low level languages that are machine deopendent
  • High level languages that easier to read

Language Translator

  • Computer understands only machine language. A translator converts program written in assembly or a high-level language to machine
  • Program code written using high-level language = Source Code
  • *Assembler translator: * Converts Assembly Language to Machine Language
  • Compiler translates the source into machine code
  • *Interpreter *: Translates line by line

Program Development Tools

  • Integrated Development Environment (IDE) has text editor, building tools, and a debugger

Application Software

  • Designed to meet the needs of specific end-users
  • Two Categories: General purpose application software and Customised appllication software

General Purpose

  • Caters to a big audience
  • For example, spreadsheet tool Calc of LibreOffice, Adobe Photoshop, GIMP, Mozilla web browser, iTunes,

Customised

  • Tailor made that
  • Can be a website, a software management system

Proprietary or Free and Open Source Software

  • Free and Open Source Software (FOSS) developers provide source code
  • Source code can be freely to those who want to improve the software by adding to it
  • (FOSS) includes Ubuntu, Python, Libreoffice, Openoffice, Mozilla Firefox, etc.

Operating System

  • Manage resources
  • Manage hardware and device drivers
  • Support for System Security
  • Supports different users
  • Windows is most important system software
  • Linux, Android, Windows, Mac are other common system software

Objectibe for Operators

  • provide services for building and running applications
  • To provide user with commands or imputs for an operations

OS User Interface

  • Each type provide different functionality
  • Some commonly used interfaces are Command-based interface, Graphical User Interface, Touch-based Interface, and Gesture-based Interface

Types of UI

    • Command-based Interface. User has to do the command to perform task.
    • Graphical User Interface: GUI lets users run programs of icons ,menus ,etc
      • Touch based, use the touch inputs ( used in touch screen)
      • Audio use iOS to listen to user
      • Gesture some phones let users interac by waving tilting etc

Functions of Operating System

  • Process Management while operational a program is intended to carry many task
  • As an opersting system that is a function, task is known as process
      • Task are executed by CPU which is the primary computer system

Memory Management

  • Primary or main memory of a computer system are usually limited to
  • Task us to give (allocate) and take (free) memory from running processes.
      • Should do it so it doesnt effect processing (so its faster)

File Management

  • Data and programs are stored as files in the secondary storage of a computer system.
      • File management are the data it stores (crucial to protection)
  • Device management - A computer system has many I/O device, operating managment system work through them

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 fundamental concepts of computer architecture, including memory types, data transfer, bus systems, and RAM utilization. It explores the characteristics of primary and secondary memory, the roles of address, data, and control buses, and how RAM is used in executing applications.

More Like This

Use Quizgecko on...
Browser
Browser