question

 

 

List different methods of capturing input and output AND give an example of each method