Declarative Programming
Prolog
Previous topics
100

What is declarative programming?

Declarative programming is a programming paradigm in which a programmer defines what a program should be executed without defining how it should be realized.

100

From what collocation did the name of this programming language originate? 

PROgramming in LOGic

100

What are the levels of higher education in Belarus?

Bachelor's degree – first level
Master's degree – second level
Postgraduate studies – the third level

200

Examples of declarative programming languages

Prolog, SQL, VRML, SVG, HTML+ CSS, Haskell, Erlang, Scala

200

What two types of statements exist in Prolog?

Fact, rule

200

What is e-waste?

E-waste, or electronic waste, is electrical and electronic equipment that’s outdated, unwanted, or broken

300

What are the disadvantages of declarative programming?

1)Sometimes it's hard to understand for outsiders.
2)Based on a conceptual model unfamiliar to people
3)It is difficult to take into account the characteristics of individual applications when programming

300

Каким значком обозначается комментарий до конца строки?

%

300

What categories is the software divided into?

1)system software
2)application software
3)tool software

400

What are advantages of declarative programming?

Readability/usability, Succinctness, ReuseIdempotence, Error recovery, Referential transparency, Commutativity

400

What is the main operation of Prolog?

The main operation of Prolog is the proof of the goals included in the statement.

400

Name any three proverbs in English, their literal translation and the Russian equivalent

1)Original: Don’t cross the bridge until you come to it.
Дословно: Не переходи мост, пока до него не дойдешь.
Русский аналог: Не говори «гоп», пока не перепрыгнешь.

2)Original: Don’t make a mountain out of an anthill.
Дословно: Не делай гору из муравейника.
Русский аналог: Не делай из мухи слона. 

3)Original: It’s better to be safe than sorry.
Дословно: Лучше быть осторожным, чем сожалеть.
Русский аналог: Береженого Бог бережет.  

500

What is the difference between declarative programming and imperative programming?

Imperative style is a programming style in which you describe how to achieve the desired result

Declarative style is a programming style in which you describe what kind of result you need

500

Where is the Prolog used?

1)natural language processing systems,
2)artificial intelligence research,
3)expert systems,ontologies and other subject areas for which the use of a logical paradigm is natural

500

BONUS: Халявные 500 баллов)

BONUS: Халявные 500 баллов)