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

C++ Programming Training - Assignment - Session 12

This document provides an introduction to programming languages and paradigms. It discusses that a programming language allows humans to instruct computers through a vocabulary and set of rules. There are four main programming paradigms: imperative, functional, logical, and object-oriented. High-level languages are easier for humans to write and maintain than low-level machine languages, though compilers must translate high-level code into machine instructions. Programs are sets of instructions that computers follow to perform tasks, and programming paradigms define different styles or "ways" of programming based on concepts like objects, logic, or procedures.

Uploaded by

Aditya D
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
29 views

C++ Programming Training - Assignment - Session 12

This document provides an introduction to programming languages and paradigms. It discusses that a programming language allows humans to instruct computers through a vocabulary and set of rules. There are four main programming paradigms: imperative, functional, logical, and object-oriented. High-level languages are easier for humans to write and maintain than low-level machine languages, though compilers must translate high-level code into machine instructions. Programs are sets of instructions that computers follow to perform tasks, and programming paradigms define different styles or "ways" of programming based on concepts like objects, logic, or procedures.

Uploaded by

Aditya D
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

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.

You might also like