SlideShare a Scribd company logo
1 of 47
Programmin
g Language
Prepare by: M.Robeel
Programming Language
 Language is used for communication .
 programming language is used to communicate
with computer.
 All computer programs are written in programming
language.
 Every programming language has a set of
alphabets and rules. The instructions of computer
program are written by using the alphabets and
rules defined by the programming language.
 There are two types of programming languages3/9/2020Gulab Devi Educational Complex lahore
2
Programming language
 programming language is a set of words,
abbreviations, and symbols
 that enables a programmer to communicate
instructions to a computer.
3/9/2020Gulab Devi Educational Complex lahore
3
Low Level Language
 A language that is close to the language
computer itself uses is called low level
language. There are two type of low level
languages
 Machine Language
 Assembly Language
3/9/2020Gulab Devi Educational Complex lahore
4
Machine Language
 Machine language is also called binary
language. There are only two number of
machine language those are 0 and 1.
 Computer can understand only machine
language. The program written in other
programming languages are first translated to
machine language and then used on computer
3/9/2020Gulab Devi Educational Complex lahore
5
Assembly Language
 It is also low level language .But is is easier than
machine language.
 it was developed to make programming easy.
 In assembly language machine language
instructions are replaced by English like words.
 With an assembly language, the second
generation of programming languages, a
programmer writes instructions using symbolic
instruction codes . Examples of these codes
include A for addition, C for compare, L for load,
and M for multiply.
3/9/2020Gulab Devi Educational Complex lahore
6
High Level Language
/Procedural Languages
 A programming language that is close to
human language is called high level language.
 The instructions written in high level language
look like English language sentence.
 High level language are easy to learn.
 We can easily write and modify a program
written in high level language.
 Every High Level language has its own set of
rules. These rules are called syntax of
language. 3/9/2020Gulab Devi Educational Complex lahore
7
High Level Language
/Procedural Languages
 The C programming language, developed in the
early 1970s by Dennis Ritchie at Bell Laboratories,
originally was designed for writing system software.
Today, many programs are written in C . C runs on
almost any type of computer with any operating
system.
 COBOL COBOL (COmmon Business-Oriented
Language) evolved out of a joint effort between the
United States government, businesses, and major
universities in the early 1960s. Naval officer Grace
Hopper, a pioneer in computer programming, was a3/9/2020Gulab Devi Educational Complex lahore
8
C++ && C#
3/9/2020Gulab Devi Educational Complex lahore
9
 C++ Developed in the 1980s by Bjarne Sroustrup
at Bell Laboratories, C++ (pronounced SEE-plus-
plus) is an object-oriented programming language
that is an extension of the C programming
language.
 C# Based on C++, C# (pronounced SEE-sharp) is
an object-oriented programming language that
was developed primarily by Anders Hejlsberg
 High level language are
easy to learn.
 These are near to
human language
 Translator is required
 Programs in high-level
languages are easy to
modify
 Deep knowledge of
hardware is not required
to write programs
 Low level language are
difficult to learn
 These are far from
human languages
 No Translator is
required
 Program in low level
are difficulty to modify
 Deep knowledge of
hardware is required
to write program
High Level Low Level
3/9/2020Gulab Devi Educational Complex lahore
10
Web Page Development
 The designers of Web pages, known as Web
developers, use a variety of techniques to create
Web pages.
 HTML and XHTML HTML (Hypertext Markup
Language) is a special formatting language that
programmers use to format documents for display
on the Web. You view a Web page written with
HTML in a Web browser such as Internet Explorer,
Mozilla, Safari, Firefox, Opera, or Google Chrome.
3/9/2020Gulab Devi Educational Complex lahore
11
XHTML (extensible HTML)
 XHTML (extensible HTML) is a markup language
that enables Web sites to be displayed more easily
on micro browsers in smart phones and other
mobile devices, as well as on desktop and
notebook computers
3/9/2020Gulab Devi Educational Complex lahore
12
JavaScript && PHP &&
VBScript
 JavaScript is an interpreted language that allows a
programmer to add dynamic content and interactive
elements to a Web page
 PHP, which stands for PHP: Hypertext Preprocessor,
is a free, open source scripting language. PHP is
similar to C, Java, and Perl.
 VBScript (Visual Basic, Scripting Edition) is a
subset of the Visual Basic language that allows
programmers to add intelligence and interactivity to
Web pages. As with JavaScript, Web developers
embed VBScript code directly into an HTML3/9/2020Gulab Devi Educational Complex lahore
13
Dynamic HTML Dynamic
HTML (DHTML)
 Dynamic HTML Dynamic HTML (DHTML) is a
newer type of HTML that allows Web developers to
include more graphical interest and interactivity in a
Web page.
3/9/2020Gulab Devi Educational Complex lahore
14
Web Page Authoring
Software
 Dreamweaver:
