Languages and Environments Flashcards

1
Q

What two reasons are there for not programming in a natural language?

A
Ambiguity
Complex Syntax (i.e. Grammar)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are the three features of a High Level Language?

A

Sequence
Selection - CONDITIONS
Iteration - LOOPS

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

What are the three types of high level languages?

A

Procedural
Declarative
Object Orientated

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

Name types of Procedural Languages

A

COMAL
PASCAL
VB

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

What are the three basic constructs to control order of execution in a procedural language

A

Sequence
Selection - CONDITIONS
Iteration - LOOPS

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

Name a type of Declarative language

A

Prolog

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

What are the three basic constructs in a declarative language

A

Facts
Rules
Queries

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

Why use rules in dec. langauges

A

Allows you to add new information on existing facts without having to enter each fact again

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

What are the three main concepts in an 00 language

A

Objects/Classes
Encapsulation
Inheritance

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

Three main aspects of a UML class diagram

A

Class Name
Properties
Methods

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

What are three advantages of using Object Oriented Language

A

Instantiation
Inheritance
Error Tracing

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

What is the name given to a subroutine in an object-orientated program

A

Method

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

State 4 benefits of using a rule in a declarative language

A

Adds information based on other facts
Reduced repetition of facts, reduced code
Facilitates queries
Use of variables allow values to be returned

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