Computer Application 2
Computer Application 2
]
2.1 Major blocks of a digital computer
2.2 Input devices like keyboard, mouse, joystick, scanner, light pen etc.
2.3 Output devices like monitor, printer, plotter, sound card, speaker etc.
2.4 Central Processing Unit
2.5 Memory Unit: RAM, ROM, PROM, EPROM
2.6 Auxiliary storage devices:
• Magnetic storage like floppy disk, hard disk, magnetic tape etc.
• Optical storage like CD-ROM, DVD
• Pen drive, flash memory card etc.
A computer is made up of various parts that work together to ensure smooth functioning and
processing of data.
1. Input Unit
The input unit allows a computer to respond to commands. We provide these commands using input
devices like keyboards or mice. For example, when we type text using a keyboard, the computer
processes the data and displays the result on the screen.
The data we input can be numbers, letters, images, etc. Input devices capture this information, the
processing unit converts it into a form the computer can understand, and finally, the output is
presented in a way humans can understand.
The CPU is the heart of the computer and is often called the "brain" of the device. It consists of three
key parts:
Memory Unit
Control Unit
Memory Unit: When data is entered, it is temporarily stored in the memory unit of the CPU.
This allows the system to pass the data to other parts for processing, and later, the result is
stored here before being delivered to the user.
Control Unit: This unit manages the computer’s operations. It takes data from the input unit,
processes it, and sends it to the output unit. It also controls the flow of data and instructions
within the system.
Arithmetic and Logic Unit (ALU): This part handles all mathematical and logical operations,
such as addition, subtraction, and data comparisons. It performs calculations and decision-
making processes needed for the computer to function.
3. Output Unit
The output unit provides the results of the computer's processing to the user. Output devices, like
monitors and printers, display or print the results. For example, when using an ATM, after entering
your details (input), the machine dispenses cash (output), making the cash dispenser the output
device.
I. Register Memory.
II. Cache memory.
III. Main memory/ Primary memory.
IV. Auxiliary memory/ Secondary memory.
In hierarchical structure of memory the speed of access increases up the pyramid and the size
increases down the pyramid.
I. Register memory:
Register memories are high speed registers in the CPU, work as a memory for temporary
storage of instruction and data.
CPU uses registers for the processing of data, the number of registers in a CPU and the size
of each register affect the power and speed of a CPU.
The more the number of registers and bigger the size of each register, the better itis.
Cache memory is a fast memory which is placed in between the CPU and the main memory.
Cache memory consists of binary cells and the size of this memory is less than main memory.
When the CPU needs an instruction or data during processing, it first looks in the cache
memory.
If the information is present in the cache, it is called a cache hit, and the data or instruction
is retrieved from the cache.
If the information is not present in cache memory, then it is called a cache miss and the
information is then retrieved from main memory.
The access time of this memory to read data from the first location or the last location is
same.
Both read and write operation is possible in this memory.
This is volatile in nature.
RAM is of two types:-
a) SRAM(Static RAM)
SRAM (static RAM) is random access memory (RAM) that retains data bits in its memory
as long as power is being supplied.
SRAM does not have to be periodically refreshed.
Static RAM provides faster access to data and is more expensive than DRAM.
SRAM is used for a computer's cache memory.
Dynamic random access memory (DRAM) is the most common kind of random access
memory for personal computers and workstations.
DRAM stores each bit in a storage cell consisting of a capacitor and a transistor.
Capacitors tend to lose their charge rather quickly; thus, it need for refreshed.
• It is non-volatile in nature.
a) PROM (PROGRAMMABLE READ ONLY MEMORY):- In PROM, user can programme the ROM
only once.
b) EPROM (ERASEABLE PROGRAMMABLE READ ONLY MEMORY:- In this content can be erased
and programmed. Erasing is possible by use of ultra-violet rays.
Magnetic Tape:
Magnetic Disk:
Optical Disk:
It consists of a circular disk, which is coated with a thin metal or some other material that is
highly reflective.
Laser beam technology is used for recording/reading of data on the disk. Because it can
store extremely large amounts of data in a limited space.
It has one long spiral track, which starts at the outer edge and spirals inward to the centre
Track is divided into equal size sectors.
Ex-CD-ROM,DVD etc.
Following are few of the important input devices which are used in Computer Systems:
Keyboard
Mouse
Joy Stick
Light pen
Track Ball
Scanner
Magnetic Ink Card Reader(MICR)
Optical Character Reader(OCR)
Bar Code Reader
Optical Mark Reader
Keyboard:
Most common and very popular input device is keyboard. It helps in inputting the data to
the computer.
The layout of the keyboard is like that of traditional typewriter, although there are some
additional keys provided for performing some additional functions.
⎯ Typing Keys: These keys include the letter keys (A-Z) and digits keys (0-9).
⎯ Numeric Keypad: It is used to enter numeric data or cursor movement. Generally, it consists of a
set of 17 keys.
⎯ Function Keys: The twelve functions keys are present on the keyboard. These are arranged in a row
along the top of the keyboard. Each function key has unique meaning and is used for some specific
purpose.
⎯ Control keys: These keys provides cursor and screen control. It includes four directional arrow key.
Control keys also include Home, End, Insert, Delete, Page Up, Page Down, Control(Ctrl),
Alternate(Alt), Escape(Esc).
⎯ Special Purpose Keys: Keyboard also contains some special purpose keys such as Enter, Shift, Caps
Lock, Num Lock, Space bar, Tab, and Print Screen.
Mouse:
⎯ Easy to use
Joystick:
Joystick is also a pointing device which is used to move cursor position on a monitor screen.
It is a stick having a spherical ball at its both lower and upper ends. The lower spherical ball
moves in a socket. The joystick can be moved in all four directions.
The function of joystick is similar to that of a mouse. It is mainly used in Computer Aided
Designing (CAD) and playing computer games.
Light Pen:
MICR input device is generally used in banks because of a large number of cheques to be
processed every day.
The bank's code number and cheque number are printed on the cheques with a special type
of ink that contains particles of magnetic material that are machine readable.
This reading process is called Magnetic Ink Character Recognition (MICR).
The main advantages of MICR are that it is fast and less error prone.
Bar Code Reader is a device used for reading bar coded data (data in form of light and dark
lines).
Bar coded data is generally used in labelling goods, numbering the books etc.
It may be a hand held scanner or may be embedded in a stationary scanner.
Bar Code Reader scans a bar code image, converts it into an alphanumeric value which is
then fed to the computer to which bar code reader is connected.
Following are few of the important output devices which are used in Computer Systems:
Monitors
Graphic Plotter
Printer
Monitors:
Monitor commonly called as Visual Display Unit (VDU) is the main output device of a
computer.
It forms images from tiny dots, called pixels, which are arranged in a rectangular form.
The sharpness of the image depends upon the no. of the pixels.
There are two kinds of viewing screen used for monitors.
⎯ In the CRT display is made up of small picture elements called pixels for short.
⎯ The smaller the pixels, the better the image clarity, or resolution.
⎯ Disadvantage of CRT:
▪ Large in Size
⎯ The flat-panel display refers to a class of video devices that have reduced volume, weight
and power requirement compare to the CRT.
⎯ Current uses for flat-panel displays include calculators, videogames, monitors, laptop
computer, graphics display.
▪ Emissive Displays
▪ Non-Emissive Displays
➢ Emissive Displays:
⎯ The emissive displays are devices that convert electrical energy into light.
⎯ Examples: plasma panel and LED (Light-Emitting Diodes).
➢ Non-Emissive Displays:
⎯ The Non-emissive displays use optical effects to convert sunlight or light from some
other source into graphics patterns.
Printer:
Printer is the most important output device, which is used to print information on paper.
⎯ Impact Printers
⎯ Non-Impact Printers
➢ Impact Printers:
⎯ The printers that print the characters by striking against the ribbon and onto the paper are called
impact printers.
▪ Character printers
▪ Line printers
➢ Character Printers:
▪ Daisy Wheel
⎯ In the market one of the most popular printer is Dot Matrix Printer because of their ease of
printing features and economical price.
⎯ Each character printed is in form of pattern of Dot's and head consists of a Matrix of Pins of size
(5*7, 7*9, 9*7 or 9*9) which comes out to form a character that is why it is called Dot Matrix
Printer.
⎯ Advantages:
▪ Inexpensive
▪ Widely Used
⎯ Disadvantages:
▪ Slow Speed
▪ Poor Quality
Daisy Wheel:
⎯ Head is lying on a wheel and Pins corresponding to characters are like petals of Daisy
(flower name) that is why it is called Daisy Wheel Printer.
⎯ These printers are generally used for word-processing in offices which require a few letters
to be send here and there with very nice quality representation.
⎯ Advantages:
▪ Better quality
⎯ Disadvantages:
▪ Noisy
➢ Line Printers:
▪ Drum Printer
▪ Chain Printer
Drum Printer:
⎯ This printer is like a drum in shape so it called drum printer. The surface of drum is divided into
number of tracks.
⎯ Total tracks are equal to size of paper, i.e. for a paper width of 132characters, drum will have
132 tracks.
⎯ A character set is embossed on track. The different characters sets are available in market 48
character set, 64 and 96 characters set.
⎯ One rotation of drum prints one line. Drum Printers are fast in speed and speed in between
300 to 2000 lines per minute.
⎯ Advantages:
⎯ Disadvantages:
▪ Very expensive
Chain Printer:
⎯ In this printer chain of character sets are used so it called Chain Printers.
⎯ Advantages:
⎯ Disadvantages:
▪ Noisy
➢ Non-Impact Printers:
⎯ The printers that print the characters without striking against the ribbon and onto the paper are
called Non-impact Printers.
⎯ These printers print a complete page at a time, also called as Page Printers.
▪ Laser Printers
▪ Inkjet Printers
▪ High quality.
Laser Printers:
⎯ They use laser lights to produces the dots needed to form the characters to be printed on a
page.
⎯ Advantages:
⎯ Disadvantage:
▪ Expensive.
Inkjet Printers:
⎯ Inkjet printers are non-impact character printers based on a relatively new technology.
⎯ They make less noise because no hammering is done and these have many styles of printing
modes available.
⎯ Colour printing is also possible. Some models of Inkjet printers can produce multiple copies of
printing also.
⎯ Advantages:
▪ More reliable
⎯ Disadvantages:
The onion shell model is a visual representation of the layered structure of an operating system (OS).
It's called the "onion model" because it resembles an onion, with multiple layers or "shells"
surrounding a central core.
1. Hardware Layer:
The innermost layer, representing the physical components of the computer system. Includes
the CPU, memory (RAM), storage devices (hard drives, SSDs), and input/output devices
(keyboard, mouse, monitor).
2. Kernel Layer:
The core of the OS, responsible for managing hardware resources and providing basic services
to other layers. Handles tasks like memory management, process scheduling, device driver
management, and system calls.
4. Applications Layer:
The outermost layer, consisting of the software applications that users interact with.
Includes programs like web browsers, word processors, games, and system utilities.
Booting
Booting is the process of starting up a computer or any digital device by loading the operating
system (OS) from a non-volatile memory (like a hard disk or SSD) into the main memory (RAM). It is
the first step that initializes hardware and prepares the system for user interaction.
2. Warm Booting: Restarting the system without turning off the power, often through a
software command.
Boot Loader
A boot loader (or boot manager) is a small program responsible for loading the operating system
into memory during the booting process. It is typically stored in the Master Boot Record (MBR) or a
dedicated partition of the storage device.
Examples:
GRUB (GNU GRUB): A popular boot loader for Linux and other operating systems.
Windows Boot Manager: The default boot loader for Microsoft Windows.
Boot Devices
Boot devices are storage devices or media from which the computer can load the operating system.
Common examples include:
1. Hard Disk Drives (HDDs) or Solid-State Drives (SSDs): Primary storage devices containing the
OS.
3. Optical Drives (CD/DVD): Used in older systems to boot from OS installation media.
4. Network Boot (PXE): Booting from a network server, common in enterprise environments.
Boot Sequence
The boot sequence is the order in which the computer checks devices for an operating system
during startup. This sequence can typically be configured in the system BIOS/UEFI settings.
2. BIOS/UEFI Execution:
o The firmware passes control to the boot loader stored on the primary boot device.
4. Load OS Kernel:
o The boot loader loads the operating system kernel into RAM.
o The OS initializes hardware drivers, system services, and prepares the user interface
for interaction.
1. OS provides a Platform for Application programs: Operating system provides platform, on top of
which, other programs, called application programs can run. These a application programs help the
users to perform a specific task easily. It acts as an interface between the computer and the user. It
is designed in such a manner that it operates, controls and executes various applications on the
computer.
2. OS manages Input-Output unit: Operating System also allows the computer to manage its own
resources such as memory, monitor, keyboard, printer etc. Management of these resources is
required for an effective utilization. The operating system controls the various system input- output
resources and allocates them to the users or programs as per their requirement.
3. OS provides consistent user interface: Operating System provides the user an easy-to- work user
interface, so the user doesn't have to learn a different Ul every time and can focus on the content
and be productive as quickly as possible. Operating System provides templates, UI components to
make the working of a computer, really easy for the user.
4. Multitasking: Operating System manages memory and allows multiple programs to run in their
own space and even communicate with each other through shared memory. Multitasking gives users
a good experience as they can perform several tasks on a computer at a time.
The uses of an operating system are virtually unlimited. However, following are some of the uses of
an operating system:
i. OS is used in mobile devices and smart phones in the form of a mobile operating system.
ii. OS is used in ATM machines and banks.
iii. OS is used in desktop and laptop computers as an interface to install other software.
iv. OS is used in servers that provide resources in a network.
v. OS is used in various embedded devices like digital camera, smart watch etc.
vi. Real time OS is used in Jet planes to control time critical operations.
A Real Time Operating System (RT OS) intends to provide real time applications that process data
without buffer delays. A Real Time Operating System is a time bound operating system which has
fixed time constraints. Processing has to be done within the defined time constraint or the system
will definitely fail. Examples of Real Time systems are Air Traffic Contra Systems, Command Control
Systems etc.
Real Time systems are classified in two parts ie. on factors inside the computer system and factors
outside the computer system. A missed deadline in Hard Real Time Systems is disastrous. However,
in case of Soft Real Time Systems it may lead to a significant loss.
Command Control systems and Air traffic control systems are best examples of Hard Real Time
systems. Online transaction systems, like booking a movie ticket or airline reservation systems are
best examples of Soft Real Time systems.
As the name indicates, Single User Single Task OS is a system in which only one program executed at
one time. It manages the computer in a way that one user can successfully perform one thing at a
time.
There is a problem with this type of OS that the program has to be arranged in a queue.
Most people use this Operating-System on their computers, laptop and desktops today. Best
examples of these types of Operating System are Apple's Mac OS platform and Microsoft's Windows.
This Operating System will allow a single user to operate several programs at the same time. For
example, a Windows user may be writing an e-mail while printing a word document while
downloading a file from Internet.
Multi User OS allows various different users on different desktop or computer to access a single
System. A user at the terminal or desktop, through a network takes access of the system and other
system attached machines such as printers.
The Operating-System takes care of all the requirements of the various users in a balanced manner.
Also, it ensures that each of the programs being used has a separate and sufficient resource so that
problem of one user doesn't affect the entire community of users.
UNIX:
UNIX is an operating system which was first developed in the 1960s, and has been under constant
development ever since. By operating system, it means the suite of programs which make the
computer work. It is a stable, multi-user, multi-tasking system for servers, desktops and laptops.
UNIX systems also have a graphical user interface (GUI) similar to Microsoft Windows which provides
an easy to use environment. However, knowledge of UNIX is required for operations which aren't
covered by a graphical program, or for when there is no windows interface available.
LINUX:
In 1991, Linus Torvalds a student at the University of Helsinki, Finland, thought to have a freely
available academic version of Unix started writing its own code. Later this project became the Linux
kernel. He wrote this program especially for his own PC as he wanted to use Unix 386 Intel computer
but couldn't afford it. He did it on MINIX using GNU C compiler. GNU C compiler is still the main
choice to compile Linux code but other compilers are also used like Intel C compiler.
He started it just for fun but ended up with such a large project. Firstly he wanted to name it as
'Freax' but later it became 'Linux'.
He published the Linux kernel under his own license and was restricted to use as commercially. Linux
uses most of its tools from GNU software and are under GNU copyright. In 1992, he released the
kernel under GNU General Public License.
Linux is essentially a clone of Unix. But, basic differences are shown below:
Linux Unix
The source code of Linux is freely available to its The source code of Unix is not freely available to general
users. public.
Linux is an open-source operating system that was Unix is a proprietary operating system that was
first released in 1991 by Linus Torvalds. originally developed by AT&T Bell Labs in the mid 1960s.
Features of MS-DOS
o MS-DOS is text-based, and users must type commands to interact with the system.
2. Lightweight:
o Requires minimal hardware resources, making it suitable for older and low-powered
systems.
3. Single-Tasking:
o MS-DOS can only execute one task or program at a time.
o Uses FAT12 and FAT16 file systems, which are simple but limited in storage capacity.
o Programs in MS-DOS can interact directly with hardware, allowing low-level control.
o Includes commands like DIR, COPY, DEL, CD, and MKDIR for managing files and
directories.
8. Bootstrapping:
9. Custom Configuration:
o Basic device drivers for peripherals such as keyboards, monitors, and printers.
MS-DOS Files:
A file is a collection of related information. Or technically a file ia a finite length sequence of bytes.
Files are stored on storage devices like Hard Disk Drive, Floppy Disk, CD-ROM, etc. Different types of
file in MS-DOS are:
i. Executable Files
ii. Non-Executable Files(Data Files)
i. Executable Files: These are the files which can run or execute themselves. These files contain the
program in binary form which can be readily run within an OS. The extension of executable files
are .exe, .com, .bat, etc.
ii. Non Executable Files(Data Files): These files are used to store user's or system's data. They
cannot execute themselves. Data files can be opened by respective applications.
1. IO.SYS:
2. MSDOS.SYS:
This file contains the core operating system code or the kernel.
It manages essential system functions, such as file handling, memory management, and
process control.
Works with IO.SYS to initialize the system and load necessary configurations.
Importance: MSDOS.SYS is the backbone of MS-DOS, as it handles the essential operations of
the OS.
3. COMMAND.COM:
4. CONFIG.SYS:
5. AUTOEXEC.BAT:
1. Internal Commands
Internal commands are built into the MS-DOS command interpreter (COMMAND.COM) and do not
require external files to execute. They are always available in memory as long as the system is
running.
1. DIR:
Displays the list of files and directories in the current directory.
2. COPY:
Copies one or more files to another location.
3. DEL:
Deletes one or more files.
4. TYPE:
Displays the contents of a text file.
5. CD:
Changes the current directory.
o Example: CD \Documents
6. MD/MKDIR:
Creates a new directory.
o Example: MD newfolder
7. RD/RMDIR:
Removes an empty directory.
o Example: RD oldfolder
8. CLS:
Clears the screen.
o Example: CLS
9. REN/RENAME:
Renames a file or directory.
o Example: REN oldfile.txt newfile.txt
10. EXIT:
Exits from the command prompt or a batch file.
o Example: EXIT
2. External Commands
External commands are not built into the command interpreter. They are separate executable files
(e.g., .COM, .EXE, or .BAT) that reside on the disk. These commands are loaded into memory and
executed when required.
1. FORMAT:
Formats a disk for use.
o Example: FORMAT A:
2. CHKDSK:
Checks the disk for errors and displays a status report.
o Example: CHKDSK C:
3. DISKCOPY:
Copies the entire contents of one floppy disk to another.
o Example: DISKCOPY A: B:
4. XCOPY:
Copies directories, subdirectories, and files.
5. SYS:
Transfers system files to a disk to make it bootable.
o Example: SYS A:
6. LABEL:
Creates or changes the volume label of a disk.
o Example: LABEL C:
7. ATTRIB:
Displays or changes file attributes (e.g., read-only, hidden).
8. TREE:
Displays a graphical representation of the directory structure.
10. DEFRAG:
Defragments a disk to optimize file storage.
o Example: DEFRAG C:
Windows OS is a series of operating systems developed by Microsoft. It is one of the most widely
used operating systems in the world and is known for its graphical user interface (GUI), user-friendly
design, and compatibility with a wide range of hardware and software. The first version, Windows
1.0, was released in 1985, and since then, it has evolved through multiple versions to support
modern computing needs.
Features of Windows OS
o Windows offers a user-friendly graphical interface with icons, menus, windows, and
a desktop environment.
2. Multi-Tasking:
o Windows allows multiple applications to run simultaneously. For instance, users can
browse the web, edit documents, and play music at the same time.
o Uses file systems like NTFS and FAT32 to support large storage capacities, file
permissions, compression, and encryption.
4. Plug-and-Play:
o Automatically detects and configures hardware devices, such as USB drives, printers,
and cameras.
o Built-in networking features for file sharing, remote access, and internet
connectivity.
6. Security Features:
o Includes tools like Windows Defender, firewall, and BitLocker encryption to protect
against malware and unauthorized access.
o Windows provides integrated multimedia capabilities for playing videos, music, and
editing images.
o Built-in apps like Windows Media Player, Groove Music, and Photos.
8. Customization:
o Users can personalize their desktop, themes, Start menu, and taskbar.
o Compatible with a wide range of modern software and hardware, including gaming
systems and productivity tools.
1. Early Versions
Windows 3.x (1990-1992): Introduced better graphics, file management, and multitasking
capabilities.
2. Windows 95/98/ME
3. Windows NT/2000
4. Windows XP (2001)
Unified the home and professional versions, providing a robust and user-friendly interface.
One of the most popular versions due to its stability and compatibility.
Introduced the Aero interface and enhanced security features but was criticized for its high
system requirements.
6. Windows 7 (2009)
Introduced a touch-friendly interface and the Metro UI, but received mixed reviews due to
the removal of the Start menu.
8. Windows 10 (2015)
Reintroduced the Start menu with a combination of traditional and modern features.
Regular updates introduced new features like Cortana, Microsoft Edge, and Virtual Desktops.
9. Windows 11 (2021)
Redesigned interface with rounded corners, centered taskbar, and enhanced productivity
features.