0% found this document useful (0 votes)
5 views

Introduction To Programming

Presentation1

Uploaded by

sumaiyakorabu
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views

Introduction To Programming

Presentation1

Uploaded by

sumaiyakorabu
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 11

Introduction to Programming

[email protected]
18FLX746J5

Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
This file is meant for personal use by [email protected] only.
Sharing or publishing the contents in part or full is liable for legal action.
Agenda
• Understanding language need
• What is a Programming language?
• Components of a Programming language
• What is Grammar?
• What is Syntax?
[email protected]
18FLX746J5
• What is Semantic?
• Applications of Programming languages

Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
This file is meant for personal use by [email protected] only.
Sharing or publishing the contents in part or full is liable for legal action.
Understanding language need
Without language human connection is not possible.
We use language to share our thoughts, feelings, ideas with others.

[email protected]
18FLX746J5

Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
This file is meant for personal use by [email protected] only.
Sharing or publishing the contents in part or full is liable for legal action.
What is a Programming language?
A programming language is a computer language that a programmer (developer)
uses to communicate with a computer.
It is a set of instructions, defined by syntax (grammer), of a language ( C, C++, Java,
Python) to perform a specific task.

[email protected]
18FLX746J5

Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
This file is meant for personal use by [email protected] only.
Sharing or publishing the contents in part or full is liable for legal action.
Components of a Programming language
● Statements
○ Set of instructions, what they say about the written code!

● Variables
○ Places to hold data in memory when a program executes
[email protected]
18FLX746J5
● Syntax
○ What’s grammatically legal? It should be correct for a program to run

● Semantics
○ The meaning of the statements. What do they compute? It should be
correct to make a program work as expected

Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
This file is meant for personal use by [email protected] only.
Sharing or publishing the contents in part or full is liable for legal action.
What is Grammar?
• It is a finite set of formal rules for generating syntactically correct sentences or
meaningful correct sentences.

– Examples:
• print(“hello world”)
[email protected]
18FLX746J5
• for i in range(1, 100):
print(i, end= ‘ ’)

Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
This file is meant for personal use by [email protected] only.
Sharing or publishing the contents in part or full is liable for legal action.
What is Syntax?
• In linguistics, syntax is the study of how the words and phrases are combined to
form the meaningful sentence.

• Examples of syntactically sentences in english:


– Programming is the process of creating set of instructions to tell to a computer
to perform a task
[email protected]
18FLX746J5
– Syntactically code sentences in programming :
x = 10
print(x, end = ‘ ’)

Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
This file is meant for personal use by [email protected] only.
Sharing or publishing the contents in part or full is liable for legal action.
What is Semantics?
• Semantics refers to the meaning associated with any statement in the programming
language.
• Examples:
1. Meaningful Code:
x = 10
[email protected] print(x, end = ‘ ’)
18FLX746J5

2. Semantically incorrect code:


import sys

if __name__ == “__main__”:
sys.exit(0)
print(“Hello, World!”)
Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
This file is meant for personal use by [email protected] only.
Sharing or publishing the contents in part or full is liable for legal action.
Applications of Programming languages
• Create a web application for various business requirements.
• Create a Machine Learning model and make prediction based on analysis of past
data.
• Automate manual tasks to reduce errors and increase throughput, thereby an
increase in profitability.
[email protected]
18FLX746J5

Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
This file is meant for personal use by [email protected] only.
Sharing or publishing the contents in part or full is liable for legal action.
Summary
• We understood the importance of a programming language in computers.
• Understood the structure of a programming language.
• Learned about various applications of programming languages.

[email protected]
18FLX746J5

Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
This file is meant for personal use by [email protected] only.
Sharing or publishing the contents in part or full is liable for legal action.
[email protected]
18FLX746J5

Thank You

Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
This file is meant for personal use by [email protected] only.
Sharing or publishing the contents in part or full is liable for legal action.

You might also like