NVIDIA interview question

Some puzzles, some programs in C and various methods of executing the same program.