Physical Address
304 North Cardinal St.
Dorchester Center, MA 02124
Interested in learning to program with F# but don’t know where to start? Start here! Learn the basic syntax and features of the language. In this learning path you’ll:
Prerequisites:
None
Take your first steps with F# – Set up your development environment, write your first line of code, and build your first application
Learning objectives:
By the end of this module, you’ll be able to:
Prerequisites:
This module is part of these learning paths:
Q1. What is F#?
Q2. What is a feature in F# that can help you write less code?
Q3. What is a feature in F# that can help you write performant code?
Q4. What is a feature in F# that can help you write robust code?
Q5. What is F# Interactive?
Write your first F# programs, and learn to work with input and output, data type conversions, and operators.
Learning objectives:
In this module, you’ll:
Prerequisites:
This module is part of these learning paths:
Q1. How would you declare a variable, holding an integer, whose value you want to be able to change?
let number = 1
.let mutable number = 1
.let mut number = 1
.Q2. What formatter would you use to format an integer?
%s
formatter.$"{variable}"
.%i
formatter.Q3. What’s the correct operator for equality?
=
.<>
.==
.Learn how to manage execution flow in your programs by using if...elif...else
and loop constructs.
Learning objectives:
In this module, you will:
if...elif...else
to add conditional logic to your code.Prerequisites:
None
This module is part of these learning paths:
Q1. What construct would you use to iterate over an enumerable collection?
for...in
loop.for...to
loop.while...do
loop.Q2. Explain what’s wrong with the code let value = if condition then true else 1
.
if
and else
. The code let value = if condition then 2 else 1
would work.Q3. Which numbers would the loop for i = 0 to 5 do printfn "%i " i
print?
Learn what functions are and how to declare and call them. Also, learn how to architect with functions by using various patterns.
Learning objectives:
In this module, you’ll:
Prerequisites:
None.
This module is part of these learning paths:
Q1. How do you return from a function?
return
keyword.return
and place it last.Q2. How would you declare the add()
function that takes two strings and returns an int?
let add a b = a + b
.let add (a:string) (b:string):int = (int a) + (int b)
.let add (a:string) (b:string):bool = (int a) + (int b)
.Q3. The following code let addAndMultiply = add >> multiply
is doing what?
Learn how to write programs by using lists, and learn how to use the list properties and list functions that are specified in the list module.
Learning objectives:
In this module, you will:
Prerequisites:
This module is part of these learning paths:
Q1. You’re operating on a list, where each item has the properties City
and Country
. To display the two properties concatenated, what list function would you use?
sum()
functioniter()
functionmap()
functionQ2. Given the list let list = [1;2;3;4]
, what will the Head
property return?
[2;3;4]
.1
.4
.Q3. What is the correct way to return the average value from a list?
let list = [2;4]
, and calculate the average value by using let average = List.average list
.let list = [2.0; 4.0]
, and calculate the average value by using let average = List.avg list
.let list = [2.0; 4.0]
, and calculate the average value by using let average = List.average list
.I hope this Take your first steps with F# Microsoft Quiz Answers would be useful for you to learn something new from this problem. If it helped you then don’t forget to bookmark our site for more Coding Solutions.
This Problem is intended for audiences of all experiences who are interested in learning about Data Science in a business context; there are no prerequisites.
Keep Learning!
More Coding Solutions >>