By Adobe Systems, is a Web page authoring
program that allows Web developers to create,
maintain, and manage professional Web sites.
 Notepad ++
 Visual Studio
 Subline Text Editor etc
3/9/2020Gulab Devi Educational Complex lahore
15
Algorithm
 From programming point of view, an algorithm
is a step-by-step procedure to resolve any
problem. An algorithm is an effective method
expressed as a finite set of well-defined
instructions.
 Thus, a computer programmer lists down all
the steps required to resolve a problem before
writing the actual code. Following is a simple
example of an algorithm to find out the largest
number from a given list of numbers
3/9/2020Gulab Devi Educational Complex lahore
16
Algorithm Example
 Example 1: Print 1 to 20:
 Step 1: Initialize X as 0,
 Step 2: Increment X by 1,
 Step 3: Print X,
 Step 4: If X is less than 20 then go back to
step 2.
3/9/2020Gulab Devi Educational Complex lahore
17
Flow Chart
 A flowchart is the graphical or pictorial
representation of an algorithm with the help of
different symbols, shapes and arrows in order
to demonstrate a process or a program. With
algorithms, we can easily understand a
program. The main purpose of a flowchart is to
analyze different processes. Several standard
graphics are applied in a flowchart:
3/9/2020Gulab Devi Educational Complex lahore
18
Flow Chart Example
3/9/2020Gulab Devi Educational Complex lahore
19
Difference b/w Flow Chart &
Algorithms
 Stander Symbols are
used to design
flowcharts
 Flow chart is more
time –consuming
 It is difficult to modify
 It is a graphical
representation of the
solution
 Simple English is
used to write
algorithms
 Algorithm is less
time consuming
 It is easier to modify
 It is a step by step
procedure to solve
the problem
Flow Chart Algorithms
3/9/2020Gulab Devi Educational Complex lahore
20
High Level Language
 C
 C++
 JAVA
 C#
 PHP
 JAVA SCRIPT
 Etc
3/9/2020Gulab Devi Educational Complex lahore
21
C++ Program
 #include <iostream> using namespace std; //
main() is where program execution begins. int
main() { cout << "Hello World"; // prints Hello
World return 0; }
3/9/2020Gulab Devi Educational Complex lahore
22
Source Code
 A computer program written in high level
language is called source program is also
called source code.
 Computer cannot understand source code.
 It can understand only machine code.
 Source code cannot directly run on computer.
 It is converted into machine code before
execution
3/9/2020Gulab Devi Educational Complex lahore
23
Object Code
 A computer program in machine language is
called object program also called object code.
 Machine Language is native language of
computer so object code directly runs on
computer.
3/9/2020Gulab Devi Educational Complex lahore
24
Difference b/w Source & Object
Code
 Source code is
written in high level
language
 Source code is easy
to understand
 Source code is easy
to modify
 Object code is
written in machine
language
 Object code is
difficult to
understand
 Object code is
difficult to modify
Source Code Object Code
3/9/2020Gulab Devi Educational Complex lahore
25
Compiler
 Now let us try to get a little more detail on how the
computer understands a program written by you
using a programming language.
 Actually, the computer cannot understand your
program directly given in the text format, so we
need to convert this program in a binary format,
which can be understood by the computer.
 The conversion from text program to binary file is
done by another software called Compiler and this
process of conversion from text formatted program
to binary format file is called program compilation.3/9/2020Gulab Devi Educational Complex lahore
26
Compiler
3/9/2020Gulab Devi Educational Complex lahore
27
interpreter
 Compilers are required in case you are going
to write your program in a programming
language that needs to be compiled into binary
format before its execution.
 There are other programming languages such
as Python, PHP, and Perl, which do not need
any compilation into binary format, rather an
interpreter can be used to read such programs
line by line and execute them directly without
any further conversion.
3/9/2020Gulab Devi Educational Complex lahore
28
interpreter
3/9/2020Gulab Devi Educational Complex lahore
29
interpreter
 So, if you are going to write your programs in
PHP, Python, Perl, Ruby, etc., then you will
need to install their interpreters before you
start programming.
3/9/2020Gulab Devi Educational Complex lahore
30
Difference b/w Compiler and
interpreter
 Compiler converts a
program into machine
code as a whole
 Compiler create object
code file
 Program execution is
fast
 Compiler displays
syntax error after
 Interpreter converts a
program into machine
code statement by
statement
 Interpreter does not
create object code file
 Program execution is
slow
 Display the syntax
Compiler Interpreter
3/9/2020Gulab Devi Educational Complex lahore
31
Types Of Error
 Syntax Error
 Runtime Error
 Logical Error
