can i have the answers please for all the questions Thanks c
can i have the answers please for all the questions. Thanks
c
Solution
1)
B) int length, width;
C)int length; int width;
2)
A) int number = 2;
3)
char c = ‘d’;
char c = 100;
4)
A) y is 3
5)
B) 66 if assigned to int variable
6)
B) x = (float)d;
7)
B) 8.0
8)
C) if(radius>0)System.out.println(radius*radius*3.14159);
9)
B) 11
32)
C) Java AAA neat
33)
E) 0
34)
B) 11
35)
C) (ch>=‘A’ && ch<=‘Z’)
36)
C) ((x<100) && (x>1)) || (x<0)
37)
A) undefined
38)
A) 10
39) Top-down approach
40)
A) 3
41)
D) 101
42)
C) StringIndexOutOfBoundsException
43)
Integer.parseInt(s);

