Programming Languages Flashcards

1
Q

Second-generation : Assembly language

A

A mnemonic system for representing machine instructions
+Mnemonic names for op-codes
+Program variables or identifiers : Descriptive names for memory locations, chosen by the programmer

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

Assembly Language Characteristics

A

One-to-one correspondence between machine instructions and assembly instructions
+Programmer must think like the machine
Inherently machine-dependent
Converted to machine language by a program called an assembler

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

Third Generation Language

A

Uses high-level primitives
Machine independent (mostly)
Examples : FORTRAN, COBOL
Each primitive corresponds to a sequence of machine language instructions
Converted to machine language by a program called compiler

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

Fourth Generation Language

A

There is no obvious difference between 3. and 4. gen PLs
Process is short
Spelled as Fourth GL (“procedural language”)
Each step is defined and executed
Fourth GLs has own query languages
+SQL (structured query language)
Screen painter/designer
Application generators
Report generators

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

Procedural Units*

A

Many terms for this concept :
-Subprogram, subroutine, procedure, method, function
Unit begins with the function’s header
Local vs. Global Variables
Formal versus Actual Parameters
Passing parameters by value versus reference

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

Program design aims

A

Reliability
Maintainability
Portability
Readability
Performance
Storage Saving

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

Basic Coding Principles

A

Declarations : Yeterince uzun ve anlamlı değişken adları
Indentation : Girintili yazı yazma
Structures : Appropriate structures should be used
Length :Subprograms in the program must be arranged in managale lengths
Descriptions :Tanımlayıcı bilgiler programda yazmalı

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

Translators

A

Assembler : A program that transfers assembly language into machine code

Compiler : A program that translates a high-level language into a machine-oriented language, pften machine code

Interpreter : A program which translates and executes each source statement in logical sequence as the program is executed

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

Compiler

A

Controls all program in one step
Checks lexical and syntatical errors
If no error is found, then the program is converted into object code
The object code is converted to executable code

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

Interpreter

A

Checks all program statement by statement
All statements in a loop are converted repeatedly
Slow…

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

Objects and Classes

A

Object : Active program unit containing both data and procedures

Class : A template from which onjects are constructed

An object is called an instance of the class

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

Components of an Object

A

Instance Variable : Variable within an object
+Holds information within the object
Method : Procedure within an object
+Describes the actions that the object can perform
Constructor : Special method used to initialize a new object when it is first constructed

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

Object Integrity

A

Encapsulation : A way of restricting access to the internal components of an object
+Private
+Public

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

Inheritance and Polymorphism

A

Inheritance : Allows new classes to be defined in terms of previously defined classes

Polymorphism : Allows method calls to be interpreted by the object that recieves the call

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

Programming Concurrent Activities

A

Parallel (or Concurrent) processing : simultaneous execution of multiple processes
+True concurrent processing requires multiple CPUs
+Can be simulated using time-sharing with a single CPU

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

Controlling Access to Data

A

Mutual Exclusion : A method for ensuring that data can be accessed by only one process at a time

Monitor : A data item augmented (artırılmış biliş) with the ability to control access to itself

17
Q

Declarative Programming

A

Resolution : Combining two or more statements to produce a new statement (that is a logical consequence of the originals)
+Example (P or Q)and (R or Q’) resolves to (P or R)
+Resolvent : A new statemnt deduced by resolution
+Clause form : A statement whose elementary components are connected by the Boolean operation “or”

Unification : Assigning a value to a varible so that two statements become “compatible”

18
Q

Rust

A

Rust is a multi-paradigm, general-purpose programming language. Rust emphasizes performance, type safety, and concurrency

To simultaneously enforce memory safety and prevent concurrent data races, Rust’s “borrow checker” tracks the object lifetime of all references in a program during compilation

Rust is popular for systems programming but also offers high-level features including some functional programming constructs.

Rust has been noted for its growth as a newer language and has been the subject of academic programming languages research

Note : Also, we can say GO programming language using for these aims