click below
click below
Normal Size Small Size show me how
LHS_COMPSCI
Question | Answer |
---|---|
which of the following lines correctly defines a integer variable | int x = 256; |
which of the following lines correctly describes a string variable | string word1 = "hello" |
which of the following methods would move the cursor down to the next line | println() |
which of the following uses the least memory | char |
which of the following uses the most memory | float |
which of the following would print one backslash on the screen | \\ |
what is the output of the code below char x = 'A'; system.out.print(x+3); | 68 |
whats the output int x = 12 ; x = x-1; | 11 |
whats the output int x = 15; x=x%15 | 0 |
whats the output int x=20; x=x*2 | 40 |