This document provides an introduction to programming languages. It defines a programming language as a coded language that allows programmers to write instructions for computers. It describes machine language as the lowest level language that computers can directly understand as binary, and high-level languages as simpler languages that require compilation. It then lists and defines the three main types of programming languages: machine language, assembly language, and high-level languages such as C++ and Java.
There are four categories of computer languages: high-level languages, low-level languages, assembly language, and machine language. High-level languages are closer to human language and need translators to be understood by computers. Low-level languages are closer to machine language and do not need translators. Assembly language sits between high-level and machine language by using mnemonic codes. Machine language consists of binary and is the only language computers can directly understand. Translators like compilers, interpreters, and assemblers are used to convert between these language categories.
Machine language is the lowest-level programming language that computers can directly understand as it consists of binary digits (0s and 1s) representing electric signals. It is difficult for humans to write programs in machine language due to its unreadable nature. Most programmers instead use high-level languages like BASIC, C, Java, etc. which are then converted into machine language by compilers or interpreters before a computer can execute the programs.
This document discusses different types of computer languages. It begins by defining a programming language as an artificial language used to communicate instructions to a computer. Originally, programs were written in binary code (1s and 0s), which is the native language of computers. Assembly language was then created using alphanumeric codes and mnemonics, making programming easier but still machine-dependent. High-level languages were later developed that use vocabulary closer to human languages, make programs more portable between machines, and are generally easier for humans to read, write and maintain. However, high-level languages must still be translated into machine language before execution.
This document provides an introduction to programming languages. It discusses the evolution of programming languages from machine languages to modern languages. It describes key terminology like programmers, programs, and programming. It also covers different types of language translators like assemblers, compilers, and interpreters that translate human-readable code into machine-readable code. Finally, it categorizes programming languages into five generations from low-level machine languages to high-level languages that resemble human languages.
Computer languages allow humans to communicate with computers through programming. There are different types of computer languages at different levels of abstraction from machine language up to high-level languages. High-level languages are closer to human language while low-level languages are closer to machine-readable code. Programs written in high-level languages require compilers or interpreters to convert them to machine-readable code that can be executed by computers.
This document discusses different types of computer languages including machine language, assembly language, high-level languages, fourth generation languages, and object-oriented languages. It provides details on each type of language such as their characteristics, how they are executed, advantages and disadvantages.
The document discusses different types of computer programming languages including low-level languages like machine language and assembly language, and high-level languages. Machine language uses binary and corresponds directly to hardware, while assembly language uses alphanumeric symbols. High-level languages are easier for humans to read and write but require translation. There are different types of high-level languages for tasks like mathematical problems, business data processing, string manipulation, object-oriented programming, and visual programming.
Introduction Programming and Application Lecture 1.pptxMahamaHaruna
This document provides an introduction to computer programming fundamentals. It discusses how programming languages allow humans to give instructions to computers and how these languages get translated into binary for the computer to understand. It describes low-level languages that are closer to binary and relate to specific hardware, and high-level languages that are more like human languages and portable. Examples of assembly language and common high-level languages are given. The document also briefly explains the role of translators in converting source code into executable machine code.
The PowerPoint presentation on programming languages provides an insightful overview of the fundamental concepts, types, and applications of programming languages. The presentation begins by introducing the concept of programming languages and their significance in software development and computer programming. It covers the major categories of programming languages, including procedural, object-oriented, functional, and scripting languages, discussing their characteristics, syntax, and primary use cases. The presentation highlights popular programming languages such as Python, Java, C++, and JavaScript, showcasing their strengths, ecosystems, and industry applications. It also touches upon emerging trends in programming languages, such as machine learning and data science-focused languages. The presentation equips the audience with a broad understanding of programming languages, enabling them to make informed decisions and choose the most suitable language for their development projects.
This document discusses different types of computer languages. It begins by distinguishing between programming languages and other computer languages like markup languages. It then categorizes languages as either low-level or high-level. Low-level languages like machine language and assembly language are closer to machine code, while high-level languages use English-like syntax and are translated to machine code. Several examples of each type are provided along with their advantages and disadvantages.
Assembly Language Programming By Ytha Yu, Charles Marut Chap 1(Microcomputer ...Bilal Amjad
This document discusses computer languages and microprocessor-based systems. It describes how machine language uses binary instructions to directly control a processor's circuitry. Assembly language and high-level languages were developed to bridge the gap between machine language and what is convenient for humans. Assembly language uses symbolic names for operations and memory locations and converts to machine language via an assembler. High-level languages like Pascal and COBOL use expressions and symbols from English and convert to machine language via a compiler. Advantages of assembly language include better performance and access to hardware for some applications where speed and size are critical.
Programming languages allow humans to communicate instructions to computers. There are many programming languages that differ based on their level, model, and intended applications. Low-level languages like machine language and assembly language use binary codes and mnemonics that closely match the computer's architecture, making programs fast but difficult for humans. Higher-level languages have more abstract constructs that are translated into machine code, making programs easier for humans to write but slower to execute. Programming languages continue to evolve to balance expressiveness for programmers with efficiency of execution.
Computer languages can be categorized into different generations based on their level of abstraction from machine language. First generation languages are machine languages that use binary, while assembly languages as second generation are closer to machine language with mnemonic codes. High-level languages of the third generation like FORTRAN and COBOL are easier for humans to read and write. Fourth generation languages attempt more natural language programming, and fifth generation use visual interfaces to generate code compiled by lower level languages. The key aspects of a program include variables, statements, keywords, instructions, and the ability to perform tasks through organized lists of commands.
The document discusses different types of programming languages: machine language uses binary; assembly language uses symbols but still maps to binary; and high-level languages are abstracted from hardware and use English-like syntax. It provides details on each type, including their advantages like efficiency for machine language or readability for high-level languages, and disadvantages like lack of portability or required translation.
This document discusses different types of programming languages including machine language, assembly language, and high-level languages. It explains that machine language is directly understood by computers using binary, while assembly language uses symbols translated by an assembler. High-level languages like COBOL, FORTRAN and BASIC are easier for humans to read and are compiled into machine language. Compilers translate entire high-level programs at once, while interpreters translate and execute one statement at a time.
This document discusses different types of computer languages. It begins by distinguishing between programming languages and other computer languages like markup languages. It then describes low-level languages like machine language and assembly language that are closest to binary and easiest for computers to understand directly. It also covers high-level languages like BASIC, COBOL, and Java that are easier for humans to read but require translation. Key advantages and disadvantages of each level are provided. The document concludes that computer languages serve to facilitate communication between humans and computers.
The document provides information on computer concepts including hardware components, operating systems, and programming languages. It discusses:
1) Operating systems like Windows, DOS, UNIX that manage computer hardware and allow users to run programs. The most popular is Microsoft Windows.
2) The history of operating systems including the development of DOS by Microsoft in 1981 and newer versions of Windows.
3) Programming languages are classified as low-level like machine language and assembly language, which are close to hardware, or high-level like COBOL and BASIC, which are easier for humans.
4) Compilers translate high-level languages to machine code while interpreters translate each line immediately before executing.
There are three main types of computer languages:
1. Machine language - Understood directly by computers as binary, fast but difficult for humans.
2. Assembly language - Uses mnemonics like ADD instead of binary, easier for humans but still machine-dependent. Requires an assembler to translate to machine language.
3. High-level languages - Are machine independent, use familiar words and symbols, and require compilers or interpreters to translate to machine language. They are easier for programmers but provide less control over hardware.
A programming language defines a set of instructions that are compiled by the CPU to perform tasks. Programming languages can be classified as low-level or high-level based on their level of abstraction from hardware. Low-level languages like machine code and assembly language provide little abstraction and are closer to binary machine instructions, while high-level languages like C++ and Python provide more abstraction and are easier for humans to read and write.
COMPUTER LANGUAGES programming languages.pptxharshsingh0889
The document discusses the evolution of computer languages from low-level to high-level and classifies languages. Low-level machine languages contain binary instructions that computers understand directly. Middle-level assembly languages use mnemonics translated to machine code by assemblers. High-level languages are easiest for humans to read and write but require compilers or interpreters to convert them to low-level code for computer execution. Examples of high-level languages given are C, C++, Java, and HTML.
Computer languages can be categorized into high-level languages, low-level languages, and machine language. High-level languages are easier for humans to read and write but require compilers or interpreters, while low-level languages like assembly language are closer to machine language but still use symbolic instructions. Machine language uses only binary and is directly executable by computers. Languages have evolved through five generations from low-level machine and assembly languages to modern high-level languages.
Computer languages can be categorized into high-level languages, low-level languages, and machine language. High-level languages are closer to human language and require compilers or interpreters, while low-level languages like assembly language are closer to machine language. Machine language is binary code that is directly executable by computers. There are also different generations of languages that evolved with advances in hardware and software.
This document discusses computer programming and programming languages. It defines a computer program and programming language. It describes the different generations of programming languages from low-level machine languages and assembly languages to modern high-level languages like C++. It discusses programming approaches like structured programming which breaks programs into modules and object-oriented programming which combines data and functions into objects.
This document provides an introduction to computer programming. It defines what a computer program and programming are, explaining that a program is a set of instructions that a computer executes to perform a task. Programming is the process of writing these instructions in a programming language. It then classifies programming languages into four main types from lowest to highest level: machine language, assembly language, high-level languages, and object-oriented/event-driven languages. High-level languages make programming easier by using English-like syntax compared to machine language's binary code. The document also outlines the typical steps in a program development process.
1. Define Program, programmer, Programming Language and its type||Learn C Pro...Fiaz Hussain
This is our first video of C language series. In this video we study, what is program, define programmer, define programming language and different types of programming language like machine language, assembly language, high level language and different types of high-level languages.
----------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------
Aslam O Alikum, My name is Fiaz Hussain, and you’re watching my YouTube channel Coding Series
If you have any question or suggestion then please comments below. I tried my best to reply your comments.
I hope you will enjoy this video, if you enjoy this video then please like this video and share with Friends. And don’t forget to subscribe my channel.
Thanks
----------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------
Join me on Facebook:
Facebook Link: https://bit.ly/2QuNoTn
Join me on Instagram:
Instagram Link: https://bit.ly/2OuI9AK
Join me on Twitter:
Twitter Link: https://bit.ly/2puOV0N
This document discusses different types of computer languages. It begins by defining natural language and computer language, noting that computer languages have a more limited vocabulary than natural languages. It then classifies computer languages into machine language, assembly language, and high-level languages. Machine language uses binary and has no translation, while assembly language substitutes mnemonics for machine codes. High-level languages are problem-oriented and translated into multiple machine codes. Assemblers translate assembly languages, compilers translate high-level languages, and interpreters translate high-level languages line-by-line before executing each one. High-level languages are more machine independent, easier to use and maintain than lower-level languages.
The document discusses human and computer languages. It defines computer languages as those that allow users to command computers through algorithms. There are two types of computer languages: low-level and high-level. Low-level languages like machine code and assembly languages provide little abstraction from hardware and are used for first and second generation computers. High-level languages like C, Java, and Visual Basic provide more abstraction and are easier for humans to use. They were introduced for third generation computers.
*"Sensing the World: Insect Sensory Systems"*Arshad Shaikh
Insects' major sensory organs include compound eyes for vision, antennae for smell, taste, and touch, and ocelli for light detection, enabling navigation, food detection, and communication.
Ad
More Related Content
Similar to Basic Introduction to Computer Programming.ppt (20)
Introduction Programming and Application Lecture 1.pptxMahamaHaruna
This document provides an introduction to computer programming fundamentals. It discusses how programming languages allow humans to give instructions to computers and how these languages get translated into binary for the computer to understand. It describes low-level languages that are closer to binary and relate to specific hardware, and high-level languages that are more like human languages and portable. Examples of assembly language and common high-level languages are given. The document also briefly explains the role of translators in converting source code into executable machine code.
The PowerPoint presentation on programming languages provides an insightful overview of the fundamental concepts, types, and applications of programming languages. The presentation begins by introducing the concept of programming languages and their significance in software development and computer programming. It covers the major categories of programming languages, including procedural, object-oriented, functional, and scripting languages, discussing their characteristics, syntax, and primary use cases. The presentation highlights popular programming languages such as Python, Java, C++, and JavaScript, showcasing their strengths, ecosystems, and industry applications. It also touches upon emerging trends in programming languages, such as machine learning and data science-focused languages. The presentation equips the audience with a broad understanding of programming languages, enabling them to make informed decisions and choose the most suitable language for their development projects.
This document discusses different types of computer languages. It begins by distinguishing between programming languages and other computer languages like markup languages. It then categorizes languages as either low-level or high-level. Low-level languages like machine language and assembly language are closer to machine code, while high-level languages use English-like syntax and are translated to machine code. Several examples of each type are provided along with their advantages and disadvantages.
Assembly Language Programming By Ytha Yu, Charles Marut Chap 1(Microcomputer ...Bilal Amjad
This document discusses computer languages and microprocessor-based systems. It describes how machine language uses binary instructions to directly control a processor's circuitry. Assembly language and high-level languages were developed to bridge the gap between machine language and what is convenient for humans. Assembly language uses symbolic names for operations and memory locations and converts to machine language via an assembler. High-level languages like Pascal and COBOL use expressions and symbols from English and convert to machine language via a compiler. Advantages of assembly language include better performance and access to hardware for some applications where speed and size are critical.
Programming languages allow humans to communicate instructions to computers. There are many programming languages that differ based on their level, model, and intended applications. Low-level languages like machine language and assembly language use binary codes and mnemonics that closely match the computer's architecture, making programs fast but difficult for humans. Higher-level languages have more abstract constructs that are translated into machine code, making programs easier for humans to write but slower to execute. Programming languages continue to evolve to balance expressiveness for programmers with efficiency of execution.
Computer languages can be categorized into different generations based on their level of abstraction from machine language. First generation languages are machine languages that use binary, while assembly languages as second generation are closer to machine language with mnemonic codes. High-level languages of the third generation like FORTRAN and COBOL are easier for humans to read and write. Fourth generation languages attempt more natural language programming, and fifth generation use visual interfaces to generate code compiled by lower level languages. The key aspects of a program include variables, statements, keywords, instructions, and the ability to perform tasks through organized lists of commands.
The document discusses different types of programming languages: machine language uses binary; assembly language uses symbols but still maps to binary; and high-level languages are abstracted from hardware and use English-like syntax. It provides details on each type, including their advantages like efficiency for machine language or readability for high-level languages, and disadvantages like lack of portability or required translation.
This document discusses different types of programming languages including machine language, assembly language, and high-level languages. It explains that machine language is directly understood by computers using binary, while assembly language uses symbols translated by an assembler. High-level languages like COBOL, FORTRAN and BASIC are easier for humans to read and are compiled into machine language. Compilers translate entire high-level programs at once, while interpreters translate and execute one statement at a time.
This document discusses different types of computer languages. It begins by distinguishing between programming languages and other computer languages like markup languages. It then describes low-level languages like machine language and assembly language that are closest to binary and easiest for computers to understand directly. It also covers high-level languages like BASIC, COBOL, and Java that are easier for humans to read but require translation. Key advantages and disadvantages of each level are provided. The document concludes that computer languages serve to facilitate communication between humans and computers.
The document provides information on computer concepts including hardware components, operating systems, and programming languages. It discusses:
1) Operating systems like Windows, DOS, UNIX that manage computer hardware and allow users to run programs. The most popular is Microsoft Windows.
2) The history of operating systems including the development of DOS by Microsoft in 1981 and newer versions of Windows.
3) Programming languages are classified as low-level like machine language and assembly language, which are close to hardware, or high-level like COBOL and BASIC, which are easier for humans.
4) Compilers translate high-level languages to machine code while interpreters translate each line immediately before executing.
There are three main types of computer languages:
1. Machine language - Understood directly by computers as binary, fast but difficult for humans.
2. Assembly language - Uses mnemonics like ADD instead of binary, easier for humans but still machine-dependent. Requires an assembler to translate to machine language.
3. High-level languages - Are machine independent, use familiar words and symbols, and require compilers or interpreters to translate to machine language. They are easier for programmers but provide less control over hardware.
A programming language defines a set of instructions that are compiled by the CPU to perform tasks. Programming languages can be classified as low-level or high-level based on their level of abstraction from hardware. Low-level languages like machine code and assembly language provide little abstraction and are closer to binary machine instructions, while high-level languages like C++ and Python provide more abstraction and are easier for humans to read and write.
COMPUTER LANGUAGES programming languages.pptxharshsingh0889
The document discusses the evolution of computer languages from low-level to high-level and classifies languages. Low-level machine languages contain binary instructions that computers understand directly. Middle-level assembly languages use mnemonics translated to machine code by assemblers. High-level languages are easiest for humans to read and write but require compilers or interpreters to convert them to low-level code for computer execution. Examples of high-level languages given are C, C++, Java, and HTML.
Computer languages can be categorized into high-level languages, low-level languages, and machine language. High-level languages are easier for humans to read and write but require compilers or interpreters, while low-level languages like assembly language are closer to machine language but still use symbolic instructions. Machine language uses only binary and is directly executable by computers. Languages have evolved through five generations from low-level machine and assembly languages to modern high-level languages.
Computer languages can be categorized into high-level languages, low-level languages, and machine language. High-level languages are closer to human language and require compilers or interpreters, while low-level languages like assembly language are closer to machine language. Machine language is binary code that is directly executable by computers. There are also different generations of languages that evolved with advances in hardware and software.
This document discusses computer programming and programming languages. It defines a computer program and programming language. It describes the different generations of programming languages from low-level machine languages and assembly languages to modern high-level languages like C++. It discusses programming approaches like structured programming which breaks programs into modules and object-oriented programming which combines data and functions into objects.
This document provides an introduction to computer programming. It defines what a computer program and programming are, explaining that a program is a set of instructions that a computer executes to perform a task. Programming is the process of writing these instructions in a programming language. It then classifies programming languages into four main types from lowest to highest level: machine language, assembly language, high-level languages, and object-oriented/event-driven languages. High-level languages make programming easier by using English-like syntax compared to machine language's binary code. The document also outlines the typical steps in a program development process.
1. Define Program, programmer, Programming Language and its type||Learn C Pro...Fiaz Hussain
This is our first video of C language series. In this video we study, what is program, define programmer, define programming language and different types of programming language like machine language, assembly language, high level language and different types of high-level languages.
----------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------
Aslam O Alikum, My name is Fiaz Hussain, and you’re watching my YouTube channel Coding Series
If you have any question or suggestion then please comments below. I tried my best to reply your comments.
I hope you will enjoy this video, if you enjoy this video then please like this video and share with Friends. And don’t forget to subscribe my channel.
Thanks
----------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------
Join me on Facebook:
Facebook Link: https://bit.ly/2QuNoTn
Join me on Instagram:
Instagram Link: https://bit.ly/2OuI9AK
Join me on Twitter:
Twitter Link: https://bit.ly/2puOV0N
This document discusses different types of computer languages. It begins by defining natural language and computer language, noting that computer languages have a more limited vocabulary than natural languages. It then classifies computer languages into machine language, assembly language, and high-level languages. Machine language uses binary and has no translation, while assembly language substitutes mnemonics for machine codes. High-level languages are problem-oriented and translated into multiple machine codes. Assemblers translate assembly languages, compilers translate high-level languages, and interpreters translate high-level languages line-by-line before executing each one. High-level languages are more machine independent, easier to use and maintain than lower-level languages.
The document discusses human and computer languages. It defines computer languages as those that allow users to command computers through algorithms. There are two types of computer languages: low-level and high-level. Low-level languages like machine code and assembly languages provide little abstraction from hardware and are used for first and second generation computers. High-level languages like C, Java, and Visual Basic provide more abstraction and are easier for humans to use. They were introduced for third generation computers.
*"Sensing the World: Insect Sensory Systems"*Arshad Shaikh
Insects' major sensory organs include compound eyes for vision, antennae for smell, taste, and touch, and ocelli for light detection, enabling navigation, food detection, and communication.
Slides to support presentations and the publication of my book Well-Being and Creative Careers: What Makes You Happy Can Also Make You Sick, out in September 2025 with Intellect Books in the UK and worldwide, distributed in the US by The University of Chicago Press.
In this book and presentation, I investigate the systemic issues that make creative work both exhilarating and unsustainable. Drawing on extensive research and in-depth interviews with media professionals, the hidden downsides of doing what you love get documented, analyzing how workplace structures, high workloads, and perceived injustices contribute to mental and physical distress.
All of this is not just about what’s broken; it’s about what can be done. The talk concludes with providing a roadmap for rethinking the culture of creative industries and offers strategies for balancing passion with sustainability.
With this book and presentation I hope to challenge us to imagine a healthier future for the labor of love that a creative career is.
How to Configure Public Holidays & Mandatory Days in Odoo 18Celine George
In this slide, we’ll explore the steps to set up and manage Public Holidays and Mandatory Days in Odoo 18 effectively. Managing Public Holidays and Mandatory Days is essential for maintaining an organized and compliant work schedule in any organization.
Search Matching Applicants in Odoo 18 - Odoo SlidesCeline George
The "Search Matching Applicants" feature in Odoo 18 is a powerful tool that helps recruiters find the most suitable candidates for job openings based on their qualifications and experience.
Mental Health Assessment in 5th semester bsc. nursing and also used in 2nd ye...parmarjuli1412
Mental Health Assessment in 5th semester Bsc. nursing and also used in 2nd year GNM nursing. in included introduction, definition, purpose, methods of psychiatric assessment, history taking, mental status examination, psychological test and psychiatric investigation
Rock Art As a Source of Ancient Indian HistoryVirag Sontakke
This Presentation is prepared for Graduate Students. A presentation that provides basic information about the topic. Students should seek further information from the recommended books and articles. This presentation is only for students and purely for academic purposes. I took/copied the pictures/maps included in the presentation are from the internet. The presenter is thankful to them and herewith courtesy is given to all. This presentation is only for academic purposes.
This slide is an exercise for the inquisitive students preparing for the competitive examinations of the undergraduate and postgraduate students. An attempt is being made to present the slide keeping in mind the New Education Policy (NEP). An attempt has been made to give the references of the facts at the end of the slide. If new facts are discovered in the near future, this slide will be revised.
This presentation is related to the brief History of Kashmir (Part-I) with special reference to Karkota Dynasty. In the seventh century a person named Durlabhvardhan founded the Karkot dynasty in Kashmir. He was a functionary of Baladitya, the last king of the Gonanda dynasty. This dynasty ruled Kashmir before the Karkot dynasty. He was a powerful king. Huansang tells us that in his time Taxila, Singhpur, Ursha, Punch and Rajputana were parts of the Kashmir state.
The role of wall art in interior designingmeghaark2110
Wall art and wall patterns are not merely decorative elements, but powerful tools in shaping the identity, mood, and functionality of interior spaces. They serve as visual expressions of personality, culture, and creativity, transforming blank and lifeless walls into vibrant storytelling surfaces. Wall art, whether abstract, realistic, or symbolic, adds emotional depth and aesthetic richness to a room, while wall patterns contribute to structure, rhythm, and continuity in design. Together, they enhance the visual experience, making spaces feel more complete, welcoming, and engaging. In modern interior design, the thoughtful integration of wall art and patterns plays a crucial role in creating environments that are not only beautiful but also meaningful and memorable. As lifestyles evolve, so too does the art of wall decor—encouraging innovation, sustainability, and personalized expression within our living and working spaces.
Form View Attributes in Odoo 18 - Odoo SlidesCeline George
Odoo is a versatile and powerful open-source business management software, allows users to customize their interfaces for an enhanced user experience. A key element of this customization is the utilization of Form View attributes.
History Of The Monastery Of Mor Gabriel Philoxenos Yuhanon Dolabanifruinkamel7m
History Of The Monastery Of Mor Gabriel Philoxenos Yuhanon Dolabani
History Of The Monastery Of Mor Gabriel Philoxenos Yuhanon Dolabani
History Of The Monastery Of Mor Gabriel Philoxenos Yuhanon Dolabani
Redesigning Education as a Cognitive Ecosystem: Practical Insights into Emerg...Leonel Morgado
Slides used at the Invited Talk at the Harvard - Education University of Hong Kong - Stanford Joint Symposium, "Emerging Technologies and Future Talents", 2025-05-10, Hong Kong, China.
How to Share Accounts Between Companies in Odoo 18Celine George
In this slide we’ll discuss on how to share Accounts between companies in odoo 18. Sharing accounts between companies in Odoo is a feature that can be beneficial in certain scenarios, particularly when dealing with Consolidated Financial Reporting, Shared Services, Intercompany Transactions etc.
2. Computer Programming
Computer programming is the process of
writing instructions that direct a computer to
carry out specific tasks
A computer program is a set of step-by-
step instructions that tell a computer how to
solve a problem or carry out a task
The instructions that make up a computer program
are often referred to as code
A program is written in a computer programming
language
3. Programming Languages (-1-)
A programming language is an artificial
language designed for creating instructions that a
computer can carry out
In contrast, the languages we speak [e.g., English / Urdu] are
natural languages
Programming languages differ from natural
languages in that
natural languages are used for interaction between people
programming languages allow humans to communicate
instructions to machines as well as machine-to-machine
interaction
4. Programming Languages (-2-)
Programming languages can be divided into two major
categories
Low-level languages
Require the programmer to write instructions for the lowest level of
computer’s hardware
Easy for computer to understand; Difficult for humans
Examples: Machine Language, Assembly Language
High-level languages
Makes programming process easier by providing commands such
as PRINT or WRITE instead of unintelligible strings of 1s and 0s
Examples: FORTRAN, C, C++, Java, Python …
Languages can also be categorized by generations
6. Machine Language /
Machine Code
The first languages for programming computers – sometimes
referred to as first-generation languages
A machine language consists of a set of commands,
represented as a series of 1s and 0s, corresponding to the
instruction set understood by a microprocessor
A machine language is specific to a particular CPU or
microprocessor family
High-level languages are (mostly) translated [compiled] to
machine language in order to be understood and executed by
the microprocessor
7. Example
Add the registers 1 and 2. Place the result in
register 6.
[ op | rs | rt | rd | shamt | funct ]
0 1 2 6 0 32
decimal 000000 00001 00010 00110 00000
100000 binary
Machine Language /
Machine Code
8. Assembly Language
Allows programmers to use abbreviated
command words rather than 1s and 0s used in
machine languages
A significant improvement over machine languages
Mnemonics such as ADD, SUB, MUL, DIV, JMP etc are
more understandable than 0001, 0100 etc
Also referred to as second-generation languages
Assembly languages are also machine specific
Each assembly language command corresponds on a
one-to-one basis to a machine language instruction
9. Assembly Language
Example 1
Add 10 to the variable MARKS
ADD MARKS, 10
Example 2
Transfer the value 10 to the AL register
MOV AL, 10
10. High-level languages
C/C++, JAVA, BASIC and etc.
Similar to everyday English,
Use mathematical notations
Example 1
Add 10 to the variable MARKS
MARKS = MARKS + 10;
Example 2
Assign the value 10 to the variable A, value 20 to variable B,
add them and store the results in variable C
A = 10; B = 20;
C = A + B;