answer all the question along with diagrams, represntations and coding wherever required .