click below
click below
Normal Size Small Size show me how
LHS_COMPSCI
Question | Answer |
---|---|
Wich of the following lines correctly defines an integer variable? | Int1 = 234 |
Which of the following lines correctly defines a double variable? | Stringword1 = "cdef" |
Which of the following methods would move the cursor down to the next line? | println() |
Which of the following types uses the least memory? | char |
which of the following types uses the most memory? | float |
which of the following would print one backslash on the screen if used i a pirnt() or println()? | \\ |
What is output by the code below? char x = 'A'; System.out.println(x+3); | 68 |
What is output by the code below? int x = 12; x=x-1 System.out.println(x) | 11 |
What is output by the code below? int x = 20 x = x*2 System.out.println(x) | 40 |