+ 2

Which ones are valid as floats ? (multiple choices)

(a) 2 (b) 0 (c) 5.5f (d) 4.3

13th Apr 2017, 10:21 AM
Vikas Sharma
Vikas Sharma - avatar
6 odpowiedzi
+ 11
what was the programming language? because In some programming language their is too much difference between FLOAT and INTEGERS. Like Java according to Java right answer is option C but in C language their is Option C and Option D.
14th Apr 2017, 10:53 AM
Ajay Agrawal
Ajay Agrawal - avatar
+ 7
D, :D
13th Apr 2017, 10:40 AM
MrCoder
MrCoder - avatar
+ 7
Hmm, Its probably letter C, but theres an 'f' there so I didnt choose it 😅
13th Apr 2017, 10:43 AM
MrCoder
MrCoder - avatar
+ 4
@MrCoder more than one answers
13th Apr 2017, 10:42 AM
Vikas Sharma
Vikas Sharma - avatar
+ 3
a,b & c are right answer and d is wrong. (a) 2 can use as float (b) 0 also can use as float (c) 5.5f is float . "f" is the symbol of float. (d) 4.3 is double data type it's not valid as float
13th Apr 2017, 1:25 PM
Vikas Sharma
Vikas Sharma - avatar
+ 1
All of them except c ?
13th Apr 2017, 12:45 PM
Tianhe Wang