Practice and explore

Test your knowledge and understanding by answering some questions, get some hands-on practice, and explore with deeper research into this chapter's topics.

Exercise 3.1 - test your knowledge

Answer the following questions:

  1. Where would you look for help about a C# keyword?
  2. Where would you look for solutions to common programming problems?
  3. What happens when you divide an int variable by 0?
  4. What happens when you divide a double variable by 0?
  5. What happens when you overflow an int variable, that is, set it to a value beyond its range?
  6. What is the difference between x = y++; and x = ++y;?
  7. What is the difference between break, continue, and return when used inside a loop statement?
  8. What are the three parts of a for statement and which of ...

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.