11.

Which one is a valid declaration of a boolean?

A.
boolean b1 = 0;

B.
boolean b2 = ‘false’;

C.
boolean b3 = false;

D.
boolean b4 = Boolean.false();

E.
boolean b5 = no;

12.

Which three are valid declarations of a float?

float f1 = -343;
float f2 = 3.14;
float f3 = 0x12345;
float f4 = 42e7;
float f5 = 2001.0D;
float f6 = 2.81F;

A.
1, 2, 4

B.
2, 3, 5

C.
1, 3, 6

D.
2, 4, 6

13.

Which is a valid declarations of a String?

A.
String s1 = null;

B.
String s2 = ‘null’;

C.
String s3 = (String) ‘abc’;

D.
String s4 = (String) ‘ufeed’;

14.

What is the numerical range of a char?

A.
-128 to 127

B.
-(215) to (215) – 1

C.
0 to 32767

D.
0 to 65535

 
Do you need a similar assignment done for you from scratch? We have qualified writers to help you. We assure you an A+ quality paper that is free from plagiarism. Order now for an Amazing Discount! Use Discount Code “Newclient” for a 15% Discount!NB: We do not resell papers. Upon ordering, we do an original paper exclusively for you.

The post java-quiz-1 appeared first on Essay Fount.


What Students Are Saying About Us

.......... Customer ID: 12*** | Rating: ⭐⭐⭐⭐⭐
"Honestly, I was afraid to send my paper to you, but you proved you are a trustworthy service. My essay was done in less than a day, and I received a brilliant piece. I didn’t even believe it was my essay at first 🙂 Great job, thank you!"

.......... Customer ID: 11***| Rating: ⭐⭐⭐⭐⭐
"This company is the best there is. They saved me so many times, I cannot even keep count. Now I recommend it to all my friends, and none of them have complained about it. The writers here are excellent."


"Order a custom Paper on Similar Assignment at essayfount.com! No Plagiarism! Enjoy 20% Discount!"