This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Choose the best response for each question.
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?
City
Country
The sum() function
sum()
The iter() function
iter()
The map() function
map()
Given the list let list = [1;2;3;4], what will the Head property return?
let list = [1;2;3;4]
Head
It returns [2;3;4].
[2;3;4]
It returns 1.
1
It returns 4.
4
What is the correct way to return the average value from a list?
Use let list = [2;4], and calculate the average value by using let average = List.average list.
let list = [2;4]
let average = List.average list
Use let list = [2.0; 4.0], and calculate the average value by using let average = List.avg list.
let list = [2.0; 4.0]
let average = List.avg list
Use let list = [2.0; 4.0], and calculate the average value by using let average = List.average list.
You must answer all questions before checking your work.
Was this page helpful?