Languages and Environments Flashcards
What two reasons are there for not programming in a natural language?
Ambiguity Complex Syntax (i.e. Grammar)
What are the three features of a High Level Language?
Sequence
Selection - CONDITIONS
Iteration - LOOPS
What are the three types of high level languages?
Procedural
Declarative
Object Orientated
Name types of Procedural Languages
COMAL
PASCAL
VB
What are the three basic constructs to control order of execution in a procedural language
Sequence
Selection - CONDITIONS
Iteration - LOOPS
Name a type of Declarative language
Prolog
What are the three basic constructs in a declarative language
Facts
Rules
Queries
Why use rules in dec. langauges
Allows you to add new information on existing facts without having to enter each fact again
What are the three main concepts in an 00 language
Objects/Classes
Encapsulation
Inheritance
Three main aspects of a UML class diagram
Class Name
Properties
Methods
What are three advantages of using Object Oriented Language
Instantiation
Inheritance
Error Tracing
What is the name given to a subroutine in an object-orientated program
Method
State 4 benefits of using a rule in a declarative language
Adds information based on other facts
Reduced repetition of facts, reduced code
Facilitates queries
Use of variables allow values to be returned