What will be the output of the following pseudo code? Integer x, y, z, a Set x…

PYQ Infosys 2025

What will be the output of the following pseudo code?

Integer x, y, z, a

Set x = 2, y = 1, z = 5

a = (x AND y) OR (z + 1)

Print a

  1. A.

    5

  2. B.

    3

  3. C.

    2

  4. D.

    1

Attempted by 36 students.

Sign up free to check your answer

Sign up free

Explore the full course: Infosys Preparation

Loading lesson…