Functional Programming (H) - 1.05

1. What is the difference between an expression and a statement in an imperative programming language

2. What is the result of the following expression in Haskell, where sqrt returns the square root of its argument:

sqrt 16+9

3. What is the result of the following expression in Haskell, where sqrt returns the square root of its argument:

sqrt (16+9)

4. Give one reason why the following code is incorrect in Haskell:

x = 4 x = ((x * 2))

5. What is the result of the expression abs -6 in Haskell, where abs returns the absolute value of its argument.

6. In Haskell, what is another appropriate name for this style of expression:

n = n + 1

7. Is it valid to write n = n + 1 in Haskell