L. P. with Microsoft C# - Level 1-Quiz-3

  1. Value types can be intrinsic data types, such as float or char. Value types may be user defined, such as enum or struct.
  2. sbyte is the intrinsic value type that takes up one byte and can range in value from -128 to 127.
  3. There are several basic rules you must follow when declaring variables.
    1. Variable names must be alphanumeric, or underscore characters
    2. No C# keywords
    3. Use PascalCasing convention for everything but parameters
  4. the following examples declares a variable and initializes it.

    int Myint = 5;

  5. C# has a number or relational operators for you to use.  the 'not equal to' operator looks like "!=".
  6. The Xor operator in Boolean checking requires one side of the OR to be true, and the other side to be false. If both are true, the expression is false. this operator looks like "*".
  7. I would you use An Enumeration if I wanted to define a specific set of values that would be acceptable parameters to a method.
  8. You are creating Controlled Flow processes in your application, and want to create a Statement Block. I use "{ Statement Block }" to enclose statement blocks.
  9. I would  use An If statement to execute code conditionally, based on the value of a Boolean expression.
  10. Whe I have created a switch, and need to put something at the end of each case with implementation to prevent fall through and compiler errors. I put A Break at the end of each case.
Permalink | Comments (0) | Hits: 1082 | Time: 1:25:15
Learning Programming with Microsoft C# - Level 1-3.7
Learning Programming with Microsoft C# - Level 2-1.1
All Comments

 No Data Now...

Post Your Comment
^ ^

Top