Game Preview

C# Conditionals Review

  •  English    18     Public
    Conditional Statements in C#
  •   Study   Slideshow
  • What is the data type for a condition?
    boolean
  •  15
  • What is the first keyword needed to create a conditional?
    if
  •  10
  • What are the two possible values a boolean can be?
    true, false
  •  15
  • What characters go around the body of an if statement?
    Curly brackets
  •  20
  • When will the program enter the else clause?
    When the if condition is false
  •  15
  • How can a developer check if two things are equal?
    ==
  •  20
  • What will be printed to the console?
    "It is not a great sledding day."
  •  15
  • What is the data type?
    string
  •  10
  • What is the data type?
    int
  •  10
  • What is the data type?
    double (or float)
  •  10
  • What is the data type?
    bool
  •  10
  • True or False?
    False
  •  10
  • True or False?
    Trick question - neither! Should have two equals signs
  •  20
  • True or False?
    False
  •  15
  • True or False?
    True
  •  15
  • What will be printed to the console?
    "Good"
  •  15