Beginning C sharp.txt

  1. Boolean Comparison Operator == var1 = var2 == var3;
    var1 is assigned the value of true if var2 is equal to var3
  2. Boolean Comparison Operator != var1 = var2 != var3;
    var1 is assigned the value of true if var2 is not equal to var 3
  3. Boolean Comparison Operator < var1 = var2 < var3;
    var1 is assigned the value of true if var2 is less than var3
  4. Boolean Comparison Operator > var1 = var2 > var3;
    var 1 is assigned the value of true if var2 is greater than var3
  5. Boolean Comparison Operator <= var1 = var2 <= var3;
    var1 is assigned the value of true if var2 is less than or equal to var3
  6. Boolean Comparison Operator >= var1 = var2 >= var3;
    var1 is assigned the value of true if var2 is greater than or equal to var3
  7. Boolean Operator ! (Unary) var1 = ! var2;
    var1 is assigned the value of true if var2 is false
  8. Boolean Operator & var1 = var2 & var3
    var1 is assigned the value of true if var2 and var3 are both true
  9. Boolean Operator | var1 = var2 | var3;
    var1 is assigned the value of true if either var2 or var3 (or both) are true
  10. Boolean Operator ^ var1 = var2 ^ var3;
    var1 is assigned the value true if either var 2 or var3
  11. Boolean Operator && var1 = var2 && var3;
    var1 is assigned the value of true if var2 and var3 are both true
  12. Boolean Operator || var1 = var2 || var3;
    "var1 is assigned the value of true if either var2 or var3 (or both) are true
  13. The _____________ is very similar to the if statement in that it executes code conditionally based on the value of a test. However the ________ allows you to test for multiple values of a test variable in one go rather than a single condition.
    Switch statement
Author
Anonymous
ID
39601
Card Set
Beginning C sharp.txt
Description
Beginning C# questions
Updated