Test your knowledge and understanding by answering some questions, get some hands-on practice, and explore with deeper research into this chapter's topics.
Answer the following questions:
- Where would you look for help about a C# keyword?
- Where would you look for solutions to common programming problems?
- What happens when you divide an
int
variable by0
? - What happens when you divide a
double
variable by0
? - What happens when you overflow an
int
variable, that is, set it to a value beyond its range? - What is the difference between
x = y++;
andx = ++y;
?
- What is the difference between
break
,continue
, andreturn
when used inside a loop statement? - What are the three parts of a
for
statement and which of them are required? - What is the difference between the
=
and==
operators? - Does the following statement compile?
for ( ; true; ) ;