Docsity

What is Computer ?Define, Study notes of Computer science

Toggle sidebar
bg1
Unit – I EIT
ST Joseph’s Degree & PG College 1
Unit – I
Introduction to Computers: Definition of computer, Characteristics and limitations of
Computers, Functional Block diagram of digital computers, Functions of Control Unit and ALU in
CPU, Concept of Primary memory (RAM & ROM) and secondary memory, Magnetic Hard disks,
Magnetic Tapes, Floppy disk, CD-ROM, Input / Output Devices.
Networks: Definition - Network types: LAN, MAN, WAN -Network Topologies: Mesh, Bus, Star,
Ring, Hybrid – Protocols.
Introduction to Computers:
Meaning of a Computer:
Computer is a machine that can solve problems by accepting data performing certain operations
and presenting the results of those operations under the direction of detailed step-by-step
instructions. Such a set of sequenced instructions, which cause a computer to perform particular
operations, is called a program. The term computer has been derived from the word “COMPUTE”
which means calculate.
Definition of a computer
Computer is an electronic device, used for performing calculations and controlling
operations that be either expressed in logical or numerical terms.
⮚ It stores and process data in binary form according to instructions given to it
in a variable program.
⮚ Computer need to be told exactly what to do and how to do to accomplish a
task
⮚ It is a combination of hardware and software
⮚ Software is the set of instructions given to the computer to perform a task
⮚ The physical parts that make up computer are called hardware, which are
made of circuits and transistors
The three main operations of computer are
1) Takes in data and instructions (input)
2) works with the data (processing)
3) puts out information (output)
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34
pf35
pf36
pf37
pf38
pf39
pf3a
pf3b
pf3c
pf3d
pf3e
pf3f
pf40
pf41
pf42
pf43
pf44
pf45
pf46
pf47
pf48
pf49
pf4a
pf4b
pf4c
pf4d
pf4e
pf4f
pf50
pf51
pf52
pf53
pf54
pf55
pf56
pf57
pf58
pf59
pf5a
pf5b
pf5c
pf5d
pf5e
pf5f
pf60
pf61
pf62
pf63
pf64

Partial preview of the text

Download What is Computer ?Define and more Study notes Computer science in PDF only on Docsity!

Unit – I Introduction to Computers : Definition of computer, Characteristics and limitations of Computers, Functional Block diagram of digital computers, Functions of Control Unit and ALU in CPU, Concept of Primary memory (RAM & ROM) and secondary memory, Magnetic Hard disks, Magnetic Tapes, Floppy disk, CD-ROM, Input / Output Devices. Networks: Definition - Network types: LAN, MAN, WAN - Network Topologies: Mesh, Bus, Star, Ring, Hybrid – Protocols. Introduction to Computers: Meaning of a Computer: Computer is a machine that can solve problems by accepting data performing certain operations and presenting the results of those operations under the direction of detailed step-by-step instructions. Such a set of sequenced instructions, which cause a computer to perform particular operations, is called a program. The term computer has been derived from the word “COMPUTE” which means calculate. Definition of a computer Computer is an electronic device, used for performing calculations and controlling operations that be either expressed in logical or numerical terms. ⮚ It stores and process data in binary form according to instructions given to it in a variable program. ⮚ Computer need to be told exactly what to do and how to do to accomplish a task ⮚ It is a combination of hardware and software ⮚ Software is the set of instructions given to the computer to perform a task ⮚ The physical parts that make up computer are called hardware, which are made of circuits and transistors The three main operations of computer are

  1. Takes in data and instructions (input)
  2. works with the data (processing)
  3. puts out information (output)

