Question: Multiple Choice - Please write your answer on the line to the left of the question. ( Questions 1 5 - 1 8 refer equally

Multiple Choice - Please write your answer on the line to the left of the question.
(Questions 15-18 refer equally to both 0 Caml and F# )
q,15. What is the resulting data type of the evaluation of the expression: 1+2=3
a) int
c) int int
b) bool
d) none (syntax error)
16. What is the function type of f in the declaration: let fx=x+1
a) int
c) funxy
b) int int
d)(x**y)
17. What is the function type of in the declaration:
let f= fun xy(x+1,y+1.0)
a)'a**'b?'a**'b
c) int float int * float
b) int * float int * float
d)(int, float)
18. Given the OCamlF# function: let rec = function
|[][]||x::xs(x,x+1)::+-xs|
What does the following method call yield: f[2;4;6]
a)[]
c)4;8;12
b)12
d)(2,3);(4,5);(6,7)
19. Which is not one of the eight major categories of Control Flow (as described in Chapter 6)
a) Sequencing
d) Variable declaration
b) Selection
e) Recursion
c) Iteration
f) Exception Handling
 Multiple Choice - Please write your answer on the line to

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!