This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Which of the following demonstrates recommended guidelines for naming a variable?
my-string.
my-string
initialMessage$.
initialMessage$
initialMessage.
initialMessage
Which of the following is a bad reason to use a code comment?
To describe the high-level intent of the code.
To explain how a new C# keyword works.
To temporarily comment out a line of code while evaluating a feature in a different way.
Which of the following statements about using whitespace in code is true?
Reducing the amount of whitespace improves code performance (execution speed).
Whitespace should be used to every two or three lines to separate code lines.
Whitespace should be used judiciously to improve the readability of your code.
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?