Computer Architecture and Memory Concepts
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

What is the primary function of the Address Bus?

  • Stores binary information temporarily
  • Carries data to and from the CPU
  • Controls the execution of data transfer
  • Carries address information between the processor and memory (correct)

Which type of memory is considered non-volatile?

  • Cache Memory
  • Read Only Memory (ROM) (correct)
  • Dynamic RAM
  • Static RAM

Which statement is true regarding RAM?

  • It stores permanent data
  • It retains information when the power is off
  • It is primarily used for long-term storage
  • It is faster than secondary memory (correct)

How many types of primary memory are mentioned?

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

What characterizes the Control Bus in the bus system?

<p>It carries signals and commands from the CPU. (A)</p> Signup and view all the answers

Which of the following is true about Dynamic RAM?

<p>It requires refresh cycles to maintain data. (D)</p> Signup and view all the answers

What is the structure of a memory unit defined by?

<p>The number of words and the bits in each word (B)</p> Signup and view all the answers

Which type of memory is typically used to start up a computer?

<p>Read Only Memory (ROM) (D)</p> Signup and view all the answers

What does the Central Processing Unit (CPU) primarily do?

<p>Perform data processing operations (C)</p> Signup and view all the answers

What are the main components of Von-Neumann Architecture?

<p>Control Unit, Memory Unit, Input Unit (A)</p> Signup and view all the answers

Which unit within the CPU is responsible for logical operations?

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

What concept underlies the Von-Neumann Architecture?

<p>Stored-program computer (D)</p> Signup and view all the answers

Which component of the CPU is responsible for controlling other parts of the computer?

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

What is a primary purpose of Buses in a computer system?

<p>Facilitate data transfer between registers (C)</p> Signup and view all the answers

Which of the following best describes System Software?

<p>Software that manages and controls computer hardware (D)</p> Signup and view all the answers

Which of the following operations is NOT performed by the Arithmetic and Logic Unit (ALU)?

<p>User input processing (C)</p> Signup and view all the answers

Which type of memory is also known as non-volatile memory?

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

What is the primary function of cache memory in a computer system?

<p>Hold temporary data and frequently used programs (A)</p> Signup and view all the answers

What does EEPROM stand for?

<p>Electrically Erasable Programmable Read Only Memory (A)</p> Signup and view all the answers

Which of the following is true regarding the CPU registers?

<p>They are the fastest type of memory in the memory hierarchy. (D)</p> Signup and view all the answers

Which memory type is typically slower than primary memory and cannot be directly accessed by the CPU?

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

What is the primary characteristic of magnetic tapes?

<p>They are composed of a thin magnetizable coating on plastic film. (A)</p> Signup and view all the answers

In the memory hierarchy, what level is the main memory classified as?

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

What is a key feature of PROM?

<p>It is programmed only once after manufacture. (B)</p> Signup and view all the answers

What is the primary function of system software?

<p>To act as an interface between application software and the system (A)</p> Signup and view all the answers

Which of the following is an example of application software?

<p>Web-browser (B)</p> Signup and view all the answers

Which statement is true about machine language?

<p>It is directly understood by the computer without translation (C)</p> Signup and view all the answers

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

<p>Assembly language uses a short, English-like representation. (B)</p> Signup and view all the answers

Which type of translator converts high-level language directly to machine language?

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

What is the main challenge of programming in assembly language?

<p>It uses symbolic representation which can be confusing (D)</p> Signup and view all the answers

Which language is considered a low-level language?

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

Which statement best describes an interpreter?

<p>It translates high-level programming language to low-level language line by line. (A)</p> Signup and view all the answers

What does it mean for a program written in high-level language to be machine-independent?

<p>It can be easily ported to different computer systems. (B)</p> Signup and view all the answers

Which of the following best describes application software?

<p>It is created to fulfill specific user requests (A)</p> Signup and view all the answers

What is a characteristic feature of low-level languages?

<p>They are closer to the hardware of a computer (C)</p> Signup and view all the answers

Which of the following best defines an algorithm?

<p>An algorithm is a set of finite rules for problem-solving. (C)</p> Signup and view all the answers

What is a major drawback of using machine language?

<p>It is difficult to write and modify because of binary code (D)</p> Signup and view all the answers

What is the role of an assembler in programming?

<p>To translate assembly language to machine language. (A)</p> Signup and view all the answers

What does the Terminal symbol represent in a flowchart?

<p>It signifies the start, stop, and halt of program logic. (C)</p> Signup and view all the answers

