Midterm Ready Flashcards
(152 cards)
What are the reasons for studying concepts of programming languages?
Increased ability to express ideas, Improved background for choosing appropriate languages, Increased ability to learn new languages, Better understanding of significance of implementation, Better use of languages that are already known, Overall advancement of computing
Name a programming language commonly used for scientific applications.
Fortran
Which language is primarily used for business applications?
COBOL
What is the main focus of artificial intelligence programming languages?
Symbols rather than numbers manipulated; use of linked lists
Identify a programming language used in systems programming.
C
What are the categories of programming languages?
Imperative, Functional, Logic, Markup/programming hybrid
List the evaluation criteria for programming languages.
- Readability
- Writability
- Reliability
- Cost
Define readability in the context of programming languages.
The ease with which programs can be read and understood
What does writability refer to in programming languages?
The ease with which a language can be used to create programs
What is meant by reliability in programming languages?
Conformance to specifications (i.e., performs to its specifications)
What is the ultimate total cost in programming languages?
Cost
Fill in the blank: The ease with which programs can be moved from one implementation to another is called _______.
Portability
What is the influence of computer architecture on programming languages?
Languages are developed around the prevalent computer architecture, known as the von Neumann architecture
What are the components of the fetch-execute cycle in the von Neumann architecture?
- Initialize the program counter
- Fetch the instruction pointed by the counter
- Increment the counter
- Decode the instruction
- Execute the instruction
What did programming methodologies evolve from in the 1950s and early 1960s?
Simple applications; worry about machine efficiency
What is a characteristic of imperative programming languages?
Central features are variables, assignment statements, and iteration
True or False: Functional programming languages compute by applying functions to given parameters.
True
What is the main purpose of hybrid implementation systems?
A compromise between compilers and pure interpreters
Define the term ‘compilation’ in programming.
Translate high-level program (source language) into machine code (machine language)
What are the phases of the compilation process?
- Lexical analysis
- Syntax analysis
- Semantics analysis
- Code generation
What is the von Neumann bottleneck?
The connection speed between a computer’s memory and its processor determines the speed of a computer
What is the main disadvantage of pure interpretation?
Slower execution (10 to 100 times slower than compiled programs)
What does the term ‘load module’ refer to?
The user and system code together
What is the purpose of linking and loading in programming?
The process of collecting system program units and linking them to a user program