The text book exercises: Q. 4 (Identity the errors in the following code segments) & Q. 5 (Write down output of the following code segments) are solved in this lecture