For the hydrogen electrode the half-reaction is
2H+(aq)+2e−→H2(g)
The Nernst equation at 298 K is
E=E∘−n0.0591logQ
where n=2 and the reaction quotient is
Q=[H+]2p(H2)
Because E∘=0 V for a standard hydrogen electrode, we get
E=−20.0591log([H+]2p(H2))−(1)
The sign of E depends only on the sign of the logarithm:
• If log(…)>0, the quantity inside is >1 and the term subtracted in (1) is positive, making E negative.
• If log(…)<0, the ratio is <1 and E becomes positive.
Evaluate each option:
Option A: p=1atm,[H+]=1M
[H+]2p=121=1⟹log1=0
Hence E=0 (neither positive nor negative).
Option B: p=2atm,[H+]=1M
[H+]2p=122=2⟹log2>0
In (1) we subtract a positive number, so E is negative.
Option C: p=2atm,[H+]=2M
[H+]2p=(2)22=0.5⟹log0.5<0
Subtracting a negative value makes E positive.
Option D: p=1atm,[H+]=2M
[H+]2p=(2)21=0.25⟹log0.25<0
Again E is positive.
Only Option B yields a positive logarithm and therefore a negative electrode potential.
Final answer: Option B which is: p(H2)=2atm and [H+]=1.0M.