πŸ”Quiz

6 questions to test your memory

1. Who is the father of the Fβ™―? ⏱ 10’’

A. Anders Hejlsberg

B. Don Syme

C. Scott Wlaschin

Answer

A. Anders Hejlsberg ❌

β†’ Father of Cβ™― and TypeScript!

B. Don Syme βœ…

β†’ dsymetweets β€’ πŸŽ₯ Fβ™― Code I Love

C. Scott Wlaschin ❌

β†’ Famous blog Fβ™― for Fun and Profit, a gold mine for Fβ™―


2. What is the name of the :: operator? ⏱ 10’’

A. Append

B. Concat

C. Cons

Answer

A. Append ❌

List.append : concatenation of 2 lists

B. Concat ❌

List.concat : concatenation of a set of lists

C. Cons βœ…

newItem :: list is the fasted way to add an item at the top of a list


3. Find the intruder! ⏱ 15’’

A. let a = "a"

B. let a () = "a"

C. let a = fun () -> "a"

Answer

B and C are functions, while A is a simple value: a string.

A. let a = "a" βœ…

B. let a () = "a" ❌

C. let a = fun () -> "a" ❌


4. What line does not compile? ⏱ 20’’

Answer

Line 3. x % 2 = 0 : an indentation is missing


5. What is the name of |> operator? ⏱ 10’’

A. Compose

B. Chain

C. Pipeline

D. Pipe

Answer

A. Compose ❌ - Composition operator is >> πŸ“

B. Chain ❌

C. Pipeline ❌

D. Pipe βœ…


6. Which expression compiles? ⏱ 20’’

A. a == "a" && b != "*"

B. a == "a" && b <> "*"

C. a = "a" && b <> "*"

D. a = "a" && b != "*"

Answer

C. a = "a" && b <> "" βœ…

Operator
Cβ™―
Fβ™―

Equality

==

=

Inequality

!= (! =)

<> (< >)

Last updated

Was this helpful?