What is the output for the following code excerpts?

Question
What is the output for the following code excerpts?

Question image 1Question image 2Question image 3Question image 4Question image 5Question image 6