O'Reilly logo

C# Primer Plus by Klaus Michelsen

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Review Questions

1:What are namespaces used for in C# and .NET?
2:What is the advantage of including the keyword using followed by the name of a namespace in the beginning of a program?
3:Which namespace contains classes related to mathematical calculations and console input/output.
4:How should comments be applied in the source code?
5:Describe a variable of type int.
6:Why are x and y often regarded as unacceptable variable identifiers? Why are they acceptable in Listing 4.1?
7:What are the fundamental parts of a method?
8:Why is MoveLeft a bad name for a class? For which C# construct would it be better suited?
9:How do you specify that a method does not return a value?
10:How do you specify that a method returns a value of type int?
11:What are arguments ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required