ParseDouble is a method in the class A System B Double C Mat
ParseDouble is a method in the class. A) System B) Double C) Math D) Integer Which of the following assignment statements is incorrect. A) i = 1; j = 1; k = 1; B) i =1 = j = 1 = k = i; C) i = j = k = 1; D) i = -j = -k = -1; A Java statement ends with a A) semicolon(;) B) period() C) Closing brace D) comma(, ) What is the result of 45/4? A) 12)11.25 C) 10 D) 11 A Java character is stored in A) four bytes B0 one byte C) two bytes D) three bytes Which of these data type requires the most amount of memory? A) int B) byte C) long D) short To add a value 1 to variable x, you write A) x = x + 1; B) x + = 1; C) x:= 1; D) 1 + x =x E) x = 1 + x; What is y displayed in the following code? public class Test1[public static void main(String[] args)[int x = 1; int y = x = x + 1; System. out.print;\"y is\" + y);]] A) y is 2 because x + 1 is assigned to x and then x is assigned to y, B) The program has a syntax error since x is redeclared in the statement int y = x = x + 1. C) y is 1 because x is assigned to y first. D) y is 0. -24 % -5 is A) -3 B) 3 C) 4 D) -4 E) 0 Which of the following assignment statements is correct? A) char c = \"d\"; B) char c = \"100\"; C) Char c = 100; D) char c = \'d\'; Which of the following expression results in a value 1? A) 2 % 1 B) 15 % 4 C) 25 % 5 D) 37 % 6
Solution
38.parseDouble(String s) Returns a novel double initialized to the value signified by the definite String , as accomplished by the value Of method of class Double .
40. java statement ends with a semicolon (;)
41.45/4 = 11.25
42. Java stores characters as 2 bytes, however for normal ASCII characters the real data fits in one byte
43. long
46. -4
