1.2.4. Types of Programming Language: 1.2 Software and Software Developments: Computer Science A-Level OCR

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/11

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

12 Terms

1
New cards

What are programming paradigms?

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

2
New cards

Which two broad categories are programming paradigms split into?

- Imperative

- Declarative

3
New cards

State the advantages of procedural programming

- Can be applied to a wide range of problems.

- Relatively easy to write and interpret.

4
New cards

State a use of declarative programming

- Expert Systems/ Knowledge-based Systems.

- Artificial Intelligence.

5
New cards

Identify the four main programming structures used in structured programming.

- Sequence

- Selection

- Iteration

- Recursion

6
New cards

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.

7
New cards

What is the function of the STA mnemonic?

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

8
New cards

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.

9
New cards

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.

10
New cards

State four addressing modes.

- Immediate Addressing

- Direct Addressing

- Indirect Addressing

- Indexed Addressing

11
New cards

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.

12
New cards

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.