3/9/2020Gulab Devi Educational Complex lahore
32
Syntax Error
 In effect, syntax errors represent grammar
errors in the use of the programming
language. Common examples are:
 Misspelled variable and function names
 Missing semicolons
 Improperly matches parentheses, square
brackets, and curly braces
 Incorrect format in selection and loop
statements
3/9/2020Gulab Devi Educational Complex lahore
33
Runtime Error
 Runtime errors occur when a program with no
syntax errors asks the computer to do
something that the computer is unable to
reliably do. Common examples are:
 Trying to divide by a variable that contains a
value of zero
 Trying to open a file that doesn't exist
 There is no way for the compiler to know about
these kinds of errors when the program is
compiled.
3/9/2020Gulab Devi Educational Complex lahore
34
Logical Error
 Logic errors occur when there is a design flaw
in your program.
 Common examples are:
 Multiplying when you should be dividing
 Adding when you should be subtracting
 Opening and using data from the wrong file
 Displaying the wrong message
3/9/2020Gulab Devi Educational Complex lahore
35
Which Error are Difficult to
find ?
3/9/2020Gulab Devi Educational Complex lahore
36
Object Oriented Programming
Language
3/9/2020Gulab Devi Educational Complex lahore
37
3/9/2020Gulab Devi Educational Complex lahore
38
Object
 This is the basic unit of object oriented
programming. That is both data and function
that operate on data are bundled as a unit
called as object.
3/9/2020Gulab Devi Educational Complex lahore
39
3/9/2020Gulab Devi Educational Complex lahore
40
Abstraction
 Data abstraction refers to, providing only
essential information to the outside world and
hiding their background details, i.e to
represent the needed information in program
without presenting the details.
 For example, a database system hides certain
details of how data is stored and created and
maintained. Similar way, C++ classes provides
different methods to the outside world without
giving internal detail about those methods and
data 3/9/2020Gulab Devi Educational Complex lahore
41
Encapsulation
 The wrapping of
Data and
operation/
function in to a
single unit is
known as
encapsulation
3/9/2020Gulab Devi Educational Complex lahore
42
Class
 When you define a class, you define a
blueprint for an object. This doesn't actually
define any data, but it does define what the
class name means, that is, what an object of
the class will consist of and what operations
can be performed on such an object.
3/9/2020Gulab Devi Educational Complex lahore
43
3/9/2020Gulab Devi Educational Complex lahore
44
Inheritance
 One of the most useful aspects of object-
oriented programming is code reusability. As
the name suggests Inheritance is the process
of forming a new class from an existing class
that is from the existing class called as base
class, new class is formed called as derived
class.
 This is a very important concept of object-
oriented programming since this feature helps
to reduce the code size.
3/9/2020Gulab Devi Educational Complex lahore
45
Polymorphism
 The ability to use an operator or function in
different ways in other words giving different
meaning or functions to the operators or
functions is called polymorphism. Poly refers
to many. That is a single function or an
operator functioning in many ways different
upon the usage is called polymorphism.
3/9/2020Gulab Devi Educational Complex lahore
46
3/9/2020Gulab Devi Educational Complex lahore
47

More Related Content

What's hot

C Unit 1 notes PREPARED BY MVB REDDY
C Unit 1 notes PREPARED BY MVB REDDYC Unit 1 notes PREPARED BY MVB REDDY
C Unit 1 notes PREPARED BY MVB REDDYRajeshkumar Reddy
 
Introduction to C Language
Introduction to C LanguageIntroduction to C Language
Introduction to C LanguageTarun Sharma
 
Presentation of programming languages for beginners
Presentation of programming languages for beginnersPresentation of programming languages for beginners
Presentation of programming languages for beginnersClement Levallois
 
6 Week C++ Language Training In Ambala
6 Week C++ Language Training In Ambala6 Week C++ Language Training In Ambala
6 Week C++ Language Training In AmbalaBatra Computer Centre
 
Module 201 2 20 just 20 basic
Module 201   2  20  just 20 basic Module 201   2  20  just 20 basic
Module 201 2 20 just 20 basic Nick Racers
 
Intoduction to c language
Intoduction to c languageIntoduction to c language
Intoduction to c languageStudent
 
Training report of C language
Training report of C languageTraining report of C language
Training report of C languageShashank Kapoor
 
Input output in c
Input output in cInput output in c
Input output in cDucat
 
Cprogramming tutorial
Cprogramming tutorialCprogramming tutorial
Cprogramming tutorialعمر عبد
 
Comparative Study of programming Languages
Comparative Study of programming LanguagesComparative Study of programming Languages
Comparative Study of programming LanguagesIshan Monga
 
Programming languages
Programming languagesProgramming languages
Programming languagesSimon Mui
 
