1.2.4 Types of Programming Languages Flashcards
1
Q
What are programming paradims?
A
- Different approaches to using a programming language to solve a problem .
2
Q
What are the two broad catagories of programming paradims?
A
- Imperative
- Declarative
3
Q
What is an imperative programming paradims?
A
- Use code that clearly specifies the actions to be performed .
4
Q
What are the types of imperative programming paradigms?
A
- Procedural
- Object-oriented
5
Q
What is a procedural programming paradigmn?
A
- Uses a sequence of
instructions which may be contained within procedures. - These instructions are carried out in a step-by-step manner .
6
Q
What are the advantages of procedural programming paradigmn?
A
- Applied to a wide range of problems
- Easy to write and interpret
7
Q
What is Object-Oriented programming (OOP) paradigmn?
A
- Built on entities called objects formed from classes which have
certain attributes and methods .
8
Q
Advantages of Object Orriented programming ?
A
- Designs code that is resuable
- Easy to update and maintain
9
Q
What is a declaritive programming paradigmn?
A
- Focuses on stating the desired
result rather than the exact series of instructions that need to be performed to get to the result. - To determine how best to obtain the
result - Details about how it is obtained are abstracted from the user .
- Common in expert systems and artificial intelligence
10
Q
What are the types of declaritive programming paradigms?
A
- Functional
- Logic
11
Q
What is functional programming?
A
- Uses the concept of reusing a set of functions.
- Programs are made up of lines of code consisting of function calls.
12
Q
What is logic programming paradigms?
A
- Use code which defines a set of facts and rules based on the problem.
- Queries are used to find answers to problems.
13
Q
What are the features of a procedural language?
A
- Sequencing
- Selection
- Iteration
- Recursion
14
Q
What is assembely language?
A
- The next level up from machine code
and is part of a family of low level languages. - Converted to machine code using an assembler when it is executed.
15
Q
Features of assembly language
A
- Uses mnemonics rather than binary,
which makes it easier to use than direct machine code. - Each mnemonic is represented by a numeric code .
- Commands that assembly language uses are processor-specific.
- This allows for direct interaction with
hardware so is useful in embedded systems. - Each instruction in assembly language is equivalent to almost one line of
machine code.