click below
click below
Normal Size Small Size show me how
LHS_COMPSCI
Question | |
---|---|
Give an example of an integer variable | int y = 5 |
Give an example of a String variable | Sting var1 ="hello" |
Give an example of a method to move the cursor to a new line | println |
Give an example of a data type that uses the least amount of memory | char |
Give and example of a data type that uses the most amount of data | float |
Give an example of a printed backslash if used in print() or println() | \\ |
what i the output of the code below? char x = 'A' System.out.print(x+3) | 68 |
What is the output by the code below? int x = 12; x = x - 1; System.out.print(x) | 11 |
What is the output by the code below? int x = 15; x = x % 5; System.out.print(x) | 0 |
What is the output by the code below? int x = 20; x = x * 2; System.out.print(x) | 40 |