Here it is say designated initial and final state so they are fixed .
so we just need to calculate the transition possible.
now for dfa $Q × Σ → Q$
here Q={Q1,Q2} as defined two states.
$\sum \doteq${0,1}.
so number of function possible 2^4.
Q × Σ contain 4 elements .
∑ contains 2 elements.