Which programming language should you learn next?
Which programming language should you learn next? Which programming language should you learn next?
Which programming language should you learn next? Ganesh Samarthyam
 
C programming introduction
C programming introductionC programming introduction
C programming introductionDucat
 
Programming language (JGMNHS)
Programming language (JGMNHS)Programming language (JGMNHS)
Programming language (JGMNHS)Katherine Gamboa
 
Introduction to c_language
Introduction to c_languageIntroduction to c_language
Introduction to c_languageWay2itech
 

What's hot (19)

C Unit 1 notes PREPARED BY MVB REDDY
C Unit 1 notes PREPARED BY MVB REDDYC Unit 1 notes PREPARED BY MVB REDDY
C Unit 1 notes PREPARED BY MVB REDDY
 
Introduction to C Language
Introduction to C LanguageIntroduction to C Language
Introduction to C Language
 
Presentation of programming languages for beginners
Presentation of programming languages for beginnersPresentation of programming languages for beginners
Presentation of programming languages for beginners
 
Programming assignment help
Programming assignment helpProgramming assignment help
Programming assignment help
 
Chapter 5
Chapter 5Chapter 5
Chapter 5
 
6 Week C++ Language Training In Ambala
6 Week C++ Language Training In Ambala6 Week C++ Language Training In Ambala
6 Week C++ Language Training In Ambala
 
Module 201 2 20 just 20 basic
Module 201   2  20  just 20 basic Module 201   2  20  just 20 basic
Module 201 2 20 just 20 basic
 
Intoduction to c language
Intoduction to c languageIntoduction to c language
Intoduction to c language
 
Training report of C language
Training report of C languageTraining report of C language
Training report of C language
 
Input output in c
Input output in cInput output in c
Input output in c
 
Cprogramming tutorial
Cprogramming tutorialCprogramming tutorial
Cprogramming tutorial
 
Comparative Study of programming Languages
Comparative Study of programming LanguagesComparative Study of programming Languages
Comparative Study of programming Languages
 
Programming languages
Programming languagesProgramming languages
Programming languages
 
Which programming language should you learn next?
Which programming language should you learn next? Which programming language should you learn next?
Which programming language should you learn next?
 
C programming introduction
C programming introductionC programming introduction
C programming introduction
 
Abc c program
Abc c programAbc c program
Abc c program
 
Programming landuages
Programming landuagesProgramming landuages
Programming landuages
 
Programming language (JGMNHS)
Programming language (JGMNHS)Programming language (JGMNHS)
Programming language (JGMNHS)
 
Introduction to c_language
Introduction to c_languageIntroduction to c_language
Introduction to c_language
 

Similar to Programming languages

Programming language
Programming languageProgramming language
Programming languageDhani Ahmad
 
Software programming and development
Software programming and developmentSoftware programming and development
Software programming and developmentAli Raza
 
Introduction to Computer
Introduction to ComputerIntroduction to Computer
Introduction to Computerzaheeriqbal41
 
Chapter13
Chapter13Chapter13
Chapter13Izaham
 
Trend of Visual Programming Language
Trend of Visual Programming LanguageTrend of Visual Programming Language
Trend of Visual Programming LanguageTeddy Marcus
 
20210417-cppRelevancy-DataStructures.pptx
20210417-cppRelevancy-DataStructures.pptx20210417-cppRelevancy-DataStructures.pptx
20210417-cppRelevancy-DataStructures.pptxSuman Garai
 
The top programming languages for mobile app development in 2024
The top programming languages for mobile app development in 2024The top programming languages for mobile app development in 2024
The top programming languages for mobile app development in 2024Simublade Technology
 
Programming Languages
Programming Languages Programming Languages
Programming Languages knowledge1995
 
Specification Of The Programming Language Of Java
Specification Of The Programming Language Of JavaSpecification Of The Programming Language Of Java
Specification Of The Programming Language Of JavaKim Moore
 
Procedural Programming Of Programming Languages
Procedural Programming Of Programming LanguagesProcedural Programming Of Programming Languages
Procedural Programming Of Programming LanguagesTammy Moncrief
 
How To be a Backend developer
How To be a Backend developer    How To be a Backend developer
How To be a Backend developer Ramy Hakam
 
CSC1100 - Chapter11 - Programming Languages and Program Development
CSC1100 - Chapter11 - Programming Languages and Program DevelopmentCSC1100 - Chapter11 - Programming Languages and Program Development
CSC1100 - Chapter11 - Programming Languages and Program DevelopmentYhal Htet Aung
 
Programming Language
Programming LanguageProgramming Language
Programming LanguageFahad Khan
 
The top programming languages for mobile app development in 2024
The top programming languages for mobile app development in 2024The top programming languages for mobile app development in 2024
The top programming languages for mobile app development in 2024Simublade Technology
 
