perspective и другое

Информация о пользователе

Привет, Гость! Войдите или зарегистрируйтесь.


Вы здесь » perspective и другое » Programming languages and PL concepts » BASIC TYPES OF PROGRAMMING LANGUAGES 74(75) - 81


BASIC TYPES OF PROGRAMMING LANGUAGES 74(75) - 81

Сообщений 1 страница 2 из 2

1

https://youtu.be/yOBBkIJBEL8

Imperative programming tells the code __________(1), while declarative programming tells the code __________(2).
Imperative solution involves specific  __________(3), such as creating a function to set text.
Declarative solution focuses on stating __________(4) and letting the system handle the changes.
In a real-world example with an array of numbers, an imperative solution involves __________(5).
A declarative solution, on the other hand, simply states __________(6).
Both imperative and declarative programming have their own approaches and applications in coding.
Understanding __________(7) can greatly impact the development process.

Correct answers:
1. how to be written
2. what you want to achieve
3. instructions
4. the desired outcome
5. manually filtering out numbers
6. the desired outcome of having a new list with numbers
7. the difference between the two

0

2

pp 75-76 (ДО functional) нач/пп

Questions:
1. What is the central feature of imperative languages according to the text?
A. Loops and conditions
B. Variables and assignment statements
C. Functions and classes
D. Inheritance and polymorphism

2. Which two languages are considered the most efficient imperative languages?
A. Python and Java
B. C and FORTRAN
C. JavaScript and Ruby
D. Swift and Kotlin

3. What is the basic statement that imperative languages have in common?
A. Function declaration
B. Loop initialization
C. Assignment statement
D. Exception handling

4. What do newer languages prefer to do when describing a problem according to the text?
A. Specify in great detail how to move data around
B. Command the computer to move data from one place to another
C. Describe a problem and let the computer figure out how to solve it
D. Focus on low-level commands to implement the program

5. In what scenarios are non-imperative languages preferred according to the text?
A. When developing simple software systems
B. When dealing with small data sets
C. When searching through large amounts of data or solving complex problems
D. When focusing on procedural programming

Correct answers:
1. B
2. B
3. C
4. C
5. C

0


Вы здесь » perspective и другое » Programming languages and PL concepts » BASIC TYPES OF PROGRAMMING LANGUAGES 74(75) - 81