Types of Programming Language

studied byStudied by 0 people
0.0(0)
Get a hint
Hint

What are programming paradigms?

1 / 11

12 Terms

1

What are programming paradigms?

Different approaches to using a programming language to solve a problem.

New cards
2

Which two broad categories are programming paradigms split into?

- Imperative
- Declarative

New cards
3

State the advantages of procedural programming

- Can be applied to a wide range of problems.
- Relatively easy to write and interpret.

New cards
4

State a use of declarative programming

- Expert Systems/ Knowledge-based Systems.
- Artificial Intelligence.

New cards
5

Identify the four main programming structures used in structured programming.

- Sequence
- Selection
- Iteration
- Recursion

New cards
6

How does assembly language differ from machine code?

Assembly language uses mnemonics rather than binary. One line in assembly language is equal to one line in machine code.

New cards
7

What is the function of the STA mnemonic?

Storing the value in the Accumulator at the given memory address.

New cards
8

What is the function of the BRP mnemonic?

Branches to a given address if the value in the Accumulator is positive. It is a conditional branch.

New cards
9

State the function of the opcode and operand.

The opcode specifies the instruction to be performed and the addressing mode. The operand holds a value which is related to the data on which the instruction is to be performed.

New cards
10

State four addressing modes.

- Immediate Addressing
- Direct Addressing
- Indirect Addressing
- Indexed Addressing

New cards
11

What is a class?

A template for an object that defines the state and behaviour of an object. An object is an instance of a class.

New cards
12

Give one disadvantage of Object Oriented Languages.

- Requires a different style of thinking which can be difficult for programmers accustomed to other paradigms to pick up.
- OOP may not be suited to all types of problems.
- Generally unsuitable for smaller problems.

New cards

Explore top notes

note Note
studied byStudied by 6 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 9 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 8 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 5247 people
Updated ... ago
4.9 Stars(22)
note Note
studied byStudied by 6 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 13 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 9 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 14 people
Updated ... ago
5.0 Stars(2)

Explore top flashcards

flashcards Flashcard136 terms
studied byStudied by 2 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard27 terms
studied byStudied by 1 person
Updated ... ago
5.0 Stars(1)
flashcards Flashcard38 terms
studied byStudied by 2 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard328 terms
studied byStudied by 2 people
Updated ... ago
5.0 Stars(2)
flashcards Flashcard21 terms
studied byStudied by 13 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard58 terms
studied byStudied by 21 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard118 terms
studied byStudied by 125 people
Updated ... ago
5.0 Stars(4)
flashcards Flashcard118 terms
studied byStudied by 29 people
Updated ... ago
5.0 Stars(1)