Computer science
What is the output of the code below ? ("\9");
"9
Which of the following can be used to comment code in Java
//
What is the output of the code below System.out.println(3+""+3)
3 3
What is the output of the code below ( 3+6);
9
What is the output of the code below System.out.print("ab\\ab");
9.0
In java every statement ends with a what ?
;
What is the output of the code shown below System.print("a\tc")
A c
What is the output of the code below System.out.print("ab\\ab");
Ab\ab
What is the output of the code below String s="abcdef" System.out.println(s);
Abcdef
What is the output of the code below Strings =" abcdef"; System.out.println (s);
Abcdef
Every method must end in a what
Brace
Never put a semicolon before the end of what
Brace
Which of the following type uses least memory
Char
Which of the following chri toy defines a char variable
Char c= 'a';
Which of the following uses a 32 bit data type
Double
Which of the following uses the most memory?
Double
Which of the following correctly defines a double variable
Double d = 89.3
Which of the following correctly defines an integer variable
Int I =234;
What of the following is not a legal word reserved for a java data type
Integer
What is the output of the code below (String args[]) { }
Nothing
Which of the following methods would move the cursor down to the next line
Println()
Which of the following correctly defines a string variable
String s="cdef";
Which of the following would print one backlash on the screen if used in a print () or println()
\\
Which if the following is a new line character
\n
Which of the following is a tab character
\t