Chapter 3 – Controlling the Flow and Converting Types

  1. Where would you look for help about a C# keyword?

Answer: https://docs.microsoft.com/en-us/dotnet/articles/csharp/language-reference/keywords/

  1. Where would you look for solutions to common programming problems?

Answer: http://stackoverflow.com

  1. What happens when you divide an int variable by 0?

Answer: DivideByZeroException is thrown when dividing an integer or decimal.

  1. What happens when you divide a double variable by 0?

Answer: The double type contains a special value of Infinity. Instances of floating-point numbers can have the NaN (not a number), PositiveInfinity, and NegativeInfinity special values.

  1. What happens when you overflow an int variable, that is, set it to a value ...

Get C# 7.1 and .NET Core 2.0 – Modern Cross-Platform Development - Third 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.