Languages And Environments Flashcards Preview

Computing Prelim > Languages And Environments > Flashcards

Flashcards in Languages And Environments Deck (9)
Loading 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

2
Q

Why do many types of high level programming language exist?

A

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

3
Q

Define sequence

A

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

4
Q

Define Selection

A

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

5
Q

Define Iteration

A

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

6
Q

What is meant by programming languages being problem oriented?

A

When code is written with particular people in mind

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

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

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.