Académique Documents
Professionnel Documents
Culture Documents
UNIT-I
Basic concepts of IT, concepts of Data & Info, data processing, history of computers (generation, type of
languages), organization of computers, I/O devices, storage devices, system software, application software,
utility packages, numerical based on storage devices.
UNIT-II
Assembler : Elements of assembly language programming, a simple assembly scheme,
pass structure of assembler, design of two pass assemblers, a single pass assemblers.
Macros & Macro Processors : Macro definition & Call, Macro expansion Nested macro
calls, advanced macro facilities, design of macro processors.
UNIT-III
Compilers & Interpreters : aspects of compilation, memory allocation, compilation of
expression compilation of control structures, code optimization, interpreters.
Software Tools : Software tools for program development, editors, debug monitors,
programming environment, user interfaces.
UNIT-IV
Linker & Loaders : Relocation & linking concepts, design of linkers, self relocating
programs, a linker for MS DOS, linking for overlays, loaders : A two pass loader scheme,
Relocating loaders, subroutine linkage, Direct linkage loader, Binders overlays.
UNIT-V
Sequential file organisation, random file organisation, index structure, indexed file
organisation, alternate key indexed sequential files, multi key organisation, multi key
access, multi list file organisation, inverted files & their definitions, insertion, deletion,
operations with optimum utilization of memory, comparison of various type of file
organisation.
BOOKS
1. D.M. Dhamdhere “ System Programming & O.S.” 2nd Ed., Tata Mc. Graw Hill.
2. J. Donovan “System Programming” THM.
3. Rajaraman V. “Fundamental of Computers” (4nd edition.) Prentice Hall of India,
New Delhi 2004.
4. Sardes D.H. “Computer’s today” McGraw Hill 1988.
5. S.Jaiswal, “Fundamental of Computer & IT”, Wiley dreamtech India..
• Information: collection of facts organized in such a way that they have additional
value beyond the value of the facts themselves
– Value of Information is directly linked to how it helps decision makers
achieve their organization’s goals and can be measured
• in time required to make a decision
• Increased profits to the company
Computer data processing Computer data processing is any process that uses a computer
program to enter data and summarize, analyze or otherwise convert data into usable
information. The process may be automated and run on a computer. It involves recording,
analyzing, sorting, summarizing, calculating, disseminating and storing data. Because data
are most useful when well-presented and actually informative, data-processing systems are
often referred to as information systems. Nevertheless, the terms are roughly synonymous,
performing similar conversions; data-processing systems typically manipulate raw data
into information, and likewise information systems typically take raw data as input to
produce information as output.
Data processing may or may not be distinguished from data conversion, when the process
is merely to convert data to another format, and does not involve any data manipulation.
History of Computers –
History of computers starts about 200 year ago, after birth of abacus; it’s a wooden rack
folding two horizontal wires with beads, strung on them. All regular arithmetic problems
can be solved by them.
Charles Babbage-
In 1942, John P Eckert, John W Mauchly and their associates at the Moore school of
electronic engineering of university of Pennsylvania decided to build a high-Speed
electronic computer to do the job. This machine known as ENIAC (“Electronic Numerical
Integrator and calculator”)
Two discoveries “Magnetic core memory” and the transistor-circuit element” made
computer more reliable and capable. ”RAM” capacities increased from 8,000 to 64,000
commercially available machine by the 1960’s with access times of 2 to 3 Ms (Mili
Seconds)They were very expansive.
· Batch Processing System
By 1948 with inventions of the transistor revolutionized the field of electronics. Transistor
replaces the last cumbersome vacuum tubes in TV, Radios and computers. Storage
technique was improved with the use of magnetic disks. The machine language was
replaced by high –level language like FORTRAN.
In this generation computers used VLSI (Very Large Scale Integration) technology. The
VLSI devices have thousands or more components packed into an assembly. This
technology led to the development of microprocessors, where an entire CPU circuitry is
placed on a single chip. The circuits designed here, provided lower cost, less failures,
smaller size etc. All modern day computers like IBM, Apple Macintosh, SUN Spare
Stations etc, fall under this generation of computers.
Many aspects of fifth generation computer is still on idea or a theory, but not a reality.
Some of FGC ideas are already a reality, some computer are able to accept spoken a word
instruction (Voice record)
Lecture Number : 2
References : Information Technology Today - S. Jaiswal
Generation of Language-
The set of instructions written as strings of binary 1s and 0s, that can be understood by the
computer without using a translation program , is called a machine code or machine language
program.
COMPUTER ORGANISATION
1. Input: This is the process of entering data and programs in to the computer system.
You should know that computer is an electronic machine like any other machine which
takes as inputs raw data and performs some processing giving out processed data.
Therefore, the input unit takes data from us to the computer in an organized manner for
processing.
2. Storage: The process of saving data and instructions permanently is known as storage.
Data has to be fed into the system before the actual processing starts. It is because the
processing speed of Central Processing Unit (CPU) is so fast that the data has to be
provided to CPU with the same speed. Therefore the data is first stored in the storage unit
for faster access and processing. This storage unit or the primary storage of the computer
system is designed to do the above functionality. It provides space for storing data and
instructions.
· All data and instructions are stored here before and after processing.
· Intermediate results of processing are also stored here.
3. Processing: The task of performing operations like arithmetic and logical operations is
called processing. The Central Processing Unit (CPU) takes data and instructions from the
storage unit and makes all sorts of calculations based on the instructions given and the
type of data provided. It is then sent back to the storage unit.
4. Output: This is the process of producing results from the data for getting useful
information. Similarly the output produced by the computer after processing must also be
kept somewhere inside the computer before being given to you in human readable form.
Again the output is also stored inside the computer for further processing.
5. Control: The manner how instructions are executed and the above operations are
performed. Controlling of all operations like input, processing and output are performed
by control unit. It takes care of step by step processing of all operations in side the
computer.
2. FUNCTIONAL UNITS
In order to carry out the operations mentioned in the previous section the computer
allocates the task between its various functional units. The computer system is divided
into three separate units for its operation. They are 1) arithmetic logical unit, 2) control
unit, and 3) central processing unit.
The actual processing of the data and instruction are performed by Arithmetic Logical
Unit. The major operations performed by the ALU are addition, subtraction,
multiplication, division, logic and comparison.
The next component of computer is the Control Unit, which acts like the supervisor seeing
that things are done in proper fashion. The control unit determines the sequence in which
computer programs and instructions are executed.
The ALU and the CU of a computer system are jointly known as the central processing
unit. You may call CPU as the brain of any computer system. It is just like brain that takes
all major decisions, makes all sorts of calculations and directs different parts of the
computer functions by activating and controlling the operations.
I/O Device-
Input Devices-
The input device are used to input data and instructions into a form that
computer can process, similarly to communicate the result of proceed data, out put device are
required.
Display screen
Cathode ray tube
Black Panel display
Storage Devices-
Storage Devices are used to store large or small amount of data
based on the capacity of storing devices.
Before storage devices we need to understand memory.
Memory-
Some types of semi conductor memory are
ü Cache memory
ü Flash memory
ü Bubble Memory
ü Read only Memory
ü Random Access memory
Storage Devices
To evaluate various storage devices, the following factors are
considered important.
a) Storage Capacity
b) Access Speed
c) Access method
d) Rate of Transfer
e) Size And Portability
f) Cost
Organization of computer-
Each Computer installation consists of a series of devices that
operate together as an integrated unit or computer system.
Element of CPU
a) Primary Storage b) Control Unit ) Arithmetic and logic unit
Software is a set of instruction to perform a specific or set of function also is a set of data.
Software is often divided into two categories
1. System Software-
System software consist of low level program that interact with the
computer at a very basic level.
2. Application software-
Application software can not run without a OS and system utilities.
Software
1- Free Ware
2- Share ware
System Software-
System software consist of low level program that interact with the computer at a very
basic level.
BIOS-Firmware-
One of the fundamental techniques in the PC design is the BIOS is a group small
program furnished by the PC manufacturing also called firmware.
BIOS or derived program –
Application Software -
Application software can not run without a OS and system utilities.
Ø Word Processing
Ø Desktop Publishing
Ø Accounting Software
This include specialize or customized applications design for very specific purpose.
Utility Package-
Most utilities are part of system program although they are also an
entity themselves. They help in designing application software-
-Operating System-
OS include many utility packages like format disk, disk
fragmentation, GUI, Sound, Etc.
-File Systems-
File System is a storage media, when a disk a formatted in a drive it
becomes.
§ Format or Formatting
§ FAT (File Allocation Table)
§ Sectors
§ Clusters
§ File Fragmentation
§ De fragmentation
Lecture Number : 4
References : System Programming & Operating System - D.M. Dhamdhere
Assembly
Language
Program
Statement Format-
[Label] <op code> <operand space> [<operand space>]
In this Language each statements has two operands the 1st operands is always a register,
which can be any one of AREG, BREG, CREG, and DREG. The second operand refers to
a memory words using a symbolic name and an optional displacement.
Ø EQU
Ø LTROG
Macro:-
Macro expansion:
Macro Call:
· Keyword parameter
· Default parameter specification
·
Nested macro calls:
A model a statement is a macro may contain a call to another macro such calls is
called nested macro calls.
Lecture Number : 7
References : System Programming & Operating System - D.M. Dhamdhere
Design overview:
We begin the design by listing all tracks involved in macro
expansion.
Lecture Number : 8
References : System Programming & Operating System - D.M
Dhamdhere
A compilers will accept complete set of program code as input and then
converts it to machine code.
Aspects of Compilation :-
A compiler bridges the semantic gap between a programming language domain and an
execution domain. Two aspect of compilation are :
Some PL features which contribute to the semantic gap between a PL domain and an
execution domain. These are :
i. Data types
ii. Data Structures
iii. Scope rules
iv. Control structure.
Data Stuctures :- A PL permits the declaration and use of data structures like arrays,
stacks , records, lists etc.
Scope Rules :- Scope rules determine the accessibility of variables declared blocks of a
program. The scope of a program entity (e.g., a data item) is that part of a program here
the entity is accessible.
In dynamic memory allocation , memory bindings are established and destroyed during
the execution of a program.
Dynamic memory allocation has two flavours :-
1. Automatic Allocation
2. Program Controlled Allocation
The entity generating the data or consuming the results may be a program or a user. Fig.
below shows a schematic of a software tool.
Step 3 require use of language processors. All other steps involve transformations of
programs or data .
merely specifies what functions a program should perform rather than how the functions
should be implemented. Coding effort is saved since the program is generated rather than
coded by hand.
A programming environment supports coding by incorporating awareness of the
programming language syntax and semantics in the language editor.
These tools are text editors or more sophisticated programs with text editors as front ends.
The editors functions in two modes :
(a) Command Mode : In the command mode, it accepts user commands specifying the
editing function to be performed.
(b) Data mode : in the data mode, the user keys in the text to be added to the file.
Failure to recognize the current mode of the editor can lead to mix up of commands and
data. This can be avoided in two ways .In one approach, a quick exit is provided from the
data mode .Another approach is to use the screen mode (also called what u see what u get
mode), wherein the editor is in the data mode most of the time . The user is provided
special keys to move the cursor on the screen. A stroke of any other key is taken to imply
input of the corresponding character at the current cursor position.
Lecture Number : 10
References : System Programming & Operating System - D.M
Dhamdhere
Important steps in program testing and debugging are selection of test data for the
program , analysis of test results to detect errors (if any), and debugging, i.e localization
and removal of errors. Software tools t assist the programmer in these steps come in the
following forms :
1. Test data generators :Test data generators help the user in selecting test data for
his program . Their use helps in ensuring that a program is thoroughly tested.
2. Automated test driver : Automated test drivers help in regression testing,
wherein a program’s correctness is verified by subjecting it to a standard set of
tests after every modification. Regression testing is performed as follows :
Many sets of test data are prepared for a program . These are given as inputs to the
test driver. The driver selects one set of test data at a time and organizes execution
of the program on the data.
3. Debug monitors help in obtaining information for localization of errors.
4. Source code control systems help to keep track of modifications in the source
code.
An optimizing compiler can improve efficiency of the code but it cannot improve
efficiency of the algorithm. Only a program designer can improve efficiency of an
algorithm by rewriting it. However this is a time consuming process hence some help
should be provided to improve its cost effectiveness.
A profile monitor is a software tool that collects information regretting the execution
behavior of a program, e.g. the amount of execution time consumed by its modules and
presents it in the form of execution.
Program Documentation :
The schematic of software tools using the techniques of interpretation and program
generation. Use of interpreters in software tools is motivated by the same reasons that
motivate the use of interpreters in program development, absence of a translation
phase in processing a program. Since most requirements met by software tools are
adhoc, its is useful to eliminate the translation phase. However, interpreter based tools
suffer from poor efficiency and poor portability. Since an interpreter based tool is only
as portable as the interpreter it uses. A generated program is more efficient and can be
made portable.
Lecture Number : 11
References : System Programming & Operating System - D.M
Dhamdhere
Editors
Line Editors :
The scope of edit operations in a line editors is limited to a line of text. The line is
designed positionally, e.g, by specifying its serial number in the text, or contextually, e.g
by specifying a context which uniquely identifies it. The primary advantage of line editors
is their simplicity. Line editors maintain multiple representations of text. One
representation shows the text as a sequence of lines. The editor maintains an internal form
which is used to perform the edit operations. This form contains end of line characters and
other edit characters.
Stream Editors :
A stream editor views the entire text as a stream of characters. This permits edit
operations to cross line boundaries. Stream editors typically support character, line and
context oriented commands based on the current editing context indicated by the position
of a text pointer. The pointer can be manipulated using positioning or search commands.
Stream editors also typically maintain multiple representations of text.
Screen Editors :
A line or stream editor does not display the text in the manner it would appear if
printed. A screen editor uses the what u see what u get principle in editor design. The
editor displays a successful text at a time. The user can move the cursor over the screen,
position it at the point where user desires to perform some editing and proceed with the
editing directly. This is very useful while formatting the next to produce printed
documents.
Word Processors :
words. Many word processors support spell check option. With the advent of personal
computers, word processors have seen widespread use amongst authors, office personnel
and computer professionals. Wordstar is popular editor of this class.
Tutorial -1
Q.No.-1.What are the essential components of computer? Draw the block diagram of
computer?
Q.No.-2. Describe generation of computer technology and differentiate between low
level language and High level language?
Q.No.-3. What is primary and secondary memory? Also explain the cache memory
,magnetic disk and flash memory?
Tutorial -2
Q.No-1. Explain the various types of Input and Output devices and explain the
working of each of them?
Q.No-2. Write down a brief note on application software, system software, utility
software?
Q.No-3. Explain the merits and demerits of followings:
1. machine language
2. assembly language
3. high level language
Tutorial -3
Q.No.-1 What are the functions of an assembler? What is the basic step followed in
the design of an assembler?
Q.No.-2 Write down the algorithm of PASS-1 Assembler?
Q.No.-3What is assembly language and also explain its statement?
Tutorial- 4
Q.No.-3- what is two pass assembler? Explain the design of two pass assembler?
Q.No.-4- what are the macro instruction? What are basic task that any macro
processor must perform?
Q.No-3 explain in detail a two pass algorithm for implementing a macro?
IT QUIZ
MCA Department
2) A network of computers and other devices that is confined to a relatively small space.
a) Global network
b) Local area network
c) Peer-to-Peer network
d) Metropolitan network
4. What is SMTP?
(A)Simple Mailer transport protocol
(B) Simple mail transport protocol
(C) Single Mail transport protocol
14. A system program which helps the execution of user programmer is-
(A) System software
(B) Application Program
(C) Batch Operating system
(D) Utilities
17. Which of the following was the first Intel processor introduced?
1. 3080
2. 4004
3. 8080
4. 8086
18. Which of the following operating systems is produced by IBM?
(A) OS-2
(B) Windows
(C) DOS
4) UNIX
21) Which of the below does not have the ability to allow a user to communicate with
another computer?
1. Network Card
2. Serial Port
3. VGA Port
4. Modem.
25) The device that converts bits and bytes into signals that can travel over telephone lines and
vice versa is called?
(A) Sensor
(B) Modem
(C) Transistor
(D) None of these
26) This is a Web site that allows registered users to upload files and save favorite bookmarks so
that they can be accessed at any time from any computer on the Internet.
A) Bookmark portal
B) round tripping
C) jump page
D) blog
27) Which of the following is not a antivirus company?
1. AVG
2. Panda
3. Symantec
4. Xargon
28) Which one is the complete OOP’S language?
1) java
2) .net
3) C++
4) smalltalk or sumlea 67
29) Why was the first Intel Celeron processor not as popular as expected?
1. Had errors
2. No level 2 cache
3. Caused errors
4. Caused Excess heat
1. What is ACID?
2. What is Redundancy?
Q:-1 What is the function of an assembler? What is the basic step followed in the design
of an assembler?
Q:-2 Write the elements of assembly language programming?
Q:-3 What is one pass assembler? Explain the design of one pass assembler?
Q:-4 Can you write an assembly language program Without using USING instructions?
How? What are the limitations?
Q:-5 What is the significance of symbol table in designing an Assembler?
Q:-6 What do you mean by table processing?
Q:- 7What is two pass assembler? Explain the design of two pass assembler?
Q:-8 What are the macro instruction? What are basic task that any macro processor must
perform?
Q:-9 Write short note on conditional macro expansion?
Q:-10 Write short note on macro call within macro?
Q:-11 Explain in detail a two pass algorithm for implementing a macro?
Q:-12 Describe how the macro processor can be implem4ented of macro calls With in
macros?
Q:-13 Describe how the macro processor can be implemented With ib pass one of the
assembler? Discuss the advantage and disadvantage?
Q:-14 Differentiate between USING and BALR? What happens to each of these at
assembly time and at execution time?
Q:-15 What is the difference between CR and CLR instructions?
Question Bank of Information technology MCA-101
UNIT-3
Compiler And Interpreter