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);
Console.WriteLine(value != false);.
Console.WriteLine(value != false);
Console.WriteLine(a != b);.
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;.
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.
Continue
Was this page helpful?