Ruby Truth Terms

Card Set Information

Author:
rubymatt
ID:
301434
Filename:
Ruby Truth Terms
Updated:
2015-04-24 07:14:45
Tags:
Ruby Logic
Folders:

Description:
Truth tables for Ruby
Show Answers:

Home > Flashcards > Print Preview

The flashcards below were created by user rubymatt on FreezingBlue Flashcards. What would you like to do?


  1. !false
    true
  2. !true
    false
  3. true || false
    true
  4. true || true
    true
  5. false || true
    true
  6. false || false
    false
  7. true && false
    false
  8. true && true
    true
  9. false && true
    false
  10. false && false
    false
  11. not (true || false)
    true
  12. not (true || true)
    false
  13. not (false || true)
    false
  14. not (false || false)
    true
  15. !(true && false)
    true
  16. !(true && true)
    false
  17. !(false && true)
    true
  18. !(false && false)
    true
  19. 1 != 0
    true
  20. 1 != 1
    false
  21. 0 != 1
    true
  22. 0 != 0
    false
  23. 1 == 0
    false
  24. 1 == 1
    true
  25. 0 == 1
    false
  26. 0 == 0
    true
  27. 2 != 2
    false
  28. 1 != 2
    true
  29. false == false
    true
  30. 13 >= 2
    true
  31. 2 == 2
    true
  32. 2 <= 0
    false
  33. 1 <= 0
    false
  34. 0 >= 0
    true
  35. 2 >= 0
    true
  36. 1 <= 1
    true
  37. 9 >= 9
    true
  38. 0 >= 1
    false
  39. 0 <= 1
    true
  40. false
    false
  41. true
    true
  42. true && true
    true
  43. false && true
    false
  44. 1 == 1 & 2 == 1
    false
  45. "test" == "test"
    true
  46. 1 == 1 || 2 != 1
    true
  47. true && 1 == 1
    true
  48. false && 0 !=0
    false
  49. true || 1 == 1
    true
  50. "test" == "testing"
    false
  51. 1 != 0 && 2 ==1
    false
  52. "test" != "testing"
    true
  53. "test" == 1
    false
  54. !(true && false)
    true
  55. !(1 == 1 && 0 != 1)
    false
  56. !(10 == 1 || 1000 == 1000)
    false
  57. !(1 != 10 || 3 == 4)
    false
  58. !("testing" == "testing" && "Zed" == "Cool Guy")
    true
  59. 1 == 1 && (!("testing" == 1 || 1 == 0))
    false
  60. "chunky" == "bacon" && (!(3 == 4 || 3 == 3))
    false
  61. 3 == 3 && (!("testing" == "testing" || "testing" || "Ruby" == "fun"))
    false
  62. 3 != 4 && !("testing" != "test" || "Ruby" == "Ruby")
    false

What would you like to do?

Home > Flashcards > Print Preview