Question-107: When

X=1

Y=1

 

Please map below bitwise operate result

 

X & B = 1

X | B = 1

  1. Get all Questions and Answer from here
  2. You need to have paid subscription to access all questions
  3. Thanks for considering Python Certification Material

 

Answer:

Exp:

Bitwise operator

  • & - Bitwise And
  • | - Bitwise Or
  • ^ - Bitwise exclusive or
  • ~ - Bitwise negation

 

X

Y

X & B

X | B

X ^ B

0

0

0

0

0

0

1

0

1

1

1

0

0

1

1

1

1

1

1

0

 

 

You can access to full explanation to question and answer from this page.

Why Dont you prepare for Python Certifications and Interview Questions with 250+ Questions and Answer : Check Here

Real Exam Number of Questions: 70 Questions
Real Exam Pass Score: 70%
Time Allotted: 90 minutes to complete exam