QuestionQ90

VerifiedVariables and Arguments

Given an Object-type variable assigned a Boolean value, what output is expected when the variable is converted to a string with the ToString method?

Explanation

Boolean.ToString() returns "True" for a true value and "False" for a false value, including when the Boolean is boxed in an Object variable.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!