Pergunta de entrevista da empresa Qualys

How does the OS know the bit-ness of the program being executed, and how does it load the dependencies?