Sunday, July 15, 2007

First Preliminary Examination

The CSc 101 class sections LM1 and LM2 will not meet on Tuesday, July 17, 2007.

CSc 101's first preliminary exam will be on Friday, July 20, 2007. Bring your own test booklet, ball pen (black or blue), and extra money for your test questionnaire.

Coverage of the preliminary exam are the following:
  • History of Java (blog or Internet sources)
  • Development Cycle of a Program (JEDI)
  • Algorithms (Flowchart and Pseudocode) (JEDI and blog)
  • Overview of Java (Module 1)
  • Data Types and Operators (Module 2)

Possible exam types:

  • Modified True of False
  • Multiple Choice
  • Identification
  • Fill in the Blanks
  • Enumeration
  • Problem Solving

Note: I am not giving you a special exam except for those who have a valid reason.

Friday, July 6, 2007

Assignment No. 4: Familiarizing Common Compiling Errors in Java

Instruction:
Perform the following instructions on your computer. Write your actual sample Java programs and comment it with compiling errors it will produce in the compilation phase. The submission material should be computerized or a word-processor-generated.

Note: Do not predict the possible output or the compiling errors it will produce.

Points: 20 pts.

Problems:
  1. Create a small program that defines some fields. Try creating some illegal field names and see what kind of error the compiler produces. Use the naming rules and conventions as a guide from the course website.
  2. In the program you created in Exercise 1, try leaving the fields uninitialized and print out their values. Try the same with a local variable and see what kind of compiler errors you can produce. Becoming familiar with common compiler errors will make it easier to recognize bugs in your code.