MCQ
‘Which is the statement used to assign a literal 10.2 to variable ‘rate’ of float type?
  • A
    Float rate 10.2
  • B
    Float rate = 10.2F
  • C
    Float rate = 10.2f
  • b or c

Answer

Correct option: D.
b or c
b or c

Need a full question paper?

Generate a complete, print-ready paper with questions like this in minutes — across 16+ boards, with answer keys.

Start Generating Free