Download Computer Languages and Syntax and more Study notes Programming Languages in PDF only on Docsity!
Worksheet -3 Subject: - Computers Class: - VI Teacher: - Mrs. Suudha Sharma Name: _________________ Class & Sec: ________ Roll No. ______ Date: 25.04.
Lesson 2: Language and Software Story
The Computer Language
A language is medium to communicate with each other. We use components (symbols,
words...) of a language according to certain rules defined by the language. This is called
syntax of a language. Each language has its own syntax. Similarly, while writing a
computer program it is important to follow this syntax, otherwise the computer will
not be able to understand our instructions. Computer languages can be classified in
the following three categories based on complexity of the language:
1. Machine Language
2. Assembly Language
3. High Level Language
1. Machine Language: Thee machine language is the
elementary language of a computer which consists of only
two digits called the Binary digits (0 and 1). The Machine
language is directly accepted and executed by the
computer.
2. Assembly Language: In this language, binary operation codes are
replaced by the Mnemonics. For example:
If in Machine language, the operation code to add is “0010”than,
In Assembly language its equivalent is ‘ADD’
Remember: Machine and Assembly languages are also called low
level languages as they are linked with the hardware.
3. High Level Language: High Level Languages (HLL)
are programming languages designed for users to
write instructions in English like statements (for e.g.:
c = a + b) rather than in the Machine Language or
using Mnemonics. FORTRAN, C and Java are few
examples of HLL. We need language translators
(compilers or interpreters) to change HLL code to
machine code so that it could be understood and
executed by the computer.
Remember: HLL are considered to be
third generation language.
Mnemonics are abbreviations or symbols, which are needed to be
translated into machine language to get executed. This is done by
the assembler.
Machine Language 0010 Assembly Language ADD High Level Language C = a + b
Now, answer the following questions:
Q.1. Write (T) for True and (F) for False against the statements:
- The Machine Language is the elementary language of the computer.
- 1 and 2 are also called binary digits.
- Learning HLL is more difficult than learning the Machine Language.
- A Compiler changes the HLL into Machine Level Language.
Q.2. Fill in the blanks:
- The Machine Level Language consists of _____________ and _____________.
- In _____________languages, you can write instructions in English like statements.
- A Compiler or an Interpreter converts HLL into _____________.
- ________is the component of language according to certain rules defined by the language.
Q.3. Answer in one word/sentence.
- Classify computer languages.
- Which computer language is the most simplest?
- Which language is directly accepted and executed by the computer?
- What are mnemonics?
Q.4. Solve the crossword using the hints given:
3 5 1
2 4
Across
- Java and FORTRAN are __________ level languages.
- This language uses mnemonics. Down
- 0 and 1 are ___________ numbers.
- Machine and Assembly languages are also called _____ level languages.
- Each language has its own ____________.