Suppose that we have the dual code $C=\{0000,0100,0101,0001\}$
A basis matrix is the following:
$$G=\begin{pmatrix} 0 & 1 & 0 & 0\\ 0 & 1 & 0 & 1 \end{pmatrix}$$
How do we get this matrix? Since we have at the code only $0$s and $1$s, do we just take as rows each possible combination of pairs containing $0$ and $1$ ?
If so, how do we know the order in which we write the pairs?
Also we can only calculate the check matrix if we know the basis matrix, right?
Why is it $$H=\begin{pmatrix} 0 & 0 & 1 &0 \\ 1 & 0 & 0 &0 \end{pmatrix}$$ in this case?
Also the parameters of the code are $[n,k,d]$ where $d(C)=\min_{x,y \in C, x \neq y} d(x,y)$ , we have $k$ digits of information , we encode them in $n$ digits and send them.
We have that $d(0000,0100)=1$ so $d(C)=1$, right?
Does it hold that $n=4$ since each element of $C$ contains 4 digits?
How do we calculate $k$ ?
Extended hints/explanations:
A mild warning: sometimes it is convenient to have redundant check equations when defining a code. Adding those may make some properties more apparent by adding symmetry to the set of check equations. Or, those extra checks may help the decoding process. Judging from your questions you can ignore warning for now.