Languages And Environments Flashcards

1
Q

What are the main differences between natural languages and programming languages?

A

Natural languages have more complex syntax rules and can be more ambiguous

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Why do many types of high level programming language exist?

A

HLL’s are often written to solve particular types of problem

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Define sequence

A

All commands will be executed one after the other unless otherwise directed

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Define Selection

A

Lines of code are executed based on whether a condition is true or not

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Define Iteration

A

Iteration is when a set of commands is repeated a set number of times. Often known as a loop.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is meant by programming languages being problem oriented?

A

When code is written with particular people in mind

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Give two reasons for the development of object-oriented languages

A

Increasing complexity of programs caused problems in managing and maintaining them

GUI environments cannot be programmed by the constructs of conventional environments

Use of global variables meant that it became more and more difficult to keep errors from occurring where it was changed accidentally

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Define the term Instance

A

Each object created during the execution of an object-oriented program
New objects will have a copy of the data required to define the object and may inherit data defined in other classes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

When is object oriented programming commonly used and why?

A

In programs which model real-life situations because objects can be created, destroyed and modified just as they would in reality.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly