Chapt 1 - Preliminaries Flashcards
Why we study programming languages
Capacity of ____ thought is influenced by our language skills.
Abstract
Language is used to shape our thoughts in a ____ way.
Structured
One important language macro function is our ____ process.
Thought
Different types of problems are better solved by the programming language which has ___ designed fo that specific task.
Constructs
Even though most programmers will never design their own language, there are 6 general benefits to learning the core idea behind language design.
1) Increased capacity to express ideas
2) Improved background for choosing appropriate languages
3) Increased ability to learn new languages
4) Better understanding of significance of implementation
5) Better use of languages that are already known.
6) Overall advancement of computing
Knowledge of the programming language characteristics can aid the whole computing community
In general, if those who choose the languages were well informed, better languages might squueze out poorer ones.
What programming language dominated scientific computing over 60 years?
Fortran
What generally, are the language characteristic requirements for scientific applications?
Simple data structures but required large numbers of floating-point computations.
What programming language dominated business computing over the 60 years.
COBOL
What, generally, are the language characteristic requirements for business applications?
Facilities for producing elaborate reports, precise ways of describing and storing decimal numbers and character data, and the ability to specify decimal arithmetic operations
What were the most common data structures required in scientific applications?
Matrices & arrays
What were the most common control structures required in scientific applications?
Counting loops and selections
What was the first widely used progrmming language developed for AI applications?
Lisp
What are the 3 language evaluation criteria?
Readability, Writability, Reliability
What are the 9 characteristics that affect language evaluation criteria?
Simplicity, Orthogonality, Data types, Syntax design, Support for abstraction, Expressivity, Type checking, Exception handling, Restricted aliasing.
What are the 4 characteristics that impact readability?
Simplicity, Orthogonality, Data types, Syntax Design
What are the 6 characteristics that affect writability?
Simplicity, Orthogonality, Data types, Syntax Design, Support of abstraction, Expressivity
One of the most importan criteria for judging a programming language is the ease with which programs can be read and understood is known as ___.
Readability
___ must be considered in the context of the problem domain. For example, if a program that describes a computations is written in a language not designed for such use the program may be unnatural and convuluted.
Readability
___ ___ of a programming language strongly affects its readability. A language with a large number of basic constructs is more difficult to learn than one with a smaller number.
Overall Simplicity
___ ___ , a complicating characteristic of a programming languages, having more than one way to accomplish a particular operation.
Feature Multiplicity
___ ___ is a potential problem in which a single operator symbol has more than one meaning.q
Operator overloading
___ in a programming language means that a relatively small set of primitive constructs can be combined in a relatively small number of ways to build the control and data structures of the language without EXCEPTION.
Orthogonality