Here are the answers to your questions:
Question 1: Which of the following is a declarative language?
- SQL
Question 2: What must be true about the programming language that the following line of code comes from?
- It is imperative. (This depends on context, but typical usage of
string
and assignment suggests an imperative style.)
Question 3: What makes JavaScript an interesting language as it pertains to declarative and imperative languages?
- It can be both imperative and declarative. (JavaScript allows for both styles, including imperative programming with loops and conditions as well as functional programming techniques that can be more declarative.)
Let me know if you need more clarification or help!