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 ... |
Get C# Primer Plus now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.