Your SlideShare is downloading. ×
Lession 6
Lession 6
Lession 6
Lession 6
Lession 6
Lession 6
Lession 6
Lession 6
Lession 6
Lession 6
Lession 6
Lession 6
Lession 6
Lession 6
Lession 6
Lession 6
Lession 6
Lession 6
Lession 6
Lession 6
Lession 6
Lession 6
Lession 6
Lession 6
Lession 6
Lession 6
Lession 6
Lession 6
Lession 6
Lession 6
Lession 6
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Lession 6

3,216

Published on

0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
3,216
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
0
Comments
0
Likes
1
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. Information Technology for Managers Session 6 By Prof. Arun Mishra
  • 2. Learning Objectives
    • In this session you will learn:
    • Machine Language
    • Assembly Language
    • High-level Language
    • Object-oriented Language
    • Compilers
    • Interpreters
    • Subroutines
  • 3. Computer Language
    • A language that is acceptable to a computer system is called computer language or programming language.
    • A computer Language is used by a programmer to instruct a computer what he wants to do
  • 4. Types of Computer Language
    • Machine Level Language
    • Assembly Language
    • High Level Language
    • Fourth level Language
    • Object oriented Language.
  • 5. Machine Level Language
    • Machine language of a computer is written as string of binary ‘1’ & ‘o’. Example- 10001,101010
    • A computer can be programmed to understand many different computer languages, but there is only one language understood by computer without using a translation program.
    • This Language is called Machine Level Language or language of computer.
  • 6. Machine language instruction format
    • It has two parts:
    • OPCODE (operation code)- tells the computer what function to perform.
    • OPERAND- tells computer where to find or store the data or instruction which are to be manipulated.
  • 7. Operations included in instruction format of machine language
    • Arithmetic operations
    • Logical operations
    • Branch operations for transfer of control to the address given in operand field.
    • Data movement operations for moving data between memory location & resistors.
    • Data movement operations for moving data from 1 computer to another. Or 1 input device to another output device.
  • 8. Limitation of Machine level language
    • Machine dependent.
    • Difficult to program.
    • Error prone- tough to remember opcodes.
    • Difficult to modify.
  • 9. Assembly Language
    • A Language which allows instruction and storage location to be represented by letters and symbols, instead of numbers is called Assembly Language.
    • A program written in An assembly language is called an assembly language program.
  • 10. Merits of assembly language over machine language
    • It uses alpha numeric mnemonic codes instead of numeric codes for instructions. e.g.-We use ADD instead of ‘1110’ for the instruction to Add.
    • It allows Storage Location to be represented in the form of Alphanumeric address instead of numeric address. e.g.- memory location 1000,1001,1002 may be represented as FIRST, SCND, ANSR.
  • 11. Merits of assembly language over machine language
    • It provides additional instructions, called pseudo instructions in instruction set.
    • e.g.- pseudo instruction tell things like:-
    • START program AT 0000
    • START data AT 1000
    • SET ASIDE an address for FRST
    • SET ASIDE an address for SCND
  • 12. Assembler
    • An assembler is a system software which translates an assembly language into its equivalent machine language.
    • A computer can directly execute only machine language program, which use numbers for representing instructions and storage locations.
    • So assembly language program must be converted into its equivalent machine language program.
    • This translation is done with the help of Translator program known as ASSEMBLER.
  • 13. Advantages of Assembly Language
    • Easier to understand and use.
    • Easier to modify.
    • Easy to locate and correct errors.
  • 14. Disadvantages of assembly language
    • Machine Dependent
    • Knowledge of hardware is required.
    • Machine level coding- all instruction are still written at machine code level.
    • Writing machine code is still time consuming.
  • 15. Example of Assembly language
    • Microprocessor language.
  • 16. High Level Language
    • High level language were designed to overcome the limitations of low level languages (Machine language & Assembly language).
    • High level enabled the use of computers to solve problems even by non experts.
  • 17. Characteristic of High Level language
    • It is machine independent.
    • It do not require the programmers to know anything about the internal structure of computer on which program will be executed.
    • It do not deal with the machine Level coding.
    • They deal with the high level coding enabling the programmer to write instruction using ENGLISH words and familiar symbol & expression.
  • 18. Compiler
    • High level language must be converted into its equivalent machine language program, before it is executed.
    • This translation is Done by translator program known as COMPILER.
    • Compiler is program which translates High level language into its equivalent machine language program.
  • 19. Compiler
    • A compiler can translate only those source programs which have been written in the language for which the compiler is meant. E.g.- FORTRAN compiler is only capable of translating source program written in FORTRAN.
    • So each computer requires separate compiler for each high level language it supports.
  • 20. Interpreter
    • It is also used to translate High Level language to Machine Level Language.
    • But it takes one statement at a timed, translates its and immediately executes the resulting machine language instruction.
    • It translate 1 instruction at a time.
  • 21. Interpreter
  • 22. Advantage of HIGH level Language
    • Machine Independent
    • Easier to learn & Use.
    • Very less errors.
    • Low program preparation cost.
    • Saves time.
    • Better documentation.
    • Easy to maintain.
  • 23. Disadvantages of High level Language
    • Low efficiency- as it first convert into machine language then executed.
  • 24. Example of High level Language
    • Fortran
    • Cobol
    • Pascal
    • C
  • 25. Fourth generation language
    • It is also known as non-procedural language.
    • These languages consists of a variety of programming languages that enable users to specify the result they want, while the computer determines the sequence of instruction that will accomplish those result.
    • Fourth generation language simplify and accelerates software development as well as reduce programming errors.
  • 26. Example of fourth generation language
    • Dbase, FoxPro, Oracle, Ms-Access
  • 27. Object oriented Language
    • An object in object oriented programming language consist of data and the actions that can be performed on the data.
    • OOP language are distinguished from other language as they combine data and procedures into objects, whereas the other programming language separates data from the procedures or actions that are to be performed on them.
    • Examples: JAVA, C++.
  • 28. Characteristic of good programming language
    • Simplicity - Must be simple & easy to learn.
    • Naturalness -should be natural for the application area for which it is designed.
    • Abstraction -Means ability to define & then use complicated structure or operations in ways that allow many of the details to be ignored.
  • 29. Characteristic of good programming language
    • Efficiency -Good programming language are efficiently translated into machine codes, are efficiently executed and consumes less space in memory.
    • Compactness - Programmer should be able to express intended operations concisely.
    • Extensibility - should allow extension in future.
  • 30. Any Questions?
  • 31.  

×