Computer Science, asked by prafulsharma25333, 2 months ago

if a in a list there is an integer 1-6 and one integer is missing how to represent the list of kissing integer​

Answers

Answered by pragyamobra83
2

Answer:

You are given a list of 5 integers and these integers are in the range from 1 to 6. There are no duplicates in list. One of the integers is missing in the list. Which of the following expression would give the missing number.

^ is bitwise XOR operator.

~ is bitwise NOT operator.

Let elements of list can be accessed as list[0], list[1], list[2], list[3], list[4]

(A) list[0] ^ list[1] ^ list[2] ^ list[3] ^ list[4]

(B) list[0] ^ list[1] ^ list[2] ^ list[3] ^ list[4] ^ 1 ^ 2 ^ 3 ^ 4 ^ 5 ^ 6

(C) list[0] ^ list[1] ^ list[2] ^ list[3] ^ list[4] ^ 1 ^ 2 ^ 3 ^ 4 ^ 5

(D) ~(list[0] ^ list[1] ^ list[2] ^ list[3] ^ list[4])

Explanation:

plz mark me as brilliant

Similar questions