Which of the following statements describes a decision symbol in a flowchart?

<p>It indicates where branching based on a decision occurs. (B)</p> Signup and view all the answers

Which of the following languages is an example of a high-level programming language?

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

How does the number of machine code lines generated from high-level programming compare to assembly language?

<p>High-level code generates more lines of machine code. (D)</p> Signup and view all the answers

In an algorithm to check if a number is prime, what is initialized to 2?

<p>The loop counter for checking divisibility. (C)</p> Signup and view all the answers

What operation is performed in Step 4 of the algorithm that checks whether a number is odd?

<p>Check the remainder when the number is divided by 2. (A)</p> Signup and view all the answers

What does the Input/Output symbol in a flowchart represent?

<p>It denotes functions involving I/O devices. (D)</p> Signup and view all the answers

In the algorithm for printing even numbers from 1 to n, what is initially assigned to the variable 'i'?

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

What is the purpose of the flow lines in a flowchart?

<p>To show the flow of operation. (D)</p> Signup and view all the answers

In the algorithm for checking voting eligibility, what value is compared with 0 to determine eligibility?

<p>The person's age. (A)</p> Signup and view all the answers

Flashcards

Hardware

The physical components of a computer, such as the keyboard, monitor, and motherboard.

Software

A set of instructions that tells the computer what to do and how to do it.

Data

The information that is processed by a computer.

Central Processing Unit (CPU)

The brain of the computer, responsible for executing instructions and performing calculations.

Signup and view all the flashcards

Arithmetic and Logic Unit (ALU)

A part of the CPU responsible for performing arithmetic and logic operations.

Signup and view all the flashcards

Control Unit (CU)

A part of the CPU responsible for controlling the flow of data and instructions.

Signup and view all the flashcards

Von-Neumann Architecture

A type of computer architecture where data and instructions are stored in the same memory.

Signup and view all the flashcards

Buses

The paths or channels used to transfer data between different components of a computer.

Signup and view all the flashcards

ROM (Read Only Memory)

A type of memory that permanently stores data and is used in devices like calculators and other embedded systems.

Signup and view all the flashcards

PROM (Programmable Read Only Memory)

ROM chips that can be programmed once, but their contents cannot be later altered.

Signup and view all the flashcards

EPROM (Erasable Programmable Read Only Memory)

ROM that can be erased by exposing it to ultraviolet light.

Signup and view all the flashcards

EEPROM (Electrically Erasable Programmable Read Only Memory)

ROM that can be electrically erased and reprogrammed multiple times, commonly seen in computers.

Signup and view all the flashcards

Secondary Memory

A non-volatile memory used for storing large amounts of data permanently. It's slower than primary memory but retains data even when the computer is off.

Signup and view all the flashcards

Memory Hierarchy

The organization of different storage types in a computer system based on their speed of access. The fastest storage is at the top, and the slowest is at the bottom.

Signup and view all the flashcards

Cache Memory

Small, ultra-fast memory directly inside the CPU that stores frequently used data for quick access. It acts as a temporary holding space.

Signup and view all the flashcards

Main Memory

The main memory that directly interacts with the CPU. It's a large, fast memory used for storing data and programs being actively used.

Signup and view all the flashcards

RAM (Random Access Memory)

A type of memory that can be both read from and written to. It is volatile, meaning that data is lost when the power is turned off.

Signup and view all the flashcards

System Software

Software that runs directly on the hardware and manages essential system resources like memory, input/output devices, and files. It creates the foundation for other programs to operate.

Signup and view all the flashcards

Application Software

Software designed to perform specific tasks for users, like word processing, web browsing, or playing games. It relies on system software to function.

Signup and view all the flashcards

Machine Language

A low-level programming language that uses binary code (0s and 1s) to directly communicate with the computer's central processing unit (CPU). It's often considered the most basic and efficient language for programming, but it's also the most difficult to understand and write.

Signup and view all the flashcards

Assembly Language

A programming language that uses symbolic representations (mnemonics) instead of binary code for instructions. While still low-level, it's more readable and manageable than machine language.

Signup and view all the flashcards

High-Level Languages

Programming languages designed to be closer to human language (like English), making them more understandable and easier to write. They require a compiler or interpreter to translate the code into machine language.

Signup and view all the flashcards

Compilation

A process that translates high-level language code into machine language, which the computer can understand and execute.

Signup and view all the flashcards

Interpretation

A program that reads and executes high-level language code line-by-line, without creating a separate executable file.

Signup and view all the flashcards

