Chapter 1: C# and .NET Programming
Quiz Solutions
Solution to Question 1-1. The Common Language Runtime (CLR) is the component of the .NET Framework that allows you to compile and execute applications written in either C# or Visual Basic .NET.
Solution to Question 1-2. The .NET Framework specifies how .NET constructs intrinsic types, classes, interfaces, and so forth.
Solution to Question 1-3. Calling C# a “safe” language 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-4. Keywords are reserved for use by the language and cannot be used to identify objects or methods you create.
Solution to Question 1-5. The job of the compiler is to turn your source code into Microsoft Intermediate Language (MSIL).
Solution to Question 1-6. The Microsoft Intermediate Language is the native language for .NET and is compiled into an executable application by the Just In Time (JIT) compiler.
Solution to Question 1-7. The Just In Time compiler turns your MSIL code into an application in memory.
Solution to Question 1-8. Namespaces are used to ensure that identifiers are unique across libraries of classes. In other words, they ensure that a name that you use in your code doesn’t conflict with a name used by Microsoft, or anybody else.
Solution to Question 1-9. A string is a class with many abilities and uses, but in its simplest form, a string is text enclosed in double quotation marks.
Solution to Question 1-10. The four ...
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