Lecture 01 Flashcards

1
Q

Scientific applications

A

Large numbers of floating-point computations; use of arrays

Fortran (Formula Translating System, IBM)

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

Business applications

A

Produce reports, use decimal numbers and characters

COBOL (COmmon Business-Oriented Language)

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

Artificial intelligence

A

Symbols rather than numbers manipulated; use of linked lists

LISP (LISt Processing)

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

Systems programming

A

Need efficiency because of continuous use

C

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

Web Software

A

eclectic collection languages: markup HTML, scripting PHP, general purpose Java

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

Machine languages

A

Hardware implemented languages.

Set of the instructions of a processor.

Machine code is usually written in hexdecimal numbers.

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

Assembly languages

A

machine codes are wrapped with alphanumeric symbols so that the instructions are more
readable.

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

High-level languages:

A

languages that are machine independent

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

System programming languages:

A

differ from application
programming languages

web authoring, database,
or scientific computing

for I/O, memory processor, drivers, OS

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

Scripting languages

A

transform a large amount of regular textual information.

Python, PHP, etc

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

Domain-specific languages:

A

unlike general purpose
languages, they are used in highly special-purpose
areas only,

e.g., PostScript - vector graphics

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

Procedural

A

program is built from one or more procedures

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

Functional

A

Main means of making computations is by applying functions to given parameters like Haskell, LISP…

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

Logic

A

Rule-based like ProLog

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

Imperative languages:

A

computing tasks are defined as sequences of commands
(statements) for the computer to perform.

program in such language tells computer what to do step-by step

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

Declarative languages

A

in which programs describe their desired results without explicitly
listing commands or steps that must be performed.

– functional and logical programming languages belong to this category.

17
Q

Most Influential Languages

A

FORTAN - Scientific Computing.

COBOL - Business Data Processing.

Algol - Overcome problems of FORTRAN.

Pascal - Descendant of Algol intended to be more efficient and to compete with Fortran as General Purpose Language.

18
Q

Fortran

A

Fortran (Formula Translation) is first well-known high level language.

19
Q

Fortran Development Goals

A

The developmemnt goals:

To lower costs involved with programming and debugging.

To compete with hand-coded assembly language programs in terms of execution speed.

20
Q

Early Features of Fortran

A

Assignments, DO loops, , three-way arithmetic IF statements, GOTO statements;

integers, reals, arrays (and very basic string handling)

21
Q

Fortran Source Code Format

A

Fortran source code has strict source code format.

*Early programs were entered on a keypunch keyboard onto 80 column punched cards. Each card records one line of code.

22
Q

TPK Algorithm

A

designed by Trabb Pardo
and Knuth in 1970s purely for illustration
purpose:

– reads 11 numbers (from the keyboard), storing them
in an array;

– processes the array in reverse order, applying a
mathematical function to each value, and for each
resulted value:

– reports the value or a message saying the value is
too large.

23
Q

Characteristics of Fortran

A

Reflecting punched card input practice, Fortran programs were
originally written in a fixed column format.

24
Q

COBOL

A

Created at the
end of the 1950s by a committee of the US Dept of Defense.

designed for business data processing rather than for
scientific computing