Characteristics of a Computer: The following are the main characteristics of a computer-

  1. Speed: Computer is able to process the data and give the output in fractions of seconds such that required information is available to the user on time and hence enables him to take right decisions at the right time.
  2. Accuracy : Computer is error free. There is no scope for inaccuracy in the results given by the computer. Incorrect calculations, errors, mistake do not take place in a computer system. If there errors they are due to the errors in the instructions given by the programmer, inaccurate data, inconsistent data or defective programs as well as defective system designs. Since the computer is capable of doing only what it is instructed to do, fault instructions for data processing may lead to faulty results this is known as GIGO (Garbage in Garbage Out)
  3. Reliable: Today, computer is extensively used because of their reliability. The output generated by the computer is very reliable to the extent that the input is reliable.
  4. Storage capacity: Another important characteristic of a computer is that it has brain of its own with brilliant memory. It can accept and store any information for a long time. It stores large amount of data and can recall information instantly. The main memory of the computer is relatively small and holds certain amount of information. Therefore, the data is stored in secondary memory 5. Versatile: The computer performs three basic operations. It accepts information from the user; secondly it performs the basic arithmetic operations and logical operations and finally generates the desired output in the desired form.
  5. Automatic (Programmable): Computer is a device, which is more than a calculator. Once instructions are given to the system it works automatically without any human intervention until the completion of program until it meets logical instruction to terminate the job.
  6. Diligent: A computer is a device, which is indefatigable (untiring) and therefore does not feel tired nor gets distracted like a human being. All the instructions are performed at same speed and accuracy

output (after processing) on the other hardware devices such as monitor, LCDs, scanner, printers etc.

Software:

✔ The software of the computer includes operating system which executes all the programs and instructions given by the user. ✔ The computer software itself is categorized into two

1. System Software ⮚ It is collection of programs designed to operate, control, and extend the processing capabilities of the computer itself. System software are generally prepared by computer manufactures. These software products comprise of programs written in low-level languages which interact with the hardware at a very basic level. System software serves as the interface between hardware and the end users. ⮚ Includes the software execution by the computer itself such as Windows and DOS. 2. Application Software ⮚ Application software products are designed to satisfy a particular need of a particular environment. ⮚ Application software may consist of a single program, such as a Microsoft's notepad for writing and editing simple text. It may also consist of a collection of

  1. Arithmetic Logic Unit (ALU).
  2. Control Unit. Arithmetic and Logic Unit (ALU) ⮚ It is that part of CPU where actual data processing occurs. ⮚ All mathematical operations (+, - , *, /) and all comparisons (>, <, =) take place in this unit. ⮚ In addition to arithmetic functions, the ALU also performs logic functions. ⮚ A logic function is one where numbers or conditions are compared to each other. ⮚ Circuits in the ALU are generally used to compare two numbers by subtracting one from the other. ⮚ The sign (negative or positive) and the value of the difference tell the processor that the first number is equal to, less than, or greater than the second number. ⮚ Alphabetic data may also be compared according to an assigned order sequence. Control Unit ⮚ It is a component of CPU that control and coordinates the flow of data between different components of computer ⮚ It interprets instructions it receives from memory and directs the sequence of events necessary to execute the instruction. ⮚ Control Unit uses a system clock, which synchronizes (manage) all tasks by sending out electrical pulses. ⮚ Clock speed (the number of pulses or clocks per second) is measured in Megahertz (MHz) and is the main element in determining the speed of the processor. ⮚ Computer speed is also measured in the number of instructions completed per second, or Millions of instructions per second (MIPS).

MEMORY

Memory is the most essential element of a computing system because without it computer can’t perform simple tasks. Computer memory is a generic term for all of the different types of data storage technology that a computer may use, including RAM, ROM. There are two types of memory:

  1. Primary Memory
  2. Secondary Memory

1. PRIMARY MEMORY (MAIN MEMORY):

Primary memory holds only those data and instructions on which computer is currently working. It has limited capacity and data is lost when power is switched off. It is generally made up of semiconductor device. These memories are not as fast as registers. The data and instruction required to be processed reside in main memory. Primary storage or main memory stores three types of information for very brief periods of time: ✔ Data to be processed by the CPU. ✔ Instructions for the CPU as to how to process the data.