Hardware and Software Relationship

The combination of hardware and software working together to create a fully functional computing system.

Signup and view all the flashcards

Assembly Language Program

A set of instructions written in an assembly language. These instructions are close to machine code, using short, English-like representations, making them easier for programmers to understand.

Signup and view all the flashcards

Assembler

A translator that converts assembly language into machine code. This allows the computer to understand and execute the instructions written in assembly language.

Signup and view all the flashcards

Compiler

A translator that converts high-level programming languages (like Python, Java) into a lower-level language that the computer can understand.

Signup and view all the flashcards

Interpreter

A translator that converts high-level programming languages into machine code line-by-line.

Signup and view all the flashcards

Algorithm

A set of well-defined instructions that solve a specific problem. It should be clear, unambiguous, and have well-defined inputs and outputs.

Signup and view all the flashcards

Flowchart

A visual representation of an algorithm, using symbols and flowlines to show the sequence of steps.

Signup and view all the flashcards

Terminal symbol

Used to indicate the beginning (START), ending (STOP) and passes (HALT) in the program logic flow.

Signup and view all the flashcards

Input/Output symbol

Represents any function of an I/O device in the program, such as reading input or displaying output.

Signup and view all the flashcards

Processing symbol

Represents arithmetic operations (like addition, subtraction) and data movement instructions.

Signup and view all the flashcards

Decision symbol

Used as decision symbols to indicate a point where a choice needs to be made, with branches leading to different paths depending on the decision.

Signup and view all the flashcards

Flow lines

Lines connecting various symbols to show the flow of operation in the flowchart.

Signup and view all the flashcards

Connector symbol

Small circles used to connect different parts of a flowchart, especially when the flowchart is too large to fit on one page.

Signup and view all the flashcards

Study Notes

Module 1

  • This module covers computer architecture, programming languages, and structured programming.
  • It includes: basics of computer architecture (Von-Neumann), types of programming languages (system and application software, compilers, interpreters, high-level and low-level languages), and introduction to structured programming (algorithm, flowcharts, pseudo-code).

Computer

  • A computer is an electronic device that processes data from users, performs calculations and operations, and produces desired output.
  • Hardware refers to the physical parts of a computer.
  • Software is a set of instructions that guides the computer's operations.
  • Data is the input provided to the computer.
  • Users are individuals who interact with the computer.

Basics of Computer Architecture (Von-Neumann)

  • Proposed in 1945, Von-Neumann architecture is a fundamental computer design.
  • It consists of a Control Unit, Arithmetic Logic Unit (ALU), registers, and input/output units.
  • This architecture stores instructions, data, and program data in the same memory.
  • Data is stored on the computer's hard drive.

Components of Von-Neumann Model

  • Central Processing Unit (CPU)
  • Memory Unit
  • Input Unit
  • Output Unit

Central Processing Unit (CPU)

  • The CPU performs the majority of data processing operations in a computer.
  • Key components include the Arithmetic Logic Unit (ALU), Control Unit (CU), and various registers.
  • The ALU handles arithmetic and logical operations.
  • The CU manages the execution of computer programs.
  • Registers are temporary storage locations within the CPU, holding data and intermediate results.

Arithmetic Logic Unit (ALU)

  • The ALU executes arithmetic and logic operations.
  • Arithmetic operations include addition, subtraction, multiplication, division, etc.
  • Logic operations include AND, OR, NOT, etc.

Control Unit (CU)

  • The CU controls the flow of operations within a computer system.
  • It manages the data movement and actions of other components.

CPU Registers

  • MAR (Memory Address Register): Holds the memory address of data to be accessed.
  • MDR (Memory Data Register): Holds data being transferred to or from memory.
  • AC (Accumulator): Stores intermediate arithmetic and logic results.
  • PC (Program Counter): Contains the address of the next instruction to be executed.
  • CIR (Current Instruction Register): Contains the current instruction being processed.

Buses

  • Used to share information among CPU registers.
  • A bus consists of common lines (one for each bit of a register) enabling data transfer one bit at a time.
  • Von-Neumann architecture uses three major bus systems for data transfer (Address, Data, and Control buses).

Types of Buses

  • Address Bus: Carries the address of data between the processor and memory.
  • Data Bus: Carries data between the processor, memory unit, and input/output devices.
  • Control Bus: Carries signals/commands from the CPU.

Memory Unit

  • Stores binary data grouped in words.
  • The structure of a memory unit is defined by the number of words and bits in each word.
  • Classified into: Primary Memory and Secondary Memory

