C++ Programming
Training
Assignment
1
Session 1 & 2
1. What is Programming Language?
A programming language is a vocabulary and set of grammatical rules for
instructing a computer or computing device to perform specific tasks
2. What are the types of Programming Language?
there are four major types of programming paradigms; namely: Imperative,
Functional, Logical and Object-Oriented
3. Fill in the gaps:
a. Computer can only understand low level language, which is generally
known as machine language.
b. A compiler is a computer program that translates code written in a high
level language to a low level language.
4. What are the benefits of High Level Programming Language?
High-level languages are programmer-friendly. They are easy to write, debug
and maintain. It provides a higher level of abstraction from machine languages.
It is a machine-independent language
5. Why should you write a program in a high level language rather than a machine
language?
The main advantage of high-level languages over low-level languages is that
they are easier to read, write, and maintain. Ultimately, programs written in a
high-level language must be translated into machine language by a compiler
or interpreter
6. List the programming languages you know.
C++, Java, C and many more
7. What is a Program?
A program is a set of instructions that a computer follows in order to perform a
particular task.
8. What is Programming Paradigm?
2
A programming paradigm is a style, or “way,” of programming. Some
languages make it easy to write in some paradigms but not others
9. What are the types of Programing Languages based on Programming Paradigm?
Logical.
imperitive
Functional.
Object-Oriented.
10. What is the difference between -
a. Imperative and Declarative Programming Language
Declarative programming is a programming paradigm … that
expresses the logic of a computation without describing its control flow.
Imperative programming is a programming paradigm that uses
statements that change a program's state.
b. Functional, Object-Oriented, & Procedural Programming
Object oriented programming can be described as a programming
model which is based upon the concept of objects. Objects contain data in
the form of attributes and code in the form of methods. In this model of
programming, computer programs are usually designed using the concept
of objects that interact with real world.