click below
click below
Normal Size Small Size show me how
LHS_COMPSCI
| Question | Answer |
|---|---|
| What is the output by the code below? | System.out.prnt("a\tc"); |
| Never put a semicolon before an open what? | { |
| What is the ASCII value of 'b'? | 98 |
| What is the ASCII value of 'B' | 66 |
| Which of the following can be used to comment code in Java? | // |
| Which of the following is a valid identifier in Java? | Chicken |
| Which of the following is a newline character? | \n |
| Which of the following is the tab character? | \t |
| Which of the following lines correctly defines a char variable? | char c = 'c'; |
| Which of the following lines correctly defines a double variable? | double d = 14.01 |