Ultimate guide on how to hire full stack web developer in 2022
Ultimate guide on how to hire full stack web developer in 2022Ultimate guide on how to hire full stack web developer in 2022
Ultimate guide on how to hire full stack web developer in 2022Katy Slemon
 
Introduction to programming language (basic)
Introduction to programming language (basic)Introduction to programming language (basic)
Introduction to programming language (basic)nharsh2308
 
Which Programming Languages To Choose For Android App Development_.pdf
Which Programming Languages To Choose For Android App Development_.pdfWhich Programming Languages To Choose For Android App Development_.pdf
Which Programming Languages To Choose For Android App Development_.pdfOZONESOFT Solutions
 

Similar to Programming languages (20)

Programming language
Programming languageProgramming language
Programming language
 
Software programming and development
Software programming and developmentSoftware programming and development
Software programming and development
 
Introduction to Computer
Introduction to ComputerIntroduction to Computer
Introduction to Computer
 
Chapter13
Chapter13Chapter13
Chapter13
 
Trend of Visual Programming Language
Trend of Visual Programming LanguageTrend of Visual Programming Language
Trend of Visual Programming Language
 
20210417-cppRelevancy-DataStructures.pptx
20210417-cppRelevancy-DataStructures.pptx20210417-cppRelevancy-DataStructures.pptx
20210417-cppRelevancy-DataStructures.pptx
 
The top programming languages for mobile app development in 2024
The top programming languages for mobile app development in 2024The top programming languages for mobile app development in 2024
The top programming languages for mobile app development in 2024
 
Programming Languages
Programming Languages Programming Languages
Programming Languages
 
Specification Of The Programming Language Of Java
Specification Of The Programming Language Of JavaSpecification Of The Programming Language Of Java
Specification Of The Programming Language Of Java
 
Procedural Programming Of Programming Languages
Procedural Programming Of Programming LanguagesProcedural Programming Of Programming Languages
Procedural Programming Of Programming Languages
 
How To be a Backend developer
How To be a Backend developer    How To be a Backend developer
How To be a Backend developer
 
Lecture 1-3.ppt
Lecture 1-3.pptLecture 1-3.ppt
Lecture 1-3.ppt
 
CSC1100 - Chapter11 - Programming Languages and Program Development
CSC1100 - Chapter11 - Programming Languages and Program DevelopmentCSC1100 - Chapter11 - Programming Languages and Program Development
CSC1100 - Chapter11 - Programming Languages and Program Development
 
Blog post
Blog postBlog post
Blog post
 
Programming Language
Programming LanguageProgramming Language
Programming Language
 
The top programming languages for mobile app development in 2024
The top programming languages for mobile app development in 2024The top programming languages for mobile app development in 2024
The top programming languages for mobile app development in 2024
 
Ultimate guide on how to hire full stack web developer in 2022
Ultimate guide on how to hire full stack web developer in 2022Ultimate guide on how to hire full stack web developer in 2022
Ultimate guide on how to hire full stack web developer in 2022
 
Introduction to programming language (basic)
Introduction to programming language (basic)Introduction to programming language (basic)
Introduction to programming language (basic)
 
Graphical programming
Graphical programmingGraphical programming
Graphical programming
 
Which Programming Languages To Choose For Android App Development_.pdf
Which Programming Languages To Choose For Android App Development_.pdfWhich Programming Languages To Choose For Android App Development_.pdf
Which Programming Languages To Choose For Android App Development_.pdf
 

More from MuhammadRobeel3

Ch # 10 computer security risks and safe guards
Ch # 10 computer security risks and safe guardsCh # 10 computer security risks and safe guards
Ch # 10 computer security risks and safe guardsMuhammadRobeel3
 
Ch # 09 database management system
Ch # 09 database management systemCh # 09 database management system
Ch # 09 database management systemMuhammadRobeel3
 
Ch # 08 communication devices, network typologies , network protocol
Ch # 08 communication devices, network typologies , network protocolCh # 08 communication devices, network typologies , network protocol
Ch # 08 communication devices, network typologies , network protocolMuhammadRobeel3
 
Ch # 07 operating system
Ch # 07 operating systemCh # 07 operating system
Ch # 07 operating systemMuhammadRobeel3
 
Ch # 05 input and output devices in computer
Ch # 05 input and output devices in computerCh # 05 input and output devices in computer
Ch # 05 input and output devices in computerMuhammadRobeel3
 
Ch # 04 computer hardware
Ch # 04 computer hardware Ch # 04 computer hardware
Ch # 04 computer hardware MuhammadRobeel3
 
Introduction to computer
Introduction to computerIntroduction to computer
Introduction to computerMuhammadRobeel3
 
