Initial volume of the gas (V1) = 10 inches^3
Initial pressure (P1) = 5 psi
Final pressure after compression of the gas (P1) = 10 psi
Let us assume the final volume of the gas (V2) = x
According to Boyle's Gas law, the pressure and volume of a gas remains constant under ideal condition. Then
P1V1= P2V2
5 * 10 = 10 * x
50 = 10x
x = 50/10
= 5 cubic inches
So the volume of the gas after it was compressed was 5 cubic inches. I hope the procedure is clear enough for you to understand.
Magnetic field direction is given by right hand thumb rule.
If we put our thumb in the direction of current then curl of fingers will show the magnetic field direction around the wire.
Now here since current is going into the screen so we will put our thumb into the screen and then the curl of fingers is clockwise around it.
The magnetic field is clockwise.
So this would be the direction of magnetic field
The answer for the online test is going to be the last one, D