2. Read Only Memory (ROM): ROM stands for read-only memory, and the name stems from the fact that while data can be read from this type of computer memory, data cannot normally be written to it. It is a very fast type of computer memory which is usually installed close to the CPU on the motherboard. ROM is a type of non-volatile memory, which means that the data stored in ROM persists in the memory even when it receives no power – for example when the computer is turned off. In that sense it is similar to secondary memory, which is used for long term storage. The ROM usually contains "bootstrap code" which is the basic set of instructions a computer needs to carry out to become aware of the operating system stored in secondary memory, and to load parts of the operating system into primary memory so that it can start up and become ready to use. ROM is mainly of three types: I. Programmable read only memory (PROM) allows a chip to be programmed by the user for converting critical and lengthy operations into micro programs that are fused into a chip. The user buys a blank PROM and enters the desired contents using a PROM program. Inside the PROM chip there are small fuses which are burnt open during programming. It can be programmed only once and is not erasable. Once they are in a hardware form, they can be executed at a very high speed and can’t be altered.

II. Erasable PROM (EPROM ) can be erased and reprogrammed. The EPROM chip has a small window on top allowing it to be erased by exposing it to ultra-violet light for duration of up to 40 minutes. After reprogramming the window is covered to prevent new contents being erased III. Electrically Erasable PROM (EEPROM) is programmed and erased electrically. It can be erased and reprogrammed about ten thousand times. Both erasing and programming take about 4 to 10 ms (milli second). In EEPROM, any location can be selectively erased and programmed. EEPROMs can be erased one byte at a time, rather than erasing the entire chip. Hence, the process of re-programming is flexible but slow. Difference between RAM and ROM:

3. Cache Memory: Cache memory is typically integrated directly with the CPU chip or placed on a separate chip. Many processors also have built-in specialized storage elements that

⮚ Program Counter Register (PC): The program counter holds the location of the next instruction to be fetched from memory. ⮚ Accumulator Register : It is used as the default location to store any calculations performed by the arithmetic and logic unit.

2. SECONDARY MEMORY:

Secondary (Auxiliary) storage is the non-volatile memory that is stored externally to the computer. A secondary medium usually used for the storage of large amount of data for permanent or long-term storage of data or programs. While the secondary media can hold much more data than primary storage, access to the data is slower. The benefits of secondary storage are: Capacity, Reliability and Convenience Different secondary storage media can be ranked according to the following criteria: ⮚ Retrieval speed - The access time of a storage device is the time it takes to locate and retrieve the stored data. A fast access time is preferable for any storage media. ⮚ Storage capacity - A device’s storage capacity is the ability to store data. A large storage capacity is desired. ⮚ Cost per bit of capacity - Low cost is preferred. Secondary storage media with all sizes of computers can be broadly categorized into:

  1. Magnetic tape.
  2. Magnetic disk.
  3. Optical disk. 1. Magnetic tape: Magnetic tape is a one-half or one-fourth inch ribbon of Mylar (a plastic like material) coated with a thin layer of iron-oxide material. It is a medium that is often selected to store large files that are sequentially accessed and processed. Its data

density (the number of characters that can be stored in a given physical space) is high and its transfer rate (the speed with which data can be copied into processor storage) is fast. Advantages : ⮚ Low cost and ease of handling. ⮚ High data density Limitations of Magnetic Tape : ⮚ Lack of direct access to records. ⮚ Environmental problems-sensitivity to dust, humidity and temperature levels.

2. Magnetic disk: A magnetic disk is a Mylar or metallic platter on which electronic data are stored. Unlike magnetic tapes, data on magnetic disks can also be read randomly. The data are recorded as tiny invisible magnetic spots on its iron oxide coating. It consists of two or more metal platters mounted on central spindle like a stack. Each platter is covered with a magnetic coating, and the entire unit is encased in a sealed chamber. The motor spins the platter and sets the read/write head on the disk to read from or to write on to the disk. The top most layer of the top platter and bottom most layer of the bottom platter is not used to storing a data as they may contain some dust particles. These heads are fastened to an arm in a disk storage device so that they can be moved quickly and directly to any disk location to store or retrieve data. The surface of the magnetic disk is divided into number of invisible concentric circles called “tracks”. The tracks are further subdivided into “sectors”, “blocks” etc. each its own unique addresses to facilitate the location of data. Disk moves on a vertical rotating spindle. Data on magnetic disks can be read randomly. The access time for data stored on a magnetic disk is determined by two factors: 1. The seek time i.e. the time required for positioning read/write head over the proper track.

