Boolean Expressions Reading assignment

  • What are operators?
    They are actions to be performed upon values, either unary binary or ternary
  • What binary operators do you know?
    numerical +,-,*,/ or string + (to concatenate words) or boolean true false
  • What logical operators do you know?
    && logical ‘and’, || logical ‘or’, and ! logical ‘not’
1 Like

Hi @sherlock,

Nice answers! :slightly_smiling_face:

And just to add…

… and the arithmetic operators e.g.  + - / * %

… and ! (NOT)

1 Like

Excellent analysis, @hubitutl!

I can see you’ve enjoyed researching operators in depth! :+1:
When you start investigating, it seems that operators are never-ending. Believe me, I’ve been there and had to draw a line at some point :sweat_smile:

3 Likes

Thanks for the completion @jon_m :slightly_smiling_face:

1 Like

Nice answers, @jpc! :ok_hand:

Just one observation for clarification…

The Booleans true and false are values, not operators. However, the comparison operators (e.g.  ><<=>====!==   etc.) do operate on two values and produce a Boolean. Maybe this is what you meant…

1 Like
  1. Operators are symbols that tells the program what to do with a certain value within the specific program to then evaluate and give a certain end-value. Symbols like, +, -, *, /.

  2. I know > (greater than), < (less than), and == (equal to).

  3. && (and), II (or), ! (not).

1 Like
  1. Operators give commands to values
        • / % == != <= >= < > = += -= /= %= *= && ||
  2. Or (||), and (&&), not (!)
1 Like

Operator are used to transform values.

+, -, /, *, %

&&, || (and, or)

1 Like
  1. Operators are symbols that give value to variables .
  2. Binary operators + - * / , < >
  3. == , &&, !
1 Like
  1. operators allow programs to make decisions.
    • , - , *, /, %
  2. AND, OR
1 Like
  1. What are operators?
    An operator performs some operation on single or multible data values and produces a result. There are for example arithmetic, comparison and logical operators.

  2. what binary operatos do you know?
    +,-,*,/,%,&&,||,==,<,>,<=,>=,!=,&,|,<<,>>

  3. What logical operators do you know?
    &&,||,!

1 Like

What are operators?
They can be used to combine and transform values.

What binary operators do you know?
+, -, *, /, %

What logical operators do you know?
&&, ||

1 Like

Hi @Enoch,

Qs 2 & 3 :ok_hand:

…not really…
Operators perform different kinds of actions on values i.e. they operate on them.

…This is not an operator I’ve ever seen… I assume this was a formatting error :wink:

1 Like

Hi @Troydiesel,

Q2 & 3 :ok_hand:

This is good explanation of what assignment operators do e.g. = , += , -=  etc.
But these are only one type of operator. More generally, operators perform different kinds of actions on values i.e. they operate on them.

1 Like
  1. What are operators?
    Performs some operation on an operand or values and produces a result
  2. What binary operators do you know?
    +, -, /, *, %, ++, - -
  3. What logical operators do you know?
    And &&
    or ||
    Not !
1 Like
  1. instructions for calculating with values; compare values; or perform some logic on values

  2. binary operators for arithmetic (+, -, *, /, and %),
    string concatenation (+),
    comparison (==, !=, ===, !==, <, >, <=, >=), and

  3. logic o.: and (&&), or(||) and ! (not)

1 Like

Hi @Wevlin,

Good answers :ok_hand:

Just one observation…

The increment operator ++ and the decrement operator -- are actually unary operators (not binary operators) because they only operate on one value (adding or subtracting 1 to/from it) rather than on two values.

1 Like

Boolean Expressions Reading assignment

  1. What are operators?
  2. Operators are symbols used to tell the computer to manipulate a specified value(s)

  3. What binary operator's do you know? How about Logical?
    arithmetic operators<(+,*,/ ectera)note ++ and -- are not binary as they only operate on 1 value adding or subtracting 1. (Shout out @jon_m for the insight)
    The assignment operators (x=y, /x=y ectera) string operators use to (among other things) concentrate strings. Example
    Var text1 = "Fresh" ; Var text 2 = "the genius" ; Var text 3 = (text 1 + " " + text 2) return
    yields Fresh the Genius
    Comparison Operators

    == equal too , != not equal too ectera

    Logical operators

    && Logical and II Logical Or ! Logical not.

    Type Operators

    Type of returns the type of a variable and Instance of returns true if the object is the specific instance type the object type.

    Bitwise Operators

    Bitwise operators work with/on 32 bit numbers (& aka and, ^ AKA XOR)

    This listings is not exhaustive

1 Like

Great feedback thank you!

1 Like
  1. Operators can be symbols like +, -, * and / which take two number values and produce a new number from them. Operators can also be written as words like the “typeOf” operator and logical operators like “and” “or” and “not”. Ternary Operators aka conditional operators work on 3 values and is written with a “?” and a “:”. The value on the left of the question mark “picks” which of the other tow values will come out. When it is true, it chooses the middle value and when it is false, it chooses the value on the right.
  2. +, -, /,*, %, >,<,==
  3. && and || (or) ! (not)
1 Like