Appendix A. Answers to the Test Your Knowledge Questions

This appendix has the answers to the questions in the Test Your Knowledge section at the end of each chapter.

Chapter 1 - Hello, C#! Welcome, .NET Core!

  1. Why can a programmer use different languages, for example C# and F#, to write applications that run on .NETCore?
    • Multiple languages are supported on .NET Core because each one has a compiler that translates the source code into IL (intermediate language) code. This IL code is then compiled to native CPU instructions at runtime by the CLR.
  2. What do you type at the prompt to build and execute C# source code?
    • Using .NET Core CLI in a folder with a ProjectName.csproj file, we type dotnet run.
  3. What is the Visual C# developer settings keyboard shortcut ...

Get C# 7 and .NET Core: Modern Cross-Platform Development - Second Edition 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.