It is random, but the good thing is that all of the questions from each section appear together (at least they did on my exam). So you know when you move from one section to the next.
FYI, I had 12 questions on Threads! The rest were pretty evenly distributed.
“Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.” - Rich Cook