Introduction to computer
Introduction to computerIntroduction to computer
Introduction to computerMuhammadRobeel3
 

More from MuhammadRobeel3 (17)

Osi model
Osi modelOsi model
Osi model
 
Memory management
Memory managementMemory management
Memory management
 
Command line interface
Command line interfaceCommand line interface
Command line interface
 
Ch # 11
Ch # 11Ch # 11
Ch # 11
 
Ch # 10 computer security risks and safe guards
Ch # 10 computer security risks and safe guardsCh # 10 computer security risks and safe guards
Ch # 10 computer security risks and safe guards
 
Ch # 09 database management system
Ch # 09 database management systemCh # 09 database management system
Ch # 09 database management system
 
Ch # 08 communication devices, network typologies , network protocol
Ch # 08 communication devices, network typologies , network protocolCh # 08 communication devices, network typologies , network protocol
Ch # 08 communication devices, network typologies , network protocol
 
Ch # 07 operating system
Ch # 07 operating systemCh # 07 operating system
Ch # 07 operating system
 
Ch # 06 storage devices
Ch # 06 storage devicesCh # 06 storage devices
Ch # 06 storage devices
 
Ch # 05 input and output devices in computer
Ch # 05 input and output devices in computerCh # 05 input and output devices in computer
Ch # 05 input and output devices in computer
 
Ch # 04 computer hardware
Ch # 04 computer hardware Ch # 04 computer hardware
Ch # 04 computer hardware
 
Ch # 03 software
Ch # 03  softwareCh # 03  software
Ch # 03 software
 
Ch # 02 internet
Ch # 02 internetCh # 02 internet
Ch # 02 internet
 
Introduction to computer
Introduction to computerIntroduction to computer
Introduction to computer
 
pdlc
pdlc pdlc
pdlc
 
Introduction to computer
Introduction to computerIntroduction to computer
Introduction to computer
 
SDLC
SDLCSDLC
SDLC
 

Recently uploaded

Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991RKavithamani
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxRoyAbrique
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppCeline George
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...RKavithamani
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 

Recently uploaded (20)

Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website App
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 

