What is the difference between imperative and declarative languages?

(1 point)
Responses

Imperative languages use binary; declarative languages use hexadecimal.

Imperative languages use binary; declarative languages use hexadecimal.

Imperative languages use hexadecimal; declarative languages use binary.

Imperative languages use hexadecimal; declarative languages use binary.

Imperative languages focus on “how”; declarative languages focus on “what.”

Imperative languages focus on “how”; declarative languages focus on “what.”

Imperative languages focus on “what”; declarative languages focus on “how.”

1 answer

The correct response is:

Imperative languages focus on “how”; declarative languages focus on “what.”

Imperative languages specify the steps to achieve a goal (how to do something), while declarative languages specify the desired outcome without detailing the steps to achieve it (what to do).