Its the format string, explaining how the variable temp will be displayed.
% signifies the start of a format string
0 means pad with a zero
q probably a typo - it doesn't have any special meaning that I can think of. had it been a 2 then this would say the number of characters to be printed out
x this is the conversion and says display the value as a hexadecimal number
|