O'Reilly logo

C# Primer Plus by Klaus Michelsen

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Review Questions

1:How can you make the code between #if and #endif of the following lines be included in the compilation
#if TRIALEDITION
    <Some code>
#endif
2:Is the second line in the following two lines of code valid? Why or why not?
using System;
#define
3:Add the necessary preprocessor directives and identifiers to the following lines of code, so that <Code part 1> is excluded from the compilation and <Code part 2> is included.
...
#if
    <Code part 1>
#endif
...
#if
    <Code part 2>
#endif
...
4:What is the major difference between standard comments and program documentation?
5:What does a documentation comment consist of? Give an example.
6:Which command must you give to the compiler to let it transform the documentation comments into a ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required