Programming languages

  • 2. Programming Language  Language is used for communication .  programming language is used to communicate with computer.  All computer programs are written in programming language.  Every programming language has a set of alphabets and rules. The instructions of computer program are written by using the alphabets and rules defined by the programming language.  There are two types of programming languages3/9/2020Gulab Devi Educational Complex lahore 2
  • 3. Programming language  programming language is a set of words, abbreviations, and symbols  that enables a programmer to communicate instructions to a computer. 3/9/2020Gulab Devi Educational Complex lahore 3
  • 4. Low Level Language  A language that is close to the language computer itself uses is called low level language. There are two type of low level languages  Machine Language  Assembly Language 3/9/2020Gulab Devi Educational Complex lahore 4
  • 5. Machine Language  Machine language is also called binary language. There are only two number of machine language those are 0 and 1.  Computer can understand only machine language. The program written in other programming languages are first translated to machine language and then used on computer 3/9/2020Gulab Devi Educational Complex lahore 5
  • 6. Assembly Language  It is also low level language .But is is easier than machine language.  it was developed to make programming easy.  In assembly language machine language instructions are replaced by English like words.  With an assembly language, the second generation of programming languages, a programmer writes instructions using symbolic instruction codes . Examples of these codes include A for addition, C for compare, L for load, and M for multiply. 3/9/2020Gulab Devi Educational Complex lahore 6
  • 7. High Level Language /Procedural Languages  A programming language that is close to human language is called high level language.  The instructions written in high level language look like English language sentence.  High level language are easy to learn.  We can easily write and modify a program written in high level language.  Every High Level language has its own set of rules. These rules are called syntax of language. 3/9/2020Gulab Devi Educational Complex lahore 7
  • 8. High Level Language /Procedural Languages  The C programming language, developed in the early 1970s by Dennis Ritchie at Bell Laboratories, originally was designed for writing system software. Today, many programs are written in C . C runs on almost any type of computer with any operating system.  COBOL COBOL (COmmon Business-Oriented Language) evolved out of a joint effort between the United States government, businesses, and major universities in the early 1960s. Naval officer Grace Hopper, a pioneer in computer programming, was a3/9/2020Gulab Devi Educational Complex lahore 8
  • 9. C++ && C# 3/9/2020Gulab Devi Educational Complex lahore 9  C++ Developed in the 1980s by Bjarne Sroustrup at Bell Laboratories, C++ (pronounced SEE-plus- plus) is an object-oriented programming language that is an extension of the C programming language.  C# Based on C++, C# (pronounced SEE-sharp) is an object-oriented programming language that was developed primarily by Anders Hejlsberg
  • 10.  High level language are easy to learn.  These are near to human language  Translator is required  Programs in high-level languages are easy to modify  Deep knowledge of hardware is not required to write programs  Low level language are difficult to learn  These are far from human languages  No Translator is required  Program in low level are difficulty to modify  Deep knowledge of hardware is required to write program High Level Low Level 3/9/2020Gulab Devi Educational Complex lahore 10
  • 11. Web Page Development  The designers of Web pages, known as Web developers, use a variety of techniques to create Web pages.  HTML and XHTML HTML (Hypertext Markup Language) is a special formatting language that programmers use to format documents for display on the Web. You view a Web page written with HTML in a Web browser such as Internet Explorer, Mozilla, Safari, Firefox, Opera, or Google Chrome. 3/9/2020Gulab Devi Educational Complex lahore 11
  • 12. XHTML (extensible HTML)  XHTML (extensible HTML) is a markup language that enables Web sites to be displayed more easily on micro browsers in smart phones and other mobile devices, as well as on desktop and notebook computers 3/9/2020Gulab Devi Educational Complex lahore 12
  • 13. JavaScript && PHP && VBScript  JavaScript is an interpreted language that allows a programmer to add dynamic content and interactive elements to a Web page  PHP, which stands for PHP: Hypertext Preprocessor, is a free, open source scripting language. PHP is similar to C, Java, and Perl.  VBScript (Visual Basic, Scripting Edition) is a subset of the Visual Basic language that allows programmers to add intelligence and interactivity to Web pages. As with JavaScript, Web developers embed VBScript code directly into an HTML3/9/2020Gulab Devi Educational Complex lahore 13
  • 14. Dynamic HTML Dynamic HTML (DHTML)  Dynamic HTML Dynamic HTML (DHTML) is a newer type of HTML that allows Web developers to include more graphical interest and interactivity in a Web page. 3/9/2020Gulab Devi Educational Complex lahore 14
  • 15. Web Page Authoring Software  Dreamweaver: By Adobe Systems, is a Web page authoring program that allows Web developers to create, maintain, and manage professional Web sites.  Notepad ++  Visual Studio  Subline Text Editor etc 3/9/2020Gulab Devi Educational Complex lahore 15
  • 16. Algorithm  From programming point of view, an algorithm is a step-by-step procedure to resolve any problem. An algorithm is an effective method expressed as a finite set of well-defined instructions.  Thus, a computer programmer lists down all the steps required to resolve a problem before writing the actual code. Following is a simple example of an algorithm to find out the largest number from a given list of numbers 3/9/2020Gulab Devi Educational Complex lahore 16
  • 17. Algorithm Example  Example 1: Print 1 to 20:  Step 1: Initialize X as 0,  Step 2: Increment X by 1,  Step 3: Print X,  Step 4: If X is less than 20 then go back to step 2. 3/9/2020Gulab Devi Educational Complex lahore 17
  • 18. Flow Chart  A flowchart is the graphical or pictorial representation of an algorithm with the help of different symbols, shapes and arrows in order to demonstrate a process or a program. With algorithms, we can easily understand a program. The main purpose of a flowchart is to analyze different processes. Several standard graphics are applied in a flowchart: 3/9/2020Gulab Devi Educational Complex lahore 18
  • 19. Flow Chart Example 3/9/2020Gulab Devi Educational Complex lahore 19
  • 20. Difference b/w Flow Chart & Algorithms  Stander Symbols are used to design flowcharts  Flow chart is more time –consuming  It is difficult to modify  It is a graphical representation of the solution  Simple English is used to write algorithms  Algorithm is less time consuming  It is easier to modify  It is a step by step procedure to solve the problem Flow Chart Algorithms 3/9/2020Gulab Devi Educational Complex lahore 20
  • 21. High Level Language  C  C++  JAVA  C#  PHP  JAVA SCRIPT  Etc 3/9/2020Gulab Devi Educational Complex lahore 21
  • 22. C++ Program  #include <iostream> using namespace std; // main() is where program execution begins. int main() { cout << "Hello World"; // prints Hello World return 0; } 3/9/2020Gulab Devi Educational Complex lahore 22
  • 23. Source Code  A computer program written in high level language is called source program is also called source code.  Computer cannot understand source code.  It can understand only machine code.  Source code cannot directly run on computer.  It is converted into machine code before execution 3/9/2020Gulab Devi Educational Complex lahore 23
  • 24. Object Code  A computer program in machine language is called object program also called object code.  Machine Language is native language of computer so object code directly runs on computer. 3/9/2020Gulab Devi Educational Complex lahore 24
  • 25. Difference b/w Source & Object Code  Source code is written in high level language  Source code is easy to understand  Source code is easy to modify  Object code is written in machine language  Object code is difficult to understand  Object code is difficult to modify Source Code Object Code 3/9/2020Gulab Devi Educational Complex lahore 25
  • 26. Compiler  Now let us try to get a little more detail on how the computer understands a program written by you using a programming language.  Actually, the computer cannot understand your program directly given in the text format, so we need to convert this program in a binary format, which can be understood by the computer.  The conversion from text program to binary file is done by another software called Compiler and this process of conversion from text formatted program to binary format file is called program compilation.3/9/2020Gulab Devi Educational Complex lahore 26
  • 28. interpreter  Compilers are required in case you are going to write your program in a programming language that needs to be compiled into binary format before its execution.  There are other programming languages such as Python, PHP, and Perl, which do not need any compilation into binary format, rather an interpreter can be used to read such programs line by line and execute them directly without any further conversion. 3/9/2020Gulab Devi Educational Complex lahore 28
  • 30. interpreter  So, if you are going to write your programs in PHP, Python, Perl, Ruby, etc., then you will need to install their interpreters before you start programming. 3/9/2020Gulab Devi Educational Complex lahore 30
  • 31. Difference b/w Compiler and interpreter  Compiler converts a program into machine code as a whole  Compiler create object code file  Program execution is fast  Compiler displays syntax error after  Interpreter converts a program into machine code statement by statement  Interpreter does not create object code file  Program execution is slow  Display the syntax Compiler Interpreter 3/9/2020Gulab Devi Educational Complex lahore 31
  • 32. Types Of Error  Syntax Error  Runtime Error  Logical Error 3/9/2020Gulab Devi Educational Complex lahore 32
  • 33. Syntax Error  In effect, syntax errors represent grammar errors in the use of the programming language. Common examples are:  Misspelled variable and function names  Missing semicolons  Improperly matches parentheses, square brackets, and curly braces  Incorrect format in selection and loop statements 3/9/2020Gulab Devi Educational Complex lahore 33
  • 34. Runtime Error  Runtime errors occur when a program with no syntax errors asks the computer to do something that the computer is unable to reliably do. Common examples are:  Trying to divide by a variable that contains a value of zero  Trying to open a file that doesn't exist  There is no way for the compiler to know about these kinds of errors when the program is compiled. 3/9/2020Gulab Devi Educational Complex lahore 34
  • 35. Logical Error  Logic errors occur when there is a design flaw in your program.  Common examples are:  Multiplying when you should be dividing  Adding when you should be subtracting  Opening and using data from the wrong file  Displaying the wrong message 3/9/2020Gulab Devi Educational Complex lahore 35
  • 36. Which Error are Difficult to find ? 3/9/2020Gulab Devi Educational Complex lahore 36
  • 37. Object Oriented Programming Language 3/9/2020Gulab Devi Educational Complex lahore 37
  • 38. 3/9/2020Gulab Devi Educational Complex lahore 38
  • 39. Object  This is the basic unit of object oriented programming. That is both data and function that operate on data are bundled as a unit called as object. 3/9/2020Gulab Devi Educational Complex lahore 39
  • 40. 3/9/2020Gulab Devi Educational Complex lahore 40
  • 41. Abstraction  Data abstraction refers to, providing only essential information to the outside world and hiding their background details, i.e to represent the needed information in program without presenting the details.  For example, a database system hides certain details of how data is stored and created and maintained. Similar way, C++ classes provides different methods to the outside world without giving internal detail about those methods and data 3/9/2020Gulab Devi Educational Complex lahore 41
  • 42. Encapsulation  The wrapping of Data and operation/ function in to a single unit is known as encapsulation 3/9/2020Gulab Devi Educational Complex lahore 42
  • 43. Class  When you define a class, you define a blueprint for an object. This doesn't actually define any data, but it does define what the class name means, that is, what an object of the class will consist of and what operations can be performed on such an object. 3/9/2020Gulab Devi Educational Complex lahore 43
  • 44. 3/9/2020Gulab Devi Educational Complex lahore 44
  • 45. Inheritance  One of the most useful aspects of object- oriented programming is code reusability. As the name suggests Inheritance is the process of forming a new class from an existing class that is from the existing class called as base class, new class is formed called as derived class.  This is a very important concept of object- oriented programming since this feature helps to reduce the code size. 3/9/2020Gulab Devi Educational Complex lahore 45
  • 46. Polymorphism  The ability to use an operator or function in different ways in other words giving different meaning or functions to the operators or functions is called polymorphism. Poly refers to many. That is a single function or an operator functioning in many ways different upon the usage is called polymorphism. 3/9/2020Gulab Devi Educational Complex lahore 46
  • 47. 3/9/2020Gulab Devi Educational Complex lahore 47