03 Reading/Types of programming (Eng., Progr.)

The main types (approaches) of programming are :

·       Procedural - a set of instructions in order with functions/procedures used to divide code into useable pieces. This makes it easier to reuse code, reduce the amount of repetitive code, and manipulate data. Most early including Assembler, Basic, Pascal, C, Assembler are procedural. These languages (especially in the form of C are still in significant use today from Operating systems to applications.

 

·       Object Oriented - an extension of procedural where functionality and data are deliberately grouped together. ocuses on the objects that developers want to manipulate rather than the logic required to manipulate them. This of programming is well suited for software that is large, complex and actively updated or maintained. This includes programs for manufacturing and design, as well as mobile applications. Heavily used today in everything from Operating Systems to data science - languages include C++, C#, Python

 

·       Functional - applications are defined in the form of functions which transform data from one ‘value’ to another - very similar to mathematical functions A languages include Scheme, Lisp, Haskell. Used in application development and other spheres.

 

The principles of functional programming

 

1.   Pure functions

2.   Recursion

3.   Referential transparency

4.   Functions are First-Class and can be Higher-Order

5.   Variables are Immutable

 

Pure functions are easier to understand because they don’t change any states and depend only on the input given to them. Whatever output they produce is the return value they give. Their function signature gives all the information about them i.e. their return type and their arguments.

 

·       Declarative - characterized by statements which declare precisely the changes that need to be made - The key example here is SQL - used heavily in RDBMS - and applications with large data volumes.

 

Other types (approaches) include :

·       Event driven - where a program is defined in terms of it’s responses to a number of different events - examples include Visual Basic and LSL (used in the Second-life Virtual World). Also many GUI toolkits will transform procedural or OOP languages applications into an event driven form.

Додано: 29 квітня 2025
Предмет: Англійська мова, 11 клас
14 запитань
Запитання 1

Choose the right answer:

варіанти відповідей

There are five maim types of programming.

There are four maim types of programming.

There are a lot of types of programming.

There are two maim types of programming.

Запитання 2

Choose the right answer:

варіанти відповідей

Procedural, client-oriented, functional, declarative.

Procedural, object-oriented, imperative, declarative.

Procedural, object-oriented, functional, declarative.

Procedural, objective, functional, declarative.

Запитання 3

Complete the sentence: Procedural one...

варіанти відповідей

has applications in the form of functions.

a set of instructions for code division into unuseable pieces. 

a set of instructions for code division into useable pieces. 

holds frameworks in the form of functions.

Запитання 4

Complete the sentence: Object-oriented ...

варіанти відповідей

has functionality and data are deliberately grouped together

has functionality and data are grouped together at random.

hasn't functionality and data are grouped together at all.

loyalty and data are deliberately grouped together

Запитання 5

Choose the right answer:

варіанти відповідей

C++, C#, Python are based functional programming.

C++, C#, Python are based on object-oriented programming.

C++, C#, Python are based on procedural programming.

C++, C#, Python combine all the existing types of programming.

Запитання 6

Choose the right answer: Functional type is very similar to mathematical functions.

варіанти відповідей

True

False

Not mentioned.

It depends.

Запитання 7

Choose the right answer:

варіанти відповідей

Procedural applications are functions which transform data from one ‘value’ to another 

Object-oriented applications are functions which transform data from one ‘value’ to another 

Functional applications are functions which transform data from one ‘value’ to another 

Functional and procedural applications are functions which transform data from one ‘value’ to another 

Запитання 8

Choose the right answer:

варіанти відповідей

Scheme, Lisp, Haskell are used in game industry and other spheres.

Scheme, Lisp, Haskell aren't used in application development and other spheres.

Scheme, Lisp, Haskell are used in application development and other spheres.

Scheme, Lisp, Haskell aren't used in game industry at the moment.

Запитання 9

Choose the right answer:

варіанти відповідей

Declarative type is characterized by statements which declare precisely the changes that need to be made 

Conservative type is characterized by statements which declare precisely the changes that need to be made.

Declarative type is characterized by statements which declare precisely the changes that need to be made.

Functional type is characterized by statements which declare precisely the changes that need to be made 

Запитання 10

Choose the right answer: Functional type is used in RDBMS.

варіанти відповідей

True.

False

Partly.

Not mentioned.

Запитання 11

·      Choose the right answer: Declarative type is connected with applications with large data volumes.

варіанти відповідей

True

False

Partly

Not mentioned.

Запитання 12

Choose the right answer: Event driven is not the main type of programming.

варіанти відповідей

True.

False

It depends.

Not mentioned.

Запитання 13

Choose the right answer: In event driven type a program is defined in passwords and codes of its responses to a number of different events

варіанти відповідей

True

False

Partly

Not mentioned.

Запитання 14

Choose the right answer: GUI and RDBMS are connected with additional (event driven) type.

варіанти відповідей

True

False

Partly

Not mentioned.

Створюйте онлайн-тести
для контролю знань і залучення учнів
до активної роботи у класі та вдома

Створити тест