GATE Computer ScienceEasyGATE CS (PYQ pattern)
How many Boolean functions of 4 variables are symmetric (their value depends only on how many inputs are 1)?
- A. 32
- B. 16
- C. 24
- D. 64
Correct answer: A. 32
The value can be chosen independently for each weight 0, 1, 2, 3, 4: 2⁵ = 32 functions.
More Discrete Mathematics questions
- Let π = (1 2 3 4)(5 6 7)(8 9) in S₉. Which statement about π is correct?
- T(0) = 1 and T(n) = 2T(n − 1) + n·2ⁿ for n ≥ 1. What is T(10)?
- In how many ways can 4 seats be chosen from 12 seats arranged in a circle so that no two chosen seats are adjacent?
- How many connected labelled simple graphs on the vertex set {1, 2, 3, 4, 5} have exactly 5 edges?
- How many assignments to x₁, …, x₈ satisfy x₁ ⊕ x₂ ⊕ … ⊕ x₈ = 1 together with ¬(x₁ ∧ x₂) and ¬(x₃ ∧ x₄)?
- How many assignments to a, b, c, d, e, f satisfy (a ∨ b) ∧ (a → c) ∧ (b → c) ∧ (c → d) ∧ (e ∨ f) ∧ (d → ¬e)?