Question: Please help! (in functional language OCaml) [4] (15 minutes) Below is a sequence of expressions. What is the result (the type and value or the

 Please help! (in functional language OCaml) [4] (15 minutes) Below is

Please help! (in functional language OCaml)

[4] (15 minutes) Below is a sequence of expressions. What is the result (the type and value or the error message) printed by the OCaml interpreter in response to each expression? Assume that the sequence is to be evaluated in the order in which it is presented. If the interpreter indicates an error, explain briefly (one sentence) why the error occurred. There are also some other questions below which you should answer to the best of your ability. Note that entering each code fragment interactively requires that you add the ; ; terminator to terminate input. Write your answers as OCaml comments. 1. 10 2. 10 . 3. 5+3+4 4. 3.2+4.2 5.3+.4 6. 3+4.2 7.3+.4.2 8. 3.0+.4.2 9.931 10. 9 - (31) 11. let a=3 12. let b=a+1 13. a=b

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!