This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Use the following questions to check what you’ve learned in this module.
Which character is used to identify variables?
%
!
$
Which command would you use to assign a numerical value of 20 to a variable?
$num = 20
$num = "20"
$num -eq 20
The variable $ip is a string with a value of "10.100.4.2". Which command would you use to divide $ip into four separate numbers?
$ip
$ip.Divide(4)
$ip.Split(4)
$ip.Split(".")
Which of the following options is a method that you can use with DateTime variables?
ToLower()
ToShortDateString()
DayOfWeek
You must answer all questions before checking your work.
Was this page helpful?
Need help with this topic?
Want to try using Ask Learn to clarify or guide you through this topic?