You are on page 1of 6

Question A: Write short answers to the following questions.

Define programming language?


Ans: An artificial language which is used to write instructions which can be translated into
machine language by using language translator is called programming language. All type of
computer programs are written in programming languages.

Differentiate between syntax and keywords?


Ans: Syntax are the rules which are used to make the structure of the program and keywords
are used to make the sentences we used keywords(vocabulary) to make the instructions of the
programs.

Define computer program?


Ans: Computer program is a set of instructions, written to perform a specific task these set of
instructions are written in a step by step procedure.

What is meant by algorithm?


Algorithm is a set of finite steps which are used to solve a particular problem and these steps
are used for the programs.

Name the two types of computer languages?


Ans: Basically, there are two types of computer languages

 Low Level Language


 High Level Language

What are low level Languages?


Ans: Low Level Language is a programming language that are close to the computer system. It is
the native language of computer.
What is machine language?
Ans: Programming language that is directly understood by computer system without any
translation is called machine language. Machine language is written only in binary code 0 and 1
which is difficult to understand by humans.

How is assembly language different from machine language?


Ans: In assembly language we use symbols which are known as mnemonics (pronounced as Ne-
Monic). Which are translated into machine language by assembler but machine language is
directly written in computer’s native language.

What are high level languages?


Ans: The computer languages which are close to the human language is known as high level
language.

Give two examples of low-level languages?


Ans: There are two examples of high-level languages.

 FORTRAN
 BASIC

Name any four high level languages?


Ans: These are the examples of high-level languages

 FORTRAN
 COBOL
 PASCAL
 C++
What is a translator? Name three types of translators.
Ans: The languages which are not machine native languages are translated into machine
languages through translator. There are three types of translator.

 Assembler
 Compiler
 Interpreter
What are the 5th generation languages?
Ans: LISP and Prolog are the examples of 5th generation languages.

What is the function of assembler?


Ans: Assembler is a computer program which is used to translate assembly language into
machine language.

What is compiler?
Ans: A compiler is a program that translates a program written in high level language to
executable machine language.

What do you know about Interpreter?


Ans: Interpreter translates each instruction, executes it and then the next instruction is
translated till the program is ended.

Question B: Differentiate between the following.

Low level language and high-level language?

Ans:
Low level language High-level language
 The computer language which is  The language which is not directly
directly executable by computer system executable by computer system is high-
is high level language. level language.
 It is machine native language.  It is close to human language.
 Symbols and Binary codes are used.  Use English like words.
 Difficult to understand for humans.  Easily understand by humans.
Assembler and Complier

Assembler Complier

 Assembler is a computer program  A compiler is a program that


which is used to translate assembly translates a program written in high
language into machine language. level language to executable
 The translated program is called as machine language.
object program.  The translated program is called as
object program.

Machine Language and Assembly Language

Machine Language Assembly Language


 Programming language that is  In assembly language we use
directly understood by computer symbols which are known as
system without any translation is mnemonics (pronounced as Ne-
called machine language. Monic).
 Machine language is written only in  Assembly language is translated into
binary code 0 and 1 which is difficult machine language which is difficult to
to understand by humans. understand by humans.

Algorithm and computer program


Computer program specific task these set of instructions
are written in a step by step
 Computer program is a set of
procedure.
instructions, written to perform a
Algorithm problem and these steps are used
for the programs.
 Algorithm is a set of finite steps
which are used to solve a particular
Questions F: Answer the following questions (Subjective questions)

Define programming languages. Describe the basic types of programming languages.


Ans: An artificial language which is used to write instructions which can be translated into
machine language by using language translator is called programming language. All type of
computer programs are written in programming languages.
Types of programming languages
There are two types of programming languages

 Low Level Language


 High Level Language

Low Level Language


A low-level language is a programming language that deals with a computer's hardware components. It
is the native language of computer. Programs written in a low-level language are directly executable
on the computer hardware without any interpretation or translation.

There are two popular examples of low-level languages

 Machine Language
 Assembly Language
Machine Language
Programming language that is directly understood by computer system without any translation
is called machine language. Machine language is written only in binary code 0 and 1 which is
difficult to understand by humans.
Assembly Language
In assembly language we use symbols which are known as mnemonics (pronounced as Ne-
Monic). Programs written in assembly code are translated into machine code by an assembler.
Assembly language is a 2nd generation language.

What are low level language? Discuss the two popular low-level languages.

You might also like