2024-04-14T17:20:23+03:00[Europe/Moscow] en true <p>Determines the sum of two operands.</p><p>int result = 5 + 3 ; // result</p>, <p>Calculates the difference of two operands by subtracting the second operand from the first operand.</p><p>int result = 10 − 5 ; // result</p>, <p>Determines the product of the two operands.</p><p>int result = 4 ∗ 3 ; // result</p>, <p>Divides the left operand by the right operand</p>, <p>Determines the remainder when dividing the left operand by the right operand</p>, <p>Increases the value of its operand by 1, Decreases the value of its operand by 1</p>, <p>True or False: Brackets cannot change the order in which expressions are evaluated</p>, <p>Addition Assignment</p>, <p>Subtraction Assignment</p>, <p>This operator checks if the values of two operands are equal</p>, <p>True or False:int a = 5 ;</p><p>int b = 7 ;</p><p>bool result = ( a == b ) ;</p>, <p>This operator checks if the values of two operands are not equal</p>, <p>True or False:int x = 10 ;</p><p>int y = 10 ;</p><p>bool result = ( x != y ) ;</p>, <p>This operator checks if the value of the left operand is greater than the value of the right operand.</p>, <p>True or False: </p><p>int p = 15 ;</p><p>int q = 10 ;</p><p>bool result = ( p &gt; q )</p>, <p>This operator checks if the value of the left operand is less than the value of the right operand</p>, <p>True or False:int m = 7 ;</p><p>int n = 12 ;</p><p>bool result = (m &lt; n )</p>, <p>This operator checks if the value of the left operand is greater than or equal to the value of the right operand</p>, <p>True or False:int a = 8 ;</p><p>int b = 1 0 ;</p><p>bool result = ( a &lt;= b )</p> flashcards
Lecture 8

Lecture 8

  • Determines the sum of two operands.

    int result = 5 + 3 ; // result

    Addition (+)

  • Calculates the difference of two operands by subtracting the second operand from the first operand.

    int result = 10 − 5 ; // result

    Subtraction (-)

  • Determines the product of the two operands.

    int result = 4 ∗ 3 ; // result

    Multiplication (*)

  • Divides the left operand by the right operand

    Division (/)

  • Determines the remainder when dividing the left operand by the right operand

    Modulus (%)

  • Increases the value of its operand by 1, Decreases the value of its operand by 1

    Increment (++) and Decrement (--)

  • True or False: Brackets cannot change the order in which expressions are evaluated

    False

  • Addition Assignment

    a += b a = a + b

  • Subtraction Assignment

    a -= b a = a - b

  • This operator checks if the values of two operands are equal

    Equal to (==)

  • True or False:int a = 5 ;

    int b = 7 ;

    bool result = ( a == b ) ;

    False

  • This operator checks if the values of two operands are not equal

    Not equal to (! =)

  • True or False:int x = 10 ;

    int y = 10 ;

    bool result = ( x != y ) ;

    False

  • This operator checks if the value of the left operand is greater than the value of the right operand.

    Greater than (>)

  • True or False:

    int p = 15 ;

    int q = 10 ;

    bool result = ( p > q )

    True

  • This operator checks if the value of the left operand is less than the value of the right operand

    Less than (<)

  • True or False:int m = 7 ;

    int n = 12 ;

    bool result = (m < n )

    True

  • This operator checks if the value of the left operand is greater than or equal to the value of the right operand

    Greater than or equal to (>=)

  • True or False:int a = 8 ;

    int b = 1 0 ;

    bool result = ( a <= b )

    True