Westonci.ca is the Q&A platform that connects you with experts who provide accurate and detailed answers. Get accurate and detailed answers to your questions from a dedicated community of experts on our Q&A platform. Get immediate and reliable solutions to your questions from a community of experienced professionals on our platform.

Consider the following code segment

Consider The Following Code Segment class=

Sagot :

Answer:

D:

2

54

Explanation:

In line 3 Math.random() will return a number between 0 and 1, so the minimum is 3 (0*5+3=3), therefore it is impossible for line 4 to return the value 2