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 (in method calls)?

12:

What are formal parameters?

13:

How do arguments and formal parameters relate?

14:

Does the + operator only perform arithmetic additions?

15:

How can you break down the inner complexities of a class?

16:

What is a cohesive method?


   


C# Primer Plus
C Primer Plus (5th Edition)
ISBN: 0672326965
EAN: 2147483647
Year: 2000
Pages: 286
Authors: Stephen Prata

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net