Appendix A. Answers to Quizzes and Exercises
Chapter 1: C# and .NET Programming
Quiz
- Solution to Question 1–1.
The Common Language Runtime is the platform for .NET applications that allow you to develop your application in any .NET languages (C#, Visual Basic 2005, etc.) and have them all run seamlessly on a single platform.
- Solution to Question 1–2.
Console, Windows, Web, and Web Services.
- Solution to Question 1–3.
The Framework specifies how .NET constructs intrinsic types, classes, interfaces, etc.
- Solution to Question 1–4.
The Framework Class Library provides a very large suite of predefined classes that you can use in building your application.
- Solution to Question 1–5.
This refers to “type safety”—the ability of the compiler to ensure that the objects you create are of the expected type.
- Solution to Question 1–6.
Keywords are reserved for use by the language and cannot be used to identify objects or methods you create.
- Solution to Question 1–7.
Namespaces are used to ensure that identifiers are unique across libraries of classes.
- Solution to Question 1–8.
The job of the compiler is to turn your source code into MSIL.
- Solution to Question 1–9.
The Microsoft Intermediate Language is the native language for .NET and is compiled into an executable application by the JIT.
- Solution to Question 1–10.
The Just In Time compiler turns your MSIL code into an application in memory.
Exercise
- Solution to Exercise 1-1.
The instructions for creating this program are found in Chapter 1.
Chapter 2: Visual Studio 2005 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access