Computer Science, asked by yaehya2q, 1 year ago

please no spamming
and please correct answer
please solve 13 and 14

Attachments:

Answers

Answered by nitish8089
1
so answer of question...
13) the option (a) is correct we are assigning the double value into int data type variable..
it's loosy consversion we have been loss our data...
14) now also the option (a) is correct because for Math.random() gives the value in between 0 to 1 where 0(inclusive) to 1 (exclusive) decimal value but as you getting that the probability to come 0.0 is so rear so (c) is also right. .
Similar questions