⮚ CD-ROMs are popularly used to distribute computer software, including games and multimedia applications, though any data can be stored. ⮚ The CD-ROM s are pre-recorded disks used for storing a large amount of data (or) information. Optical Card: The Optical card, or laser card, is the size of a credit card and has an optical laser-encoded strip that can store approximately 2 megabytes of data. These cards have many potential uses, most notably for storing credit records or medical histories. Optical Tape: Optical tape is similar in appearance to magnetic tape, but data are stored by optical laser techniques. Optical tapes, which are in cassette form, can store over 8 gigabytes each providing a total storage of about 1 terabyte (1, gigabytes). Like other optical methods of data storage, optical tape is read only.

Floppy Disk Drive (FDD):

⮚ A floppy disk is a magnetic storage medium for computer systems. The floppy disk is composed of a thin, flexible magnetic disk sealed in a square plastic

carrier. In order to read and write data from a floppy disk, a computer system must have a floppy disk drive (FDD). ⮚ A floppy disk is also referred to simply as a floppy. Since the early days of personal computing, floppy disks were widely used to distribute software, transfer files, and create back-up copies of data. When hard drives were still very expensive, floppy disks were also used to store the operating system of a computer. ⮚ Floppy disks store much less data than a CD-ROM disk or USB flash drive. A normal 3½ inch disk can store 1.44 megabytes of data. This is usually enough for simple text documents. ⮚ A number of different types of floppy disks have been developed. The first floppy disks were 8 inches (20 cm) across. In the late 1970s, floppy disks became smaller, with the arrival of 5.25-inch (13.3-cm) models, and the final floppy disks, which debuted in the 1980s, were 3.5 inches (9 cm) in diameter. ⮚ Data were arranged on the surface of a disk in concentric tracks. The disk was inserted in the computer’s floppy disk drive, an assembly of magnetic heads and a mechanical device for rotating the disk for reading or writing purposes. A small electromagnet, called a magnetic head, wrote a binary digit (1 or 0) onto the disk by magnetizing a tiny spot on the disk in different directions and read digits by detecting the magnetization direction of the spots.

INPUT AND OUTPUT DEVICES:

The CPU provides the means for the fast and efficient processing of data into usable information. For computer processing, data needs to be entered into the computer (input) and the result of processing needs to be communicated to the user (output). Any hardware item which is attached to the main unit of a computer that houses the CPU is referred to as a Peripheral Device.

INPUT DEVICES:

An input device is a peripheral device through which data are entered and transformed into machine-readable form. Let us have a look at various input devices available.

1. Keyboards Standard keyboard is the most common and familiar input device. A typical computer keyboard contains all letters, numbers, symbols of a regular typewriter, plus other keys. Every key on the keyboard underneath it consists of a tiny chip called as keyboard controller, when a key is pressed the controller places the code into the part of the memory called keyboard buffer. The buffer temporarily holds the data till it is processed. The signal the keyboard sends to the computer is called

as interrupt. The keyboard sends an interrupt request to the system software and the data is processed. S.No. Keys Description 1 Typing Keys These keys include the letter keys (A-Z) and digits keys (0-9) which generally give same layout as that of typewriters. 2 Numeric Keypad It is used to enter numeric data or cursor movement. Generally, it consists of a set of 17 keys that are laid out in the same configuration used by most adding machine and calculators. 3 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. 4 Control keys These keys provide 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). 5 Special Purpose Keys Keyboard also contains some special purpose keys such as Enter, Shift, Caps Lock, Num Lock, Space bar, Tab, and Print Screen.

2. Mouse A mouse is a pointing device. It usually contains one or three buttons: as the user rolls it on a flat surface, the mouse controls cursor movement on the screen. When the user presses one of the buttons, the mouse either marks a place on the screen or makes selections from data on the screen. It can be used for many applications ranging from games to designing products with graphics. It can be used as an