CSE 142
-
Below is a program, but it is not executable. Explain what executable means, why the program below is not executable, and what you need to add to make it executable?
public class Hello { }
-
Write an executable program that prints "Hello World!"
-
Describe the errors in the program below.
public MyProgram { public static void main(String[] args) { System.out.println("This is a test of the") System.out.Println("emergency broadcast system."); } }
-
What is the name of the character shown:
\ -
What is the name of the character shown:
/ -
Fill in the escape sequence that matches each character described in the table below.
Escape sequence Description Newline Tab Double quote Backslash -
What will be printed to the console when the program below is run?
System.out.println("\"Quotes\""); -
What will be printed to the console when the program below is run?
System.out.println("Slashes \\//"); -
Fill in the table below, evaluating the expressions
Expression What does it evaluate to 3 + 4 + " 2 + 2"4.0 / 2 * 9 / 28 / 5 + 13 / 2 / 3.0"hello 34 " + 2 * 4