Please give the correct option for all three ofno need for e

Please give the correct option for all three of.(no need for explanation as i only need correct option and it will save your time as well. Will definitely leave positive rating if all three Q\'s options are given. (Its intro to java).
Thanks!
What is the output of the following code segment? for (int i = 1; i

Solution

1. 0101 in the first for loop when the value of i is 1 the for loop of j is starting. in j for loop there are 2 iterations that are 0 and 1 so after every iteration the value is being printed. the value of j for loop is 0 and 1 in the 1st iteration of i and in the second iteration of i the values will be 0 and 1 so the total output is 0101

2.11991 in the second problem while loop has been initiated for (nObserved > 0) so for the values which are greater than 0 are initiated so the values 11 and 99 are processed and are being printed in the loop after the loop is terminated there is a print statement that adds 1 to the obtained output

3. sentinel value is simply any constant of your choosing that is not a legitimate value in a data set, so you can use it to mark the end of a sequence. so \"a sentinel value is a value that is a special value that cannot be mistaken as a member of a list\".

Please give the correct option for all three of.(no need for explanation as i only need correct option and it will save your time as well. Will definitely leave

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site