You are on page 1of 3

Q1: MCQ’S

1. C
2. B
3. B
4. A
5. B
6. B
7. C
8. C
9. D
10. A

Q2: True / False

1. True
2. False
3. True
4. False
5. True

Q3: Definitions

1. Application Generators: Application generators are used for business information systems, but
often only for creating prototypes that are later reprogrammed in a language such as C/C++ or
Java. As computers run faster, they are capable of absorbing the excess code generated by
higher-level products.
2. Orthogonality: Orthogonality in a programming language means that a relatively small set of
primitive constructs can be combined in a relatively small number of ways to build the control
and data structures of the language. It is associated with simplicity; the more orthogonal the
design, the fewer exceptions.
3. Implementability: This is the efficiency with which a translator can be written for example
algorithm as designed was stack based but computers at the time didn’t have stack as part of
the architecture.
4. Open source: A software for which the original source code is made freely available and may be
redistributed and modified according to the requirement of the user.
5. Object Orientation: Object-oriented programming is a programming paradigm based on the
concepts of “objects” which can contain data (attributes) and code (methods).
6. Interpreter: An interpreter is a program which also converts a high-level programming language
into machine code.
Q4: Differences

a)

C++ Vs Python

C++ Python

1, C++ tends to have large lines of code Python have less line of code

2, C++ has a stiff learning curve as it has lots of Python is easy to remember almost similar to
predefined syntaxes and structure human language

3, C++ doesn’t support garbage collection Python support garbage collection

4, C++ is statically typed. Python is dynamically typed

b) Imperative programming V/s Declarative programming

Imperative programming Declarative programming


1, Imperative programming is like how you do Declarative programming is more like what you
something. do.
2, Imperative programming is a programming Declarative programming is a programming
paradigm that uses statements that change a paradigm that expresses the logic of a
program’s state. computation without describing its control flow.
3, Structured programming, procedural Logic programming and functional programming.
programming, and modular programming
4, Many side effects. No side effects.

Q5: Outputs

a) O
1

b) true
c) [‘apple’, ‘banana’, ‘cherry’]
d) 1, 8
2, True

You might also like