⟩ Explain the result of 1 XOR 1?
Answer is zero, because XOR returns 1 if two operands are distinct and zero if two operands are same, for example 0 XOR 0 is also zero, but 0 XOR 1 or 1 XOR 0 is always 1.
Answer is zero, because XOR returns 1 if two operands are distinct and zero if two operands are same, for example 0 XOR 0 is also zero, but 0 XOR 1 or 1 XOR 0 is always 1.
Explain test-driven development?
Explain Liskov substitution principle?
Explain Open closed design principle?
Explain recursive algorithm?
Can you please explain the difference between binary tree and a binary search tree?
Explain time complexity of an algorithm?
Explain couple of ways to resolve collision in hash table?
Explain about unit testing?
Explain stateless system?
Write an SQL query to find second highest salary in employee table?