Apple Interview Question

1) Stack vs Ques 2) Mutex and Semaphores 3) GPIO vs RTOS 4) Write a code for Endianness?