This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Which line of code uses logical negation?
Console.WriteLine(!value);
Console.WriteLine(value != false);
Console.WriteLine(a != b);
Which of the following lines of code is a valid use of the conditional operator?
int value = amount >= 10? 10: 20;
int value = amount >= 10: 10? 20;
int value = amount >= 10? 10| 20;
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?