Study

C# Conditionals Review

  •   0%
  •  0     0     0

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