Computer Science, asked by errortcp, 14 days ago

integer a = 60, b= 35, c= -30

output ?

0 and 1

0 and 0:

1 and 1

1 and 0​

Answers

Answered by Jasleen0599
0

Option d) 1 and 0

integer a = 60, b= 35, c= -30

print ( a > 45 OR b > 50 AND c > 10 )

print ( ( a > 45 OR b > 50 ) AND c > 10 )

Output :

1 and 0

  • A boolean value is returned by the operator less than or equal to. True if the value of operand 1 is lower than or equal to that of operand 2. Otherwise, False is returned. The result is computed by comparing the relevant elements of the objects if the operands are sequences such as strings, lists, tuples, etc.
  • When comparing numbers, you can test for smaller/greater by using the operators and.
  • Do the indented statement block if the condition is True. Skip the statement if the condition is false. If the predicate is True, only execute the first indented block.

#SPJ2

Answered by tiwariakdi
0

Answer:

Option D is  the correct answer

1 and 0​

Explanation:

integer a = 60, b= 35, c= -30

print ( a > 45 OR b > 50 AND c > 10 )

print ( ( a > 45 OR b > 50 ) AND c > 10 )

  • The result of the operator less than or equal to is a boolean value. If operand 1's value is less than or equal to operand 2's value, the statement is true.
  • If not, False is returned. If the operands are sequences like strings, lists, tuples, etc., the result is calculated by comparing the appropriate objects' elements.
  • Using the operators, you may test whether two values are lower or greater.
  • If the criterion is True, execute the statement block indented. If the condition is false, do not make the assertion. Only run the first indented block if the criteria are True.

#SPJ5

https://brainly.in/question/35864039

Similar questions