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.
How would you declare a variable, holding an integer, whose value you want to be able to change?
Enter the code let number = 1.
let number = 1
Enter the code let mutable number = 1.
let mutable number = 1
Enter the code let mut number = 1.
let mut number = 1
What formatter would you use to format an integer?
Use the %s formatter.
%s
Use $"{variable}".
$"{variable}"
Use the %i formatter.
%i
What's the correct operator for equality?
The correct operator to use is =.
=
The correct operator to use is <>.
<>
The correct operator to use is ==.
==
You must answer all questions before checking your work.
Was this page helpful?