chi squared test or Z test? [duplicate]

I have an outcome from a biological experiment, where I have counted the number of dead cells upon a mutation. For example, in once case - out of 120 cells we saw 16% of the dead cells, but our expectations were around 10%. So to check the difference is significant I have performed 'z-test for changes in proportions'.

But my question is, whether is it possible to do ch-squared test on a single experiment like the above? I have Googled a lot, but all examples I see use a contingency table or involve multiple variables.

Yes, it's possible to do a chi-square test on this.

Specifically, this is the chi-square goodness of fit test. To do it correctly you set up two cells (one for dead, one for not dead), like so:

The chi-square is $\sum_i (O_i-E_i)^2/E_i$ and has $k-1$ df, where $k$ is the number of categories (k=2 in this case, meaning 1 df).