Midterms Flashcards
Easy to learn due to the similarity to the human language.
Human Friendly Programing Language
Easy to understand
User Friendly
1st Generation Programming Language
1950’s
Machine Language
2nd Generation Programming Language
Mid 1950’s
Assembly Language
3rd Generation Programming Language
1960’s to 1970’s
High Level
3rd Generation Programming Language
FORTRAN, BASIC, COBOL
4th Generation Programming Language
Very High Level Programming Languages
ex: Python, Ruby
5th Generation Programming Language
Very closely resemble human speech
6th Generation Programming Language
Very high level programming programming language with extreme abstraction.
6th Generation Programming Language
No code, more on visual development
5th Generation Programming Language
Designed to make computer smarter
5th Generation Programming Language
Mercury, PROLOG, LISP
Paradigm of programming Language
the pattern of the PL in modeling and solving problems.
Describes “how” the program solves the problem through step by step statements.
Imperative Programming
Follows a sequence of statements or commands.
ex: FORTRAN, C, C++, PASCAL, BASIC
Procedural Programming
Breaks the program into objects, a collection of data and code.
ex: Javq, Python, PHP, RUBY
Object Oriented Programming
Describe “what” the program does, without explicitly specifying the steps.
Relies heavily on pure mathematics
Functional Programming
Uses a system of formal logic .
Uses a series of rules to instruct the computer on what to do.
ex: PROLOG, DATALOG, ALICE
Logic Programming
APPLICATIONS OF PROGRAMMING LANGUAGES
- Develop systems and OS
- Used for general purposes
- Applied in many aspects in AI
- Applied in scientific computation
- Used in text or data programming
The process of converting the source code to machine code for the computer to understand.
Compilation
Converts code to be readable or understandable
Interpretation
4 CRITERIA FOR A GOOD PROGRAMMING LANGUAGE
- Readability
-Writability - Reliability
- Cost Effective
IntelliSense
Completes the syntax and detect syntax errors.
Rule of how a PL is constructed
Syntax
Instructions or behavior of the statements or in short the “meaning”
Semantics
implementation or the context
Pragmatics
Set of special characters.
ex: A-Z, 0-9, ; , : and etc.
Character Set
Keywords or variables.
ex: int, string, bolean
Identifiers
- not readable by the code
- a guide or a note
- for documentation
Comments
Optional, can be or not be in your codes.
Noise Words
Sets the starting and end paths.
ex: (), {}, []
Delimiters
Condition on or of an expression.
ex: Logical Expressions - &&
Expression
- A command that performs a function.
- It is the instructions.
ex: if, do-while, try
Statement