Today's Quiz Computer Science
1) write a simple hello world program.
2) What two things must be found in every Java program.
3) Create a for-loop that would run 3 times and outputs Hi Bob each time it runs.
4) Categorize the following as compiling, run-time, or logic errors.
a) system.out.print ("duh") ;
b) when running the code, assume you input one value as follows: "Bob"
public static void main (String args[ ] ) {
System.out.println (args [ 1 ] ) ;
}
5) Create an infinite for-loop.