Primary Memory

  • Also known as main memory, used to store data and instructions during computer operations.
  • Primarily utilizes semiconductor technology and is faster and less costly than secondary memory.
  • Types include Read-Only Memory (ROM) and Random Access Memory (RAM).

Random Access Memory (RAM)

  • A volatile memory.
  • Data is lost when power is turned off.
  • It's used for temporarily storing programs or data for processing by the processor.
  • Types include Static RAM (SRAM) and Dynamic RAM (DRAM).

Read-Only Memory (ROM)

  • Non-volatile memory, meaning data is retained even without power.
  • It holds essential instructions for the computer's operation, often containing the initial boot-up instructions.
  • Different types include PROM, EPROM, and EEPROM.

Secondary Memory

  • Also known as auxiliary memory, it stores a large quantity of data that is permanent.
  • It's slower but less expensive than primary memory.
  • Data is not accessed directly by the CPU; it must first be transferred to primary memory.
  • Examples include magnetic disks (hard drives), magnetic tapes, optical disks (CDs, DVDs), and USB drives.

Memory Hierarchy

  • Arranges storage devices based on access speed and cost.
  • CPU registers have the highest speed and lowest capacity.
  • Secondary memory (hard drives, tapes) has the lowest speed and highest capacity.
  • Intermediate levels like cache and primary memory provide a balance between speed and capacity.

Registers

  • Smallest memory location in the CPU.
  • Typically SRAM (static RAM).
  • Holds data words (64 or 128 bits).
  • Crucial for processing, including program counters, status word registers, and accumulators.

Cache Memory

  • Temporary storage between RAM and the CPU, holding frequently accessed data and instructions.
  • Improves processing speed as the CPU accesses data from cache more quickly than from RAM.

Main Memory

  • One central storage unit in a computer system.
  • Used to store programs and data during computer operations.
  • Relatively large and fast compared to secondary memory.

Auxiliary Memory

  • Lowest cost and highest capacity storage in a computer system.
  • Primarily used for storing large amounts of data for long-term storage or when not immediately needed.
  • Includes magnetic disks (hard drives), magnetic tapes, optical disks (CDs, DVDs).

Types of Software

  • Software is a set of instructions or commands guiding users on what to do.
    • System Software
      • Interface between application and system, managing system resources & aiding application software operation.
      • Also a general-purpose type of software.
    • Application Software
      • Developed for specific tasks upon user request.
      • Uses high-level languages (C, C++, Java).
      • Examples include MS Office, web browsers, etc.

Programming Languages

  • Programs are written in high or low-level languages depending on the task.
    • High-level languages are closer to human language for easier development.
    • Low-level languages (machine language) or assembly language are machine-dependent and difficult to maintain.
    • Machine Language is the only language the CPU directly understands.

System Translators

  • Convert programs from one programming language to another.
    • Compiler — converts an entire program into machine code at once.
    • Interpreter — translates and executes one line of code at a time.
    • Assembler — converts assembly language to machine language.

Algorithm and Flowchart

  • Algorithm is a step-by-step procedure for solving a problem.
  • Algorithm characteristics include:
    • Clear and Unambiguous
    • Well-Defined Input/Output
    • Finite-nes
    • Feasible
    • Language Independent

Flowchart Symbols

  • Terminal: Start and Stop
  • Input/Output: Data entry/display
  • Processing: Calculations or operations
  • Decisions: Choices (e.g., if/then statements)
  • Flow Lines: Indicate direction of program flow
  • Connectors: Linking segments of a flowchart.

Examples of Algorithms (and Flowcharts):

  • Reading and displaying two numbers
  • Finding the largest of three numbers
  • Calculating the sum of n natural numbers.
  • Calculating the factorial of a number.
  • Creating a Multiplication Table
  • Fibonacci Series
  • Various other calculations as outlined.

Studying That Suits You

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

Quiz Team

Related Documents

Description

Test your knowledge on computer architecture and memory systems with this quiz. Explore questions related to the functions of the address bus, various types of memory, and key components of Von-Neumann architecture. Ideal for students in computer science and information technology courses.

More Like This

Parts of a Computer
5 questions

Parts of a Computer

InvincibleSerpent5632 avatar
InvincibleSerpent5632
Computer Architecture Overview
14 questions
CPU and Memory Basics
8 questions

CPU and Memory Basics

EntertainingConnemara2313 avatar
EntertainingConnemara2313
Use Quizgecko on...
Browser
Browser