ADA Flashcards

1
Q

When and who developed ADA?

A

The 80s by Cii HoneyWell/Bull Language design team

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

What type of language is ADA?

A

a Structured, Statically-Typed, Imperative, Object-Oriented, High-Level language

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

From what language did it extend from?

A

Pascal

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

For who was the language?

A

the Department of Defense

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

Who is ADA named after?

A

Ada Lovelace, the first computer programmer

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

What are the major contributions of ADA?

A
  1. Packages allow encapsulating of data objects & specifications for data types and procedures
  2. Includes facilities for exception handling
  3. Program units can be generic
  4. Provides for concurrent execution of special program units, named tasks, using the rendezvous mechanism
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Readability?

A

Good

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

Writability?

A

Sacrificed for Readability

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

Reliability?

A

Hallmark feature!!

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

Cost?

A

So-so

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

Program Structure

A

Importing of Libraries
Defining Procedures
Beginning Procedures
Main Code
Ending Procedure

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

Subprograms of ADA?

A

They are made of program units and are otherwise known as functions or procedures.

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

What about the syntax of ADA?

A

It is not case-sensitive. The statements end in semicolons. Variable declarations are in the declarative part and start with the identifier. It does not provide ++ or –. ‘:=’ is for value assignment.

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

The block delimiters for ADA are?

A

‘begin’ and ‘end’

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

What about arrays?

A

You declare types associated with the array.

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

What is the scope?

A

Static

17
Q

What about classes in ADA?

A

They are aka as tagged type. It is in the same scope as the subprogram/functions/members.

18
Q

What do objects in ADA have?

A

A Directory which is an object that is used to contain data from a database or some outside source.

19
Q

the Operator Precedence.

A

** abs not
* / mod rem
+ -(unary)
+ - &(binary)
= /= < <= > >=
and or xor

20
Q

If Statement Structure

A

if condition then
statement;
elsif condition then
statement;
else
condition;
end if;

21
Q

What do cases start with and what can they do?

A

Cases start with ‘when’ and they can be combined.

22
Q

While Loop Structure

A

while variable < 10_000 loop

end loop;

23
Q

For Loop Structure

A

for variable in 0..9 loop

end loop;

24
Q

What type of statements can you use in ADA?

A

You can use goto statements.

25
Q

How do you call functions in ADA?

A

function Five (var : Integer) return Boolean;