Study your flashcards anywhere!

Download the official Cram app for free >

  • Shuffle
    Toggle On
    Toggle Off
  • Alphabetize
    Toggle On
    Toggle Off
  • Front First
    Toggle On
    Toggle Off
  • Both Sides
    Toggle On
    Toggle Off
  • Read
    Toggle On
    Toggle Off
Reading...
Front

How to study your flashcards.

Right/Left arrow keys: Navigate between flashcards.right arrow keyleft arrow key

Up/Down arrow keys: Flip the card between the front and back.down keyup key

H key: Show hint (3rd side).h key

A key: Read text to speech.a key

image

Play button

image

Play button

image

Progress

1/13

Click to flip

13 Cards in this Set

  • Front
  • Back
Boolean Comparison Operator ==
var1 = var2 == var3;
var1 is assigned the value of true if var2 is equal to var3, or false otherwise.
Boolean Comparison Operator !=
var1 = var2 != var3;
var1 is assigned the value of true if var2 is not equal to var 3, or false otherwise.
Boolean Comparison Operator <
var1 = var2 < var3;
var1 is assigned the value of true if var2 is less than var3, or false otherwise.
Boolean Comparison Operator >
var1 = var2 > var3;
var 1 is assigned the value of true if var2 is greater than var3, or false otherwise.
Boolean Comparison Operator <=
var1 = var2 <= var3;
var1 is assigned the value of true if var2 is less than or equal to var3, or false otherwise.
Boolean Comparison Operator >=
var1 = var2 >= var3;
var1 is assigned the value of true if var2 is greater than or equal to var3, or false otherwise.
Boolean Operator ! (Unary)
var1 = ! var2;
var1 is assigned the value of true if var2 is false, or false if var2 is true (Logical NOT).
Boolean Operator &
var1 = var2 & var3
var1 is assigned the value of true if var2 and var3 are both true, or false otherwise. (Logical AND)
Boolean Operator |
var1 = var2 | var3;
var1 is assigned the value of true if either var2 or var3 (or both) are true, or false otherwise (Logical OR)
Boolean Operator ^
var1 = var2 ^ var3;
var1 is assigned the value true if either var 2 or var3, but not both, are true, or false otherwise. (Logical XOR, or exclusive OR.)
Boolean Operator &&
var1 = var2 && var3;
var1 is assigned the value of true if var2 and var3 are both true, or false otherwise. (Logical AND)
Boolean Operator ||
var1 = var2 || var3;
var1 is assigned the value of true if either var2 or var3 (or both) are true, or false otherwise. (Logical OR)
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 sincle condition.
Switch statement.