Unit 1: Computer Fundamentals and Data Representation - Subjective Questions
DECAP145 • Practice Questions with Detailed Answers
20 questions
Define a computer and explain its main characteristics in detail.
A computer is an electronic device that accepts data as input, processes it according to a set of stored instructions (program), and produces meaningful information as output while having the ability to store data for future use.
Main characteristics of a computer:
- Speed: Computers can perform millions to billions of operations per second. Operation times are measured in milliseconds (), microseconds (), nanoseconds (), and picoseconds ().
- Accuracy: Computers produce highly accurate results. Errors are usually due to incorrect input or faulty programs (GIGO - Garbage In, Garbage Out), not the machine.
- Diligence: A computer can perform repetitive tasks without fatigue, boredom, or loss of concentration.
- Versatility: A single computer can perform a wide variety of tasks such as playing music, editing documents, and performing calculations.
- Storage Capacity: Computers can store huge amounts of data and retrieve it whenever required.
- Automation: Once a program is loaded, a computer can work automatically without human intervention.
- Reliability: Computers give consistent results over long periods of operation.
Explain the generations of computers with their key features and technologies.
Computers have evolved through five generations, each defined by major technological advancements:
-
First Generation (1940–1956) – Vacuum Tubes:
- Used vacuum tubes for circuitry and magnetic drums for memory.
- Very large, generated a lot of heat, and consumed huge power.
- Used machine language. Example: ENIAC, UNIVAC.
-
Second Generation (1956–1963) – Transistors:
- Transistors replaced vacuum tubes; smaller, faster, cheaper.
- Used assembly language and early high-level languages (COBOL, FORTRAN).
- Example: IBM 1401.
-
Third Generation (1964–1971) – Integrated Circuits (ICs):
- Transistors were miniaturized onto silicon chips.
- Introduced keyboards, monitors, and operating systems.
- Example: IBM 360.
-
Fourth Generation (1971–Present) – Microprocessors:
- Thousands of ICs built onto a single chip (VLSI).
- Birth of personal computers and GUIs.
- Example: Intel 4004, IBM PC.
-
Fifth Generation (Present & Beyond) – Artificial Intelligence:
- Based on AI, parallel processing, and ULSI technology.
- Focus on voice recognition, robotics, and natural language processing.
Draw and explain the block diagram of a computer describing the function of each unit.
The block diagram of a computer shows the flow of data and control among its functional units.
+----------------+
| Input Unit |
+----------------+
|
v
| +-----------------------------+ | Central Processing Unit | +-----------+ +----------+ | ALU | Control | +-----------+ | Unit | +-----------+ +----------+ | Memory | +-----------+ | +-----------------------------+ |
|---|
v
+----------------+
| Output Unit |
+----------------+
Functions of each unit:
- Input Unit: Accepts data and instructions from the user and converts them into machine-readable form. Examples: keyboard, mouse, scanner.
- Central Processing Unit (CPU): The brain of the computer, consisting of:
- Arithmetic Logic Unit (ALU): Performs arithmetic (addition, subtraction) and logical (comparison) operations.
- Control Unit (CU): Directs and coordinates all operations by generating control signals; fetches, decodes, and executes instructions.
- Memory Unit: Stores data, instructions, and results. Divided into primary memory (RAM, ROM) and secondary memory (hard disk).
- Output Unit: Converts processed data into human-readable form. Examples: monitor, printer.
Distinguish between the Control Unit (CU) and the Arithmetic Logic Unit (ALU).
Both CU and ALU are key components of the CPU but perform different functions:
| Basis | Control Unit (CU) | Arithmetic Logic Unit (ALU) |
|---|---|---|
| Function | Controls and coordinates all operations of the computer | Performs arithmetic and logical operations |
| Operations | Fetching, decoding, and executing instructions | Addition, subtraction, comparison, AND, OR |
| Data Handling | Does not process data directly | Directly processes and manipulates data |
| Role | Acts as the manager/director | Acts as the calculator |
| Output | Generates control signals | Produces computed results |
In summary:
- The CU tells other components what to do and when.
- The ALU does the actual computation and logic work.
Describe the applications of Information Technology (IT) in various sectors.
Information Technology has transformed nearly every sector of society:
- Education: E-learning platforms, online examinations, virtual classrooms, digital libraries, and smart boards.
- Healthcare: Electronic health records, telemedicine, medical imaging (MRI, CT scans), robotic surgery, and hospital management systems.
- Banking & Finance: ATMs, online banking, UPI, mobile wallets, fraud detection, and stock trading.
- Business & Commerce: E-commerce (Amazon, Flipkart), inventory management, CRM, and digital marketing.
- Government (e-Governance): Online tax filing, digital identity (Aadhaar), passport services, and public grievance systems.
- Entertainment: Streaming services, gaming, animation, and virtual reality.
- Transportation: GPS navigation, online ticket booking, traffic management, and ride-sharing apps.
- Agriculture: Weather forecasting, precision farming, and market price information systems.
- Industry/Manufacturing: Automation, robotics, CAD/CAM, and supply chain management.
IT improves efficiency, accuracy, speed, and accessibility across all these domains.
Explain the different number systems used in computers with their base and symbols.
A number system defines how numbers are represented using a set of symbols. Four common number systems are used in computing:
-
Binary Number System:
- Base =
- Symbols:
- Used internally by all digital computers.
-
Octal Number System:
- Base =
- Symbols: to
- Used as a shorthand for binary (groups of 3 bits).
-
Decimal Number System:
- Base =
- Symbols: to
- The number system used by humans in daily life.
-
Hexadecimal Number System:
- Base =
- Symbols: to and (where )
- Used as a compact way to represent binary (groups of 4 bits), common in memory addresses.
The value of a digit depends on its position (positional weight) relative to the base.
Convert the decimal number into binary, octal, and hexadecimal. Show all steps.
We convert to other bases using repeated division.
Decimal to Binary (divide by 2):
Reading remainders bottom to top:
Decimal to Octal (divide by 8):
So
Decimal to Hexadecimal (divide by 16):
So
Convert the binary number into its decimal equivalent. Explain the positional weight method.
In the binary system, each digit has a positional weight that is a power of , starting from at the rightmost position.
Binary number:
Therefore, .
Positional weight method: Multiply each binary digit by its positional weight () and add the products to get the decimal value.
Describe the procedure to convert a binary number to an octal number and convert to octal.
Procedure (Binary to Octal):
- Since , each octal digit corresponds to exactly 3 binary bits.
- Group the binary digits into sets of 3 bits, starting from the right (least significant bit).
- Add leading zeros to the leftmost group if needed.
- Convert each 3-bit group to its octal equivalent.
Conversion of :
Group into 3 bits from the right:
Convert each group:
Therefore, .
Explain the procedure to convert a binary number to a hexadecimal number and convert to hexadecimal.
Procedure (Binary to Hexadecimal):
- Since , each hexadecimal digit corresponds to exactly 4 binary bits.
- Group the binary digits into sets of 4 bits, starting from the right.
- Add leading zeros to the leftmost group if required.
- Convert each 4-bit group into its hexadecimal equivalent (remember ).
Conversion of :
Group into 4 bits from the right:
Convert each group:
Therefore, .
Convert the hexadecimal number into decimal and binary. Show all steps.
Hexadecimal to Decimal:
Each hex digit has a positional weight that is a power of . Note , .
So .
Hexadecimal to Binary:
Convert each hex digit to its 4-bit binary equivalent:
Combine the groups:
Dropping leading zeros: .
Convert the octal number into decimal and binary.
Octal to Decimal:
Each octal digit has a positional weight that is a power of .
So .
Octal to Binary:
Convert each octal digit into its 3-bit binary equivalent:
Combine the groups:
Compare and contrast primary memory and secondary memory of a computer.
Memory in a computer is broadly divided into primary and secondary memory:
| Basis | Primary Memory | Secondary Memory |
|---|---|---|
| Nature | Internal, directly accessed by CPU | External storage, not directly accessed by CPU |
| Volatility | Mostly volatile (RAM loses data on power off) | Non-volatile (retains data permanently) |
| Speed | Very fast | Slower than primary memory |
| Cost | More expensive per unit | Cheaper per unit |
| Capacity | Limited (GBs) | Very large (GBs to TBs) |
| Examples | RAM, ROM, Cache | Hard disk, SSD, CD, USB drive |
Key point:
- Primary memory provides fast, temporary working storage for the CPU.
- Secondary memory provides large, permanent storage for data and programs not currently in use.
Explain how a computer processes data using the Input-Process-Output (IPO) cycle.
The IPO cycle describes the fundamental working of a computer in three stages:
-
Input Stage:
- Raw data and instructions are entered through input devices (keyboard, mouse, scanner).
- Data is converted into machine-readable (binary) form.
-
Processing Stage:
- The CPU processes the data using the ALU and Control Unit.
- Instructions are fetched from memory, decoded, and executed.
- Intermediate results are stored in memory.
-
Output Stage:
- Processed data (information) is converted back into human-readable form.
- It is displayed or produced through output devices (monitor, printer).
Storage supports the cycle by holding data and instructions before, during, and after processing.
Example: When calculating :
- Input: numbers 5 and 3 entered
- Process: ALU adds them
- Output: result 8 is displayed
Perform binary addition and subtraction: (a) (b) .
Binary Addition Rules: , , (write 0, carry 1), (write 1, carry 1).
(a) :
1011
-
1101
11000
Step by step (right to left):
- → write 0, carry 1
- → write 0, carry 1
- → write 0, carry 1
- → write 1, carry 1
- final carry 1
Result: . Check: . ✓
Binary Subtraction Rules: , , , with borrow.
(b) :
1101
-
0110
0111
Result: . Check: . ✓
Define the terms bit, byte, nibble, and word in the context of data representation.
These are the basic units used to measure and represent data in computers:
-
Bit (Binary Digit):
- The smallest unit of data, having a value of either or .
- All data in a computer is ultimately stored as bits.
-
Nibble:
- A group of 4 bits.
- One nibble can represent a single hexadecimal digit ( to ).
-
Byte:
- A group of 8 bits (2 nibbles).
- Standard unit for representing a single character; can store different values.
-
Word:
- A group of bits processed by the CPU as a single unit.
- Word size depends on the processor architecture (e.g., 16-bit, 32-bit, 64-bit).
Higher units: , , .
Convert the decimal fractional number into binary. Show the steps for both integer and fractional parts.
A fractional decimal number is converted in two parts: the integer part by repeated division, and the fractional part by repeated multiplication.
Integer part – divide by 2:
Reading bottom to top:
Fractional part – multiply by 2:
Reading top to bottom:
Combined result:
Distinguish between analog and digital computers.
Computers can be classified based on the type of data they process:
| Basis | Analog Computer | Digital Computer |
|---|---|---|
| Data type | Processes continuous physical quantities | Processes discrete data (0s and 1s) |
| Measurement | Measures quantities like voltage, temperature, pressure | Counts discrete values |
| Accuracy | Less accurate | Highly accurate |
| Speed | Generally fast for specific tasks | Fast and versatile |
| Output | Continuous (graphs, dials) | Discrete (numbers, text) |
| Examples | Thermometer, speedometer, voltmeter | Personal computers, laptops, calculators |
Note: A hybrid computer combines features of both analog and digital computers, often used in specialized applications like medical equipment (e.g., ICU monitors).
Explain ASCII and Unicode as coding schemes used for data representation.
Coding schemes are standards used to represent characters (letters, digits, symbols) in binary form.
ASCII (American Standard Code for Information Interchange):
- A 7-bit coding scheme (extended to 8 bits) used to represent characters.
- 7-bit ASCII can represent characters; extended ASCII represents characters.
- Includes uppercase/lowercase letters, digits, punctuation, and control characters.
- Example: The letter A = in decimal = .
- Limitation: Cannot represent characters of many world languages.
Unicode:
- A universal coding scheme designed to represent characters of all languages in the world.
- Uses up to 16 bits or more, allowing over 1 million unique characters.
- Backward compatible with ASCII (first 128 codes are the same).
- Common encodings: UTF-8, UTF-16, UTF-32.
- Widely used on the internet and modern software for multilingual support.
Key difference: ASCII is limited to English characters, while Unicode supports virtually all writing systems globally.
Convert the octal number to hexadecimal by using binary as an intermediate step.
There is no direct octal-to-hexadecimal method, so we use binary as an intermediate number system.
Step 1: Octal to Binary (each octal digit → 3 bits):
So
Step 2: Binary to Hexadecimal (group into 4 bits from the right):
(Added leading zeros to the leftmost group.)
Convert each group:
Therefore, .
Verification (via decimal): ; . ✓
Define a computer and explain its main characteristics in detail.
A computer is an electronic device that accepts data as input, processes it according to a set of stored instructions (program), and produces meaningful information as output while having the ability to store data for future use.
Main characteristics of a computer:
- Speed: Computers can perform millions to billions of operations per second. Operation times are measured in milliseconds (), microseconds (), nanoseconds (), and picoseconds ().
- Accuracy: Computers produce highly accurate results. Errors are usually due to incorrect input or faulty programs (GIGO - Garbage In, Garbage Out), not the machine.
- Diligence: A computer can perform repetitive tasks without fatigue, boredom, or loss of concentration.
- Versatility: A single computer can perform a wide variety of tasks such as playing music, editing documents, and performing calculations.
- Storage Capacity: Computers can store huge amounts of data and retrieve it whenever required.
- Automation: Once a program is loaded, a computer can work automatically without human intervention.
- Reliability: Computers give consistent results over long periods of operation.
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 →