This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
What return type do you use when a method doesn't return a value?
null
void
empty
What happens if you try to store the result of a call to a void method in a variable?
The variable is set to null.
The code doesn't compile.
The variable is set to the default value of its type.
Which statement about local variables is true?
A local variable declared inside one method can be used inside another method.
A local variable is shared across every method in the file.
A local variable only exists while its method is running.
You want to use the StringBuilder type from the System.Text namespace. What do you add to your file?
import System.Text;
include System.Text;
using System.Text;
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?