CIS 162 AD - C# Programming I - Section 5832
Quiz #1
Due Thursday, February 16, 2006

Name:

Definitions: please explain the following terms:

  1. hardware

  2. RAM

  3. IDE

  4. unicode

  5. top-down design

  6. pseudocode

  7. data type

  8. method

  9. constructor

  10. bool

II. Questions or short essay

  1. What is the difference between system software and application software?

  2. What is the difference between object-oriented programming and procedural programming?

  3. What is a reference data type?

  4. From where in the program can you access private members?

  5. What does the void keyword specify?

  6. What is an overloaded method?

III. Programming Exercise

    Create a class named Circle with fields named radius, area, and diameter. Include a constructor that sets the radius to 1. Also include public methods named SetRadius(), GetDiam(), GetArea(), ComputeDiameter(), which computes a circle's diameter, and ComputeArea(), which computes a circles' area. (The diameter of a circle is twice the radius. The area of a circle is Pi (3.14) times the square of the radius.)

    .