Answers to Selected Exercises
TEST YOUR UNDERSTANDING EXERCISES
3. A compiler.
5. managed code
7. C++, Java, and C. One might include Visual Basic and Smalltalk.
9. MSIL code.
11. public and class are keywords. Square is an identifier. { is a punctuator.
13. = and *
17. Highest 10 % A, next 20% B, next 40 % C, next 20 % D, last 10 % F, for example
1. a, b, f, g, and j are valid. c, d, e, and k use invalid characters. h starts with a digit, i is a keyword.
3. name, type
5. add initialization such as int number = 0;
7. The largest value is 2,147,483,647, and the smallest value is -2,147,483,648.
9. The program aborts with ...
Get Computing with C# and the .NET Framework, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.