Page 290 - AI Ver 1.0 Class 10
P. 290
Human Language Vs Computer Language
Humans Language is the language used by humans to interact with the people around them. It is a language made
up of syntax and semantics which is also known as the grammar of a language which forms the words arranged in
a proper order to make a meaningful sentence.
Humans interact using different languages like English, Hindi, Spanish, German etc. For example, in English we
use nouns, pronouns, verbs, adjectives and many more parts of speech to make a proper sentence used in speech
or textual conversation. This conversation applied with their experience and knowledge of the past will form an
intellectual conversation between two sensible people. Over the time these human languages evolve and develop
and new words add up in the dictionary based on their usage in specific places.
Communication using a language in terms of sound travels to the human brain through our ears. The sound travels
through the eardrum and gets transported to the brain in the form of a nerve impulse. This impulse is processed
by the brain and interpreted to generate the response which makes a human react to the situation.
Computer Language is a language used by the programmers
Human Language Machine Language
to develop a computer program which helps humans to
interact with an electronic device-computer. The Central
2 + 3 1011010100
Processing unit is the brain of the computer and it interprets
the instructions given to the computer. The response of the 5 110100101
computer is in terms of the output or the execution of the
instruction.
Converter
The computer interacts in the form of a Binary Language.
This language is the language of 0’s and 1’s. This language has its own disadvantages and is quite difficult for
humans to interact using binary numbers. So, keeping in mind this nature of interaction with the computer, other
programming languages are now available that are closer to human language. Some of the examples of Computer
Languages are Java, C++, Python etc.
Every computer language has its own syntax and semantics which needs to be followed strictly otherwise the
computer gives an error and further processing of the task will not be done.
Syntax and Semantics of a Language
The proper arrangements of words in a sentence or a statement makes the syntax of a language.
Semantics refers to the meaning of the word in a sentence which helps in interpreting the proper message of the
complete structure of words.
Analogy with the Programming Language
In any programming language we come across few statements where we have:
• Different syntax but same meaning:
print10+20) #is same as print(20+10)
print(2*“hello”) #is same as print(“hello”*2)
288 Touchpad Artificial Intelligence-X

