GATE Computer ScienceHardGATE CS (PYQ pattern)
How many assignments to x₁, …, x₈ satisfy x₁ ⊕ x₂ ⊕ … ⊕ x₈ = 1 together with ¬(x₁ ∧ x₂) and ¬(x₃ ∧ x₄)?
- A. 80
- B. 60
- C. 96
- D. 72
Correct answer: D. 72
Of the 256 assignments, 128 have odd parity. Each of the pairs (x₁,x₂) and (x₃,x₄) has 3 allowed values (00, 01, 10), so 3 · 3 = 9 pair choices; for each, exactly half of the 16 settings of x₅…x₈ (8) give odd total parity: 9 · 8 = 72.
More Discrete Mathematics questions
- How many assignments to a, b, c, d, e, f satisfy (a ∨ b) ∧ (a → c) ∧ (b → c) ∧ (c → d) ∧ (e ∨ f) ∧ (d → ¬e)?
- Using only the connective → and the two variables p and q (no constants), how many pairwise non-equivalent propositions can be written?
- A Boolean function f(x, y, z) satisfies f(x, y, z) = f(y, x, z) for all inputs. How many such functions exist?
- How many functions f : {1, 2, 3, 4} → {1, 2, 3, 4} satisfy f(f(x)) ≠ x for every x?
- In how many ways can 8 distinct objects be placed into 4 identical boxes, no box empty, so that objects 1 and 2 are in different boxes?
- How many equivalence relations on {1, 2, …, 7} have exactly 3 equivalence classes, each with at least 2 elements?