2078

CSC114 · TU past paper

Introduction to Information Technology 2078 question paper

The complete TU 2078 exam paper for Introduction to Information Technology (CSC114), all 12 questions with solved model answers written to the mark scheme.

Tap a question to open its answer.

  1. 110 marksCentral Processing UnitAnswer

    Differentiate analog computer with digital computer. What is CPU and how it works? What does an instruction cycle in CPU consist of?[10]

    Differentiate Analog Computer with Digital Computer. What is CPU and How it Works? What Does an Instruction Cycle in CPU Consist of?


    Part 1: Difference Between Analog Computer and Digital Computer (3 marks)

    Analog Computer: A computer that uses continuously changeable aspects of physical phenomena such as electrical, mechanical, etc. Examples: Planimeter, Nomogram.

    Digital Computer: A computer that is used to process information with quantities using digits, usually the binary number system. Examples: IBM PC, Apple Macintosh.

    BasisAnalog ComputerDigital Computer
    DefinitionWorks with continuous physical quantities (voltage, current, etc.)Works with discrete digits, usually binary (0s and 1s)
    Data RepresentationRepresents data as continuous signalsRepresents data as discrete digits
    AccuracyLess accurateHighly accurate
    SpeedSlower for general-purpose tasksVery fast in processing
    OutputOutput is in the form of graphs or dialsOutput is in the form of numbers, text, images
    MemoryDoes not have significant memoryHas large memory capacity
    ExamplesPlanimeter, Nomogram, SpeedometerIBM PC, Apple Macintosh
    UsageUsed in scientific and engineering measurementsUsed for general-purpose computing
    CostGenerally less expensiveCan be more expensive
    ProgrammingNot easily programmableEasily programmable

    Part 2: What is CPU and How it Works? (4 marks)

    Definition of CPU

    A Central Processing Unit (CPU) is the primary component of a computer that carries out the instructions of a computer program. As noted in the reference:

    Microprocessor: An integrated circuit that contains all the functions of a central processing unit of a computer is called a microprocessor.

    The CPU is often called the "brain of the computer" because it controls all operations of the computer system.


    Components of CPU

    The CPU consists of three main components:

    1. Arithmetic and Logic Unit (ALU)

    • Performs all arithmetic operations (addition, subtraction, multiplication, division)
    • Performs all logical operations (AND, OR, NOT, comparison)

    2. Control Unit (CU)

    • Directs and coordinates all operations of the CPU
    • Fetches instructions from memory, decodes them, and controls execution
    • Acts as the manager of the CPU

    3. Registers

    • Small, high-speed temporary storage locations inside the CPU
    • Examples: Program Counter (PC), Instruction Register (IR), Accumulator (ACC), Memory Address Register (MAR), Memory Buffer Register (MBR)

    How CPU Works

    The CPU works by following a continuous cycle of operations:

    1. Fetch: The Control Unit fetches the next instruction from main memory using the address stored in the Program Counter (PC).
    2. Decode: The fetched instruction is decoded by the Control Unit to determine what operation needs to be performed. As noted in the reference, the Opcode tells the processor what to do with the data.
    3. Execute: The ALU or other components carry out the instruction (arithmetic, logical, or data transfer operation).
    4. Store/Write Back: The result is stored back into a register or memory location.

    This process repeats continuously as long as the computer is running.


    Instruction Format (Supporting Detail)

    An instruction format is a binary format which specifies a computer instruction. It specifies:

    • Opcode: Tells the processor what operation to perform
    • Operand: Stores the data to be operated or manipulated
    • Addressing Mode: Specifies how the operand is accessed

    Part 3: Instruction Cycle in CPU (3 marks)

    The Instruction Cycle (also called the Fetch-Decode-Execute Cycle) is the complete process the CPU follows to process a single instruction. It consists of the following steps:


    Steps of the Instruction Cycle

    +----------+     +----------+     +-----------+     +----------+
    |  FETCH   | --> |  DECODE  | --> |  EXECUTE  | --> |  STORE   |
    +----------+     +----------+     +-----------+     +----------+
          ^                                                    |
          |____________________________________________________|
                        (Cycle repeats)
    

    Step 1: Fetch

    • The CPU fetches the instruction from main memory
    • The Program Counter (PC) holds the address of the next instruction
    • The instruction is loaded into the Instruction Register (IR)
    • The PC is incremented to point to the next instruction

    Step 2: Decode

    • The Control Unit decodes the instruction stored in the IR
    • It identifies the Opcode (what operation to do) and the Operand (what data to use)
    • In RISC architecture, decoding is simple (CPI range: ~1.5)
    • In CISC architecture, decoding is complex (CPI range: 2 to 15)

    Step 3: Execute

    • The decoded instruction is executed by the ALU or other units
    • Arithmetic or logical operations are performed on the operands
    • RISC does not require external memory for calculations; CISC does

    Step 4: Store (Write Back)

    • The result of the execution is written back to a register or memory location
    • The cycle then repeats for the next instruction

    Summary Table of Instruction Cycle

    PhaseActionUnit Involved
    FetchGet instruction from memoryControl Unit, PC, IR
    DecodeInterpret the opcode and operandControl Unit
    ExecutePerform the operationALU
    StoreSave the resultRegisters / Memory

    Key Note: RISC vs CISC in Instruction Cycle

    FeatureRISCCISC
    CPI~1.52 to 15
    DecodingSimple
  2. 210 marksData Transmission MediaAnswer

    What is computer network? Discuss different types of data transmission media in computer network with their advantages and disadvantages.[10]

    A computer network is a group of computer systems and other computing hardware devices connected together for the purpose of sharing resources via the internet or other communication media. In other words, a computer network allows the e...

  3. 310 marksDatabase Management SystemAnswer

    What is database management system? Why database management systems are used. Discuss the database system architecture.[10]

    A Database Management System (DBMS) is a collection of interrelated data and a set of programs to access and manage that data. It is software that acts as an interface between the user and the database, allowing users to create, read, up...

  4. 45 marksCache MemoryAnswer

    What is cache memory? How is it different from register? [5]

    Cache memory is a high-speed temporary storage located between the CPU and the main memory (RAM) in the memory hierarchy. Its primary purpose is to reduce the average time required to access data from the main memory by storing frequentl...

  5. 55 marksSource Data Entry DevicesAnswer

    Discuss about the source data entry device with example. [5]

    Source data entry devices are input devices that are used for audio input, video input, and to enter data from a source document directly into the computer. Unlike traditional input devices (such as keyboard or mouse), source data entry ...

  6. 65 marksNumericalBinary ArithmeticAnswer

    How binary addition is done? Show binary addition of (11001) with (11011). [5]

    • First number: $A = 110012$ - Second number: $B = 110112$ - Operation: binary addition $A + B$ Binary addition works bit by bit from the least significant bit (rightmost), following these rules: A B Sum Carry ------------------ 0 0 0 0 ...
  7. 75 marksTypes of SoftwareAnswer

    What is software? How is it differs from hardware? Why is software needed? [5]

    Software is a set of programs, instructions, and data that tell a computer what to do and how to do it. It is the non-physical, intangible component of a computer system that enables the hardware to perform specific tasks. Software acts ...

  8. 85 marksOperating SystemAnswer

    Describe the functionalities of operating system. [5]

    An Operating System (OS) is the most important part of a computer. It acts as an intermediary between the user of a computer and the computer hardware. It controls and coordinates the use of hardware among different application software ...

  9. 95 marksThe Internet ArchitectureAnswer

    What is internet? Describe about the internet architecture. [5]

    The Internet is a global network of interconnected computers and computer networks that communicate with each other using a standardized set of protocols (primarily the TCP/IP protocol suite). It allows billions of devices worldwide to e...

  10. 105 marksMultimedia ApplicationsAnswer

    Define multimedia. Discuss the applications of multimedia. [5]

    Multimedia is the use of a computer to present and combine text, graphics, audio, and video with links and tools that let the user navigate, interact, create, and communicate. In other words, multimedia integrates multiple forms of media...

  11. 115 marksSecurity Threat and Security AttackAnswer

    Differentiate security attack for security threat. How virus affects computer? [5]

    --- Basis Security Threat Security Attack --------- Definition A security threat is a possibility of danger that might harm the vulnerability of a computer system and break the security to cause damage. A security attack is an actual att...

  12. 125 marksGIS and its ApplicationsAnswer

    Write short notes on : a. GIS b. E-commerce [5]

    --- GIS (Geographic Information System) is a computer-based system designed to capture, store, manipulate, analyze, manage, and present all types of geographical or spatial data. It integrates hardware, software, and data to help users u...