Question

What is the difference between imperative and declarative languages? (1 point) Imperative languages use binary, declarative languages use hexadecimal. Imperative languages use hexadecimal, declarative languages use binary. ☐ Imperative languages focus on "how", declarative languages focus on "what." Imperative languages focus on "what", declarative languages focus on "how."

Answers

There are no human answers yet.
Answered by GPT-4o mini
The correct answer is: **Imperative languages focus on "how," declarative languages focus on "what."**

Imperative languages provide a set of commands for the computer to perform, detailing the steps needed to achieve a certain outcome. In contrast, declarative languages specify the desired result without detailing the steps taken to achieve it.

Related Questions