Question

The cardinality of the power set of {0,1,2,…,10}\{0, 1, 2, \dots, 10\} is _____.

Official answer and solution
Official answer
2048
From
Official GATE 2015 answer key

Solution

Count the number of elements in the given set and compute 2n2^n.

The given set is:

S={0,1,2,…,10}.S = \{0, 1, 2, \dots, 10\}.

The elements are the integers from 0 to 10 inclusive. The cardinality of SS is:

∣S∣=10−0+1=11.|S| = 10 - 0 + 1 = 11.

The power set P(S)\mathcal{P}(S) is the set of all subsets of SS. The cardinality of the power set of any finite set with nn elements is 2n2^n:

∣P(S)∣=211=2048.|\mathcal{P}(S)| = 2^{11} = 2048.
Final answer

2048

Common trap

Counting 10 elements instead of 11 by omitting the 0 element, which would lead to 210=10242^{10} = 1024.

The answer is the one in the official GATE answer key. The solution is this site's own explanation.

Source

Paper
GATE 2015 Computer Science and Information Technology (CS) Session 2
Question
28 of 65, printed as CS Q.18
Section
Computer Science and Information Technology

Report an error in this question

GATE questions are the work of the organising institutes. This site is independent and is not affiliated with them.