CIS 790 JAVA Distance Education QUIZ -03

Prof. Auciello's Virtual Classroom Quiz

9 - 11 class = Section 0175

Last.First Name:

 


Q001: TOPICS: 1. DEBUGGING 2. INTERACTING WITH THE COMPILER (letting the compiler teach you.) REFER TO THE PROGRAM BELOW: (I HOPE YOU RECOGNIZE IT!) class q4790 { public static void main (String args[]) { for (int x = 1; x < 11; x++) { System.out.println("Hello World, " + x); } } // ends for-loop } // ends class ANSWER THESE QUESTIONS: 1. What happens if the first letter of the program name is a number -- like 790q4 2. Look up the rule for a program name. 3. Compile this without 'static' -- What happens? 4. What happens if x++ is changed to ++x? 5. Rewrite so that loop decrements from 10 to 1. 6. Force syntax errors -- report at least (1) thing that you found out. AND I HOPE YOU KNOW HOW TO COPY, PASTE IT, AND RUN IT.