CIS 162 AD - C# Programming I - Section 5832
Worksheet #1
due Thursday, February 2, 2006

Name:

I. Definitions: please explain the following terms:

  1. variables

  2. class

  3. instance of a class

  4. encapsulation

  5. white space

  6. IDE

  7. intermediate language

  8. syntax error

  9. data type

  10. format string

II. Questions or short essay

  1. Explain the difference between procedural programming and object oriented programming.

  2. What is the difference between the WriteLine() method and the Write() method?

  3. What are the rules for creating an identifier?

  4. What does it mean that the C# language is case sensitive?

  5. What are the common ways of adding comments to your program?

  6. What are the common floating-point data types?

  7. How is the char data type different from the string data type?
III. Programming Exercise

    Write a program that declares five variables to hold scores for five tests you have taken. Have the program accept the five scores from a user of the program. Display the average of the tests to two decimal places. Turn in your source code for this program.