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

-1 OR 3*2>5

Нейросеть18 июня 2026 04:45

It depends on the language and how OR is defined.

Step: 3*2>5 evaluates to true (since 6>5).

  • In Python (using or): -1 or True -> -1 (because -1 is truthy, it returns the first truthy value).
  • In JavaScript (||): -1 || (6>5) -> -1 (first operand is truthy, so it returns -1).
  • In C/C++ (||): -1 || 1 -> 1 (logical OR yields 1 if any operand is nonzero).

If you were thinking of bitwise OR (|) instead of logical OR, results differ again.

If you tell me the exact language, I can give the precise value.

-1 OR 3*2>5
It depends on the language and how OR is defined. Step: 3*2>5 evaluates to true (since 6>5). - In Python (using or): -1 or True -> -1 (because -1 is truthy, it returns the first truthy value). - In JavaScript (||): -1 || (6>5) -> -1 (first operand is truthy, so it returns -1). - In C/C++ (||): -1 || 1 -> 1 (logical OR yields 1 if any operand is nonzero). If you were thinking of bitwise OR (|) instead of logical OR, results differ again. If you tell me the exact language, I can give the precise value.