Pregunta de entrevista de Qualys

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