Programming Languages Flashcards
1
Q
Define High-Level Language
A
user-oriented
2
Q
Define Low-Level Language
A
- machine-oriented
- processor defined
- no built-in functions
- can access specific registers
3
Q
Define Imperative High Level languages
A
- Procedural
- List of Instructions
4
Q
Define Declarative Languages
A
- Defines problem to be solved
e. g. SQL, Haskell
5
Q
Define OOP
A
- Objects and Classes
- Define data and instructions to manipulate the data
6
Q
Define opcode
A
specifies which operation the processor should perform
7
Q
Define operand
A
- value
- can be actual piece of data or memory reference
8
Q
Advantages of High-Level
A
- Much easier to write
- Portable
- Libraries
9
Q
Advantages of Low-Level
A
- High needs to be translated into machine code
- Can use specific registers
- Better for limited memory (resources used efficiently)
10
Q
Disadvantages of Low-Level
A
- More Difficult
- Not Portable (Machine/Instruction Set Specific)
- No Libraries
11
Q
Define Processor Instruction Set
A
- Defines instructions that can work with a specific processor
- Word Size = number of bits a processor handles as a single unit
12
Q
Define Addressing Mode
A
- Part of opcode
- Specifies the way the operand will be interpreted
- Value or Memory location
13
Q
Define Immediate Addressing
A
-Actual Value
14
Q
Define Direct Addressing
A
-Memory Address
D
15
Q
Define Indirect Addressing
A
-Address which holds address to where data is stored