Unit 2: Computer Fundamentals - Subjective Questions
CSE111 — Orientation To Computing • Practice Questions with Detailed Answers
20 questions
Define a computer and explain the major characteristics that distinguish computers from other electronic devices.
Definition: A computer is an electronic device that accepts data as input, processes it according to a set of instructions, stores data and instructions, and produces meaningful information as output.
Major characteristics:
- Speed: Computers can perform millions or billions of operations in a very short time.
- Accuracy: They produce highly accurate results when the input data and instructions are correct.
- Diligence: Computers do not become tired or lose concentration while performing repetitive tasks.
- Storage: They can store large amounts of data and retrieve it whenever required.
- Versatility: A computer can be used for calculations, communication, research, entertainment, education, and business operations.
- Automation: Once instructions and data are provided, a computer can complete tasks automatically.
- Reliability: Computers can perform the same operation repeatedly with consistent results.
- Lack of intelligence: A computer cannot think independently or make judgments unless it has been programmed to do so.
Describe the major stages in the evolution of computers from early calculating devices to modern computers.
The evolution of computers occurred through several important stages:
- Early calculating devices: The abacus was used for basic arithmetic. Later devices such as Napier's Bones, the slide rule, and mechanical calculators improved calculation methods.
- Mechanical computers: Charles Babbage designed the Difference Engine and the Analytical Engine. The Analytical Engine introduced ideas similar to the input, processing, storage, and output units of modern computers.
- First generation: These computers used vacuum tubes. They were very large, expensive, produced much heat, and consumed considerable electricity.
- Second generation: Transistors replaced vacuum tubes, making computers smaller, faster, more reliable, and more energy efficient.
- Third generation: Integrated circuits combined many electronic components on a single chip, increasing processing power and reducing size.
- Fourth generation: Microprocessors placed the central processing unit on a single chip. Personal computers, laptops, and many embedded systems became common.
- Fifth generation and modern systems: Modern computers use advanced microprocessors, artificial intelligence, parallel processing, cloud computing, and portable technologies.
Explain the characteristics, advantages, and limitations of modern computers.
Characteristics and advantages:
- Computers process data at very high speed.
- They provide accurate and reliable results when supplied with correct data and programs.
- They can store and manage large volumes of information.
- They are versatile and support many different applications.
- They automate repetitive and complex tasks.
- They allow rapid communication and sharing of information.
- They can operate continuously without fatigue.
Limitations:
- A computer has no natural intelligence or common sense.
- It cannot correct incorrect input unless the program is designed to detect the error.
- It depends on electricity, hardware, and software.
- It may be affected by viruses, unauthorized access, or hardware failure.
- It cannot take responsibility for ethical or personal decisions.
Therefore, computers are powerful tools, but their effectiveness depends on properly designed programs, accurate data, and responsible users.
Compare the different generations of computers with respect to their main technology, size, speed, reliability, and examples.
| Generation | Main technology | Size and speed | Reliability | Examples |
|---|---|---|---|---|
| First | Vacuum tubes | Very large and comparatively slow | Low; generated much heat | ENIAC, UNIVAC I |
| Second | Transistors | Smaller and faster than first-generation computers | Better and more energy efficient | IBM 1401, CDC 1604 |
| Third | Integrated circuits | Smaller, faster, and more powerful | High | IBM System/360, PDP-8 |
| Fourth | Microprocessors | Compact, very fast, and suitable for personal use | Very high | IBM PC, modern desktop computers |
| Fifth | Artificial intelligence, advanced processors, and parallel processing | Extremely powerful, portable, and highly connected | Very high, with advanced error-handling capabilities | AI systems, robotics, modern smart devices |
Each generation reduced physical size and cost while increasing speed, storage capacity, reliability, and ease of use.
Explain the functional units of a computer and describe how they work together to process data.
The main functional units of a computer are:
- Input unit: It accepts data and instructions from devices such as keyboards, mice, scanners, and microphones. It converts them into a form that the computer can process.
- Memory unit: It stores data, instructions, intermediate results, and final results. Primary memory includes RAM and ROM, while secondary storage includes hard drives and solid-state drives.
- Arithmetic and Logic Unit (ALU): It performs arithmetic operations such as addition and subtraction and logical operations such as comparison and decision-making.
- Control Unit (CU): It directs and coordinates all computer operations. It fetches instructions, interprets them, and controls their execution.
- Output unit: It converts processed results into a form that users can understand through monitors, printers, speakers, or projectors.
The Central Processing Unit (CPU) consists mainly of the ALU, CU, and registers. The general process is: input data is received, instructions and data are stored, the control unit directs processing, the ALU performs operations, and the output unit presents the result.
Describe the input, processing, output, and storage cycle of a computer with a suitable example.
The input-processing-output-storage cycle explains how a computer handles data:
- Input: Raw data and instructions are entered using an input device. For example, a user enters the marks of a student through a keyboard.
- Processing: The CPU processes the data according to the instructions. It may add the marks and calculate the average.
- Output: The processed information is displayed or communicated through an output device, such as a monitor or printer.
- Storage: The data and results may be saved for future use on a hard disk, solid-state drive, memory card, or cloud storage.
For example, when calculating a student's average, the marks are entered as input, the CPU adds and divides them, the average is displayed as output, and the result can be stored in a student database.
Distinguish between the Arithmetic and Logic Unit and the Control Unit of a computer.
| Feature | Arithmetic and Logic Unit (ALU) | Control Unit (CU) |
|---|---|---|
| Main function | Performs arithmetic and logical operations | Directs and coordinates computer operations |
| Arithmetic work | Performs addition, subtraction, multiplication, and division | Does not normally perform calculations |
| Logical work | Compares values and performs logical decisions | Interprets instructions and issues control signals |
| Role in instruction execution | Executes the required operation | Fetches and decodes the instruction and controls its execution |
| Example | Determines whether one number is greater than another | Tells the ALU which operation to perform |
Both units are essential parts of the CPU. The control unit manages the sequence of activities, while the ALU carries out the actual arithmetic and logical processing.
Explain the memory hierarchy of a computer and compare primary memory with secondary memory.
The memory hierarchy arranges storage devices according to speed, cost, capacity, and distance from the CPU. A typical hierarchy is:
- Registers: The fastest storage locations inside the CPU, with very small capacity.
- Cache memory: Very fast memory that stores frequently used data and instructions.
- Primary memory: Main memory directly accessible by the CPU, including RAM and ROM.
- Secondary memory: Long-term storage such as hard drives, solid-state drives, optical discs, and memory cards.
| Feature | Primary memory | Secondary memory |
|---|---|---|
| Access | Directly accessed by the CPU | Accessed through input/output operations |
| Speed | Faster | Generally slower |
| Capacity | Usually smaller | Usually larger |
| Volatility | RAM is volatile; ROM is non-volatile | Generally non-volatile |
| Purpose | Stores currently running programs and data | Stores programs and data for long-term use |
| Examples | RAM, ROM, cache | HDD, SSD, USB drive, memory card |
The hierarchy provides a balance between high speed and large, economical storage capacity.
Define computer hardware and software. Explain why both are necessary for the operation of a computer.
Hardware refers to the physical components of a computer that can be seen and touched. Examples include the keyboard, monitor, motherboard, CPU, memory, printer, and storage devices.
Software refers to the programs, procedures, and instructions that tell the hardware what to do. Examples include operating systems, word processors, web browsers, and device drivers.
Both are necessary because:
- Hardware provides the physical resources for input, processing, storage, and output.
- Software provides instructions for using and controlling those resources.
- Hardware without software cannot perform useful tasks.
- Software without hardware cannot be executed.
- The operating system manages hardware and provides a platform for application programs.
For example, a printer is hardware, but it requires printer software or a driver to receive and correctly interpret printing instructions.
Distinguish between system software and application software with suitable examples.
| Feature | System software | Application software |
|---|---|---|
| Purpose | Manages computer hardware and provides a platform for applications | Performs tasks for the user |
| Operation | Usually operates in the background | Directly used to complete specific activities |
| Dependency | Essential for the basic operation of a computer | Depends on system software to run |
| Examples | Operating systems, device drivers, language translators, utility programs | Word processors, spreadsheets, web browsers, media players |
| Users | Often used indirectly by users and other programs | Usually operated directly by users |
System software controls resources such as memory, files, and input/output devices. Application software helps users perform tasks such as writing documents, preparing budgets, browsing the internet, or editing images.
Explain the main categories of software and discuss the role of an operating system.
The main categories of software are:
- System software: Controls and manages the hardware. Operating systems, device drivers, and utility programs are examples.
- Application software: Helps users perform specific tasks, such as preparing documents, browsing the web, or managing accounts.
- Programming software: Provides tools for creating programs, including compilers, interpreters, debuggers, and integrated development environments.
The operating system is the most important system software. Its roles include:
- Managing the CPU and scheduling processes.
- Managing primary and secondary memory.
- Organizing files and folders.
- Controlling input and output devices.
- Providing a user interface.
- Managing user accounts, access permissions, and security.
- Detecting errors and coordinating system resources.
Examples of operating systems include Windows, Linux, macOS, Android, and iOS.
Compare RAM, ROM, cache memory, and registers according to location, speed, volatility, and use.
| Memory type | Location | Speed | Volatility | Main use |
|---|---|---|---|---|
| Registers | Inside the CPU | Fastest | Volatile | Hold immediate data, instructions, and addresses during processing |
| Cache memory | Close to or inside the CPU | Faster than RAM | Volatile | Stores frequently used data and instructions |
| RAM | On the motherboard | Fast, but slower than cache | Volatile | Holds programs and data currently being used |
| ROM | On the motherboard or embedded device | Slower than registers and cache | Non-volatile | Stores permanent startup instructions and firmware |
Registers have the smallest capacity but the highest speed. RAM has greater capacity and supports active programs. ROM retains its contents without power, while cache improves CPU performance by reducing the time required to access frequently needed information.
Explain the difference between an assembler, a compiler, and an interpreter.
An assembler, compiler, and interpreter are language translators used to convert programming instructions into machine-understandable form.
- Assembler: Converts assembly language instructions into machine code. It usually produces an object program that can be executed by the computer.
- Compiler: Translates an entire high-level language program into machine code or an intermediate form before execution. Compilation may take time, but the resulting program generally executes quickly.
- Interpreter: Translates and executes a high-level language program one statement at a time. It makes debugging easier, but execution is usually slower because translation occurs during execution.
| Translator | Input language | Translation method | Execution characteristic |
|---|---|---|---|
| Assembler | Assembly language | Translates instructions into machine code | Produces machine-level code |
| Compiler | High-level language | Translates the complete program | Usually faster after compilation |
| Interpreter | High-level language | Translates one statement at a time | Usually slower but easier to test |
These translators allow programmers to write instructions in forms that are easier to understand than binary machine code.
Define a bus in computer architecture and describe the functions of the data bus, address bus, and control bus.
A bus is a set of parallel electrical or communication lines used to transfer data, addresses, and control signals among the CPU, memory, and input/output devices.
- Data bus: Carries actual data and instructions between the CPU, memory, and devices. It is usually bidirectional.
- Address bus: Carries the address of the memory location or device that the CPU wants to access. It is generally unidirectional from the CPU.
- Control bus: Carries control and timing signals, such as read, write, interrupt, and clock signals. Its direction depends on the type of signal.
The width of a bus affects capacity and performance. For example, a wider data bus can transfer more bits in one operation, while a wider address bus can identify a larger number of memory locations.
Classify computers according to the type of data they process and explain each classification.
Computers can be classified according to the type of data they process as follows:
- Analog computers: Process continuous data such as temperature, pressure, voltage, or speed. They are useful in scientific and engineering applications where physical quantities change continuously.
- Digital computers: Process discrete data, usually represented using binary digits. Desktops, laptops, smartphones, and calculators are common examples. They provide accurate and repeatable results.
- Hybrid computers: Combine the features of analog and digital computers. They can measure continuous physical quantities and then convert the measurements into digital form for processing. They are used in medical equipment, industrial control systems, and scientific research.
The main difference is that analog computers work with continuous values, digital computers work with discrete values, and hybrid computers use both methods.
Explain the classification of computers according to size, processing power, and purpose.
Computers may be classified as follows:
- Microcomputers: Small computers designed for individual users. Desktops, laptops, tablets, and smartphones are examples.
- Minicomputers: Medium-sized systems that can support multiple users and are used by small or medium-sized organizations. They are less common today because many have been replaced by servers.
- Mainframe computers: Powerful systems designed to process very large volumes of data and support many users simultaneously. Banks, airlines, and government organizations often use them.
- Supercomputers: The fastest and most powerful computers. They perform complex calculations for weather forecasting, space research, scientific simulations, and advanced engineering.
- Workstations: High-performance single-user computers used for computer-aided design, scientific analysis, animation, and other demanding applications.
- Embedded computers: Specialized computers built into devices such as washing machines, vehicles, medical instruments, and security systems.
The classification is based on processing capability, number of users, physical size, cost, and intended application.
Compare a mainframe computer, a supercomputer, a server, and a personal computer.
| Type | Main purpose | Major features | Typical applications |
|---|---|---|---|
| Mainframe | Process huge volumes of transactions for many users | Very reliable, high input/output capacity, and supports many simultaneous users | Banking, insurance, airline reservations, and government records |
| Supercomputer | Perform extremely complex calculations | Highest processing speed and large-scale parallel processing | Weather modeling, scientific research, space studies, and simulations |
| Server | Provide services and resources to client computers | Designed for network access, shared storage, and continuous operation | Websites, databases, file sharing, email, and applications |
| Personal computer | Support the work of one user | Affordable, general-purpose, and easy to operate | Education, office work, browsing, communication, and entertainment |
A mainframe emphasizes transaction processing and many users, while a supercomputer emphasizes maximum computational speed. A server provides network services, whereas a personal computer is primarily intended for individual use.
Describe the differences between general-purpose computers and special-purpose computers.
General-purpose computers are designed to perform many different types of tasks. They can run various application programs and are easily reconfigured for different uses. Examples include desktop computers, laptops, and tablets.
Special-purpose computers are designed to perform a particular task or a limited set of tasks. Their hardware and software are optimized for a specific function. Examples include computers in traffic-light controllers, washing machines, digital cameras, ATMs, and vehicle control systems.
| Feature | General-purpose computer | Special-purpose computer |
|---|---|---|
| Function | Performs many tasks | Performs a specific task |
| Flexibility | Highly flexible | Limited flexibility |
| Software | Runs many applications | Usually runs dedicated software |
| Cost and design | May include many general features | Optimized for a particular function |
| Example | Laptop used for writing and browsing | ATM used for banking transactions |
General-purpose systems provide versatility, while special-purpose systems provide efficiency and reliability for a defined application.
Explain the fetch-decode-execute cycle of the CPU.
The fetch-decode-execute cycle is the sequence used by the CPU to process instructions.
- Fetch: The control unit obtains the next instruction from memory using the address stored in the program counter. The instruction is placed in an instruction register.
- Decode: The control unit interprets the instruction and determines the operation to be performed, the data required, and the relevant locations.
- Execute: The required operation is carried out. The ALU may perform a calculation or logical comparison, or the CPU may transfer data between registers, memory, and devices.
- Store or write back: The result is stored in a register or memory location when necessary.
- Update: The program counter is updated so that the CPU can fetch the next instruction.
This cycle repeats continuously while a program is running. Interrupts may temporarily change the sequence so that the CPU can respond to urgent events.
Discuss the relationship between hardware, software, data, and users in a computer system.
A computer system operates through the interaction of four essential elements:
- Hardware: Provides the physical equipment used for input, processing, storage, and output.
- Software: Supplies the instructions that control hardware and process data.
- Data: Consists of raw facts, figures, symbols, or observations entered into the system. After processing, data becomes useful information.
- Users: Provide instructions, enter data, interpret results, and make decisions based on the information produced.
The relationship can be summarized as follows:
Users provide data and instructions -> software directs the hardware -> hardware processes the data -> useful information is produced for users.
A failure in any element can affect the whole system. For example, powerful hardware cannot produce useful results without suitable software, and accurate software cannot produce meaningful information if the user supplies incorrect data.
Define a computer and explain the major characteristics that distinguish computers from other electronic devices.
Definition: A computer is an electronic device that accepts data as input, processes it according to a set of instructions, stores data and instructions, and produces meaningful information as output.
Major characteristics:
- Speed: Computers can perform millions or billions of operations in a very short time.
- Accuracy: They produce highly accurate results when the input data and instructions are correct.
- Diligence: Computers do not become tired or lose concentration while performing repetitive tasks.
- Storage: They can store large amounts of data and retrieve it whenever required.
- Versatility: A computer can be used for calculations, communication, research, entertainment, education, and business operations.
- Automation: Once instructions and data are provided, a computer can complete tasks automatically.
- Reliability: Computers can perform the same operation repeatedly with consistent results.
- Lack of intelligence: A computer cannot think independently or make judgments unless it has been programmed to do so.
Did this save you a night before the exam?
LPU Notes is free, and it stays free. Ads cover part of the server bill. The rest comes out of a student's own pocket: the domain, the storage, and keeping the site up through the weeks everyone needs it at once.
The payment button didn't load. An ad blocker or a filtered network is the usual reason. to try again.
Nothing here is ever locked, and nothing unlocks. Chip in only if it was worth it. What it pays for →