Programming languages

Programming languages

memorize.aimemorize.ai (lvl 286)
Section 1

Preview this deck

Class

Front

Star 0%
Star 0%
Star 0%
Star 0%
Star 0%

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Active users

0

All-time users

0

Favorites

0

Last updated

6 years ago

Date created

Mar 1, 2020

Cards (30)

Section 1

(30 cards)

Class

Front

• Template from which objects are constructed • Includes descriptions of both varibles and methods(functions)

Back

Concurrent processing

Front

Simultaneous execution of multiple processes

Back

Q: Vad är en funktion i ett programmeringsspråk?

Front

En avskild del av ett program(ett delprogram i programmet) bestående av ett antal instruktioner för att utföra en specifik uppgift och som kan användas av andra delar av programmet

Back

Concurrent programming

Front

• Concurrent processing • Parallel processing • Thread

Back

Literal

Front

Value of some(specified) type(3.14, A)

Back

Parallel processing

Front

Parallel execution of multiple processes, which requires multiple CPU cores

Back

Aggregate type(data structure)

Front

Struct/record - block of data where different elements can have different types

Back

Thread

Front

Concurrent/parallel execution path within the same program/process(light-weight process within a process)

Back

Object

Front

• Active program unit containing both data and code • Called a instance of the class, from which it is constructed

Back

Features

Front

• inheritance • encapsulation • polymorphism

Back

Procedural Units

Front

• Subprogram, subrutine, procedure, function, method, predicate • Used to simplify program development by abstraction

Back

Constant

Front

Named literal (const PI= 3.14)

Back

First-generation

Front

Machine languages

Back

Programming paradigms

Front

• Functional • Object-oriented • Imperative • Declarative

Back

Compiler

Front

Converts third generation language to machine language

Back

Third generation languages

Front

• Uses high-level primitives • Machine independent • Each primitive corresponds to a sequence of machine language instructions • Compiler • Early examples: FORTRAN, COBOL

Back

Array(data structure)

Front

Block of data where all elements are of the same typ

Back

Functional

Front

Basic building block: functions • lisp, ML, Scheme

Back

Translation process

Front

Source program —> Lexical analyzer —> Parser —> Code generator —> Object program

Back

Declarative

Front

• Logic programming - basic building block: logical formulas • Sql, prolog

Back

Imperative

Front

Basic building block: procedures • Python, C

Back

Object-oriented

Front

Basic building block: objects • Java, C++

Back

Second generation: assembly languages

Front

• A mnemonic system for representing machine instructions: mnemonic names for op-codes. Descriptive names for memory locations(variables) chosen by the programmer • One-to-one correspondence between machine instructions and assembly instructions • Inherently machine-dependent • Assembler

Back

Control

Front

• Sequence (first do this, then do this) • Selection (if:condtion,else:) • Repetition(while) • Every algorithm can be implemented using these basic constructs

Back

Assembler

Front

Converts assembly language to machine language

Back

Operation

Front

Variable assignment

Back

Variable

Front

Namned location in primary memory, which can store a value

Back

Object oriented programming

Front

• Class • Object • Features

Back

Primitive data types

Front

• Integer • Float • Character • Boolean

Back

Logic programming

Front

• Program consists of logical formulas in the form of rules and facts • There is no distinction between code and data • Built-in deduction engine using a derivation technique called resolution • Answer questions whether a facit is a logical consequence of the program or not

Back