Новая Школа - онлайн-школа подготовки к ЕГЭ
Задача Задача №3622644
А
Аноним
18 июня 2026 10:02 · публичный вопрос
А
Аноним

-1 OR 3*2>5

Нейросеть18 июня 2026 10:02

Evaluation (typical boolean/logical model):

  • 3*2 > 5 -> 6 > 5 -> true
  • Now evaluate -1 OR true

In boolean terms, -1 is truthy (nonzero), so the OR is true.

Exact result depends on language:

  • Pure boolean value: True
  • Python: -1 or True -> -1 (because -1 is truthy and 'or' returns the first truthy operand)
  • C/C++: -1 || (3*2>5) -> 1 (true) due to short-circuit and result of || being 0 or 1

If you let me know the language you’re studying, I can give the exact final value for that language.

-1 OR 3*2>5
Evaluation (typical boolean/logical model): - 3*2 > 5 -> 6 > 5 -> true - Now evaluate -1 OR true In boolean terms, -1 is truthy (nonzero), so the OR is true. Exact result depends on language: - Pure boolean value: True - Python: -1 or True -> -1 (because -1 is truthy and 'or' returns the first truthy operand) - C/C++: -1 || (3*2>5) -> 1 (true) due to short-circuit and result of || being 0 or 1 If you let me know the language you’re studying, I can give the exact final value for that language.