I know how to get a critical value but I am not sure now how to do it when they added "when testing the claim that p = 1/2"....
how did they get the answer for critical value ?

I know how to get a critical value but I am not sure now how to do it when they added "when testing the claim that p = 1/2"....
how did they get the answer for critical value ?

The critical values are the set of $z-$ values {$z_0,-z_0$} that have the property that $\alpha$% of the probability lies in the interval $(z_0, -z_0)$. As an example, if you know the $1-2-3$ rule, a.k.a $68-95-99.7$% rule, you know that the critical values for $\alpha=68$ are {$-1,1$} , the critical values for $\alpha=95$% are {$-2,2$}, etc. You can look up in this table: http://www.mathsisfun.com/data/standard-normal-distribution-table.html , how to get critical values for a given significance level: since you're doing a 2-sided test, just move the cursor to the place where you read the percentile $(1-\alpha)/2$.
It would be good if we could see the entire question, but if it is the Sign-Test, then it make sense to use p = 1/2 because it is either "yes" (assigned a plus) or a "no" (assigned a minus, hence the name of the test) But again, more information about the question would be useful