C# (Student Questions)

Oct 20 2017 12:28 AM
Hello, 
 
I'm currently taking my second C# class and I'm still confused with some of the concepts and basic principles. Therefore, I was hoping someone could provide me a little clarification for the questions listed below. Any help would be greatly appreciated!!
 
1. What is the difference between C# and C#(with .Net Framework)?
 
2. I understand the basics of creating a method, however, what is the purpose of passing parameters through a method? Please provide an example if you can. 
 
3. I've grasped the literary concept of decision statements (i.e. if, if-else, while-do, and switch-case) but I'm always unsure as to when exactly they should be used during the coding process. To me, it appears that the "if" statement can apply to every code I create. 
 
4. How do I determine when to use a while-do, for and/or do statement?
 
5. When it comes to managing errors, should I code everything in a try/catch and/or try/finally method? Not to mention, what is the different between a FormatException and OverFlowException??
 
 
 

Answers (1)