Ask your own question, for FREE!
Computer Science 19 Online
SourMunchkin7806:

Evaluate the following code segment. What is the value of count after execution? int count = 1; for(int outer = 0; outer < 4; outer++) for(int inner = 1; inner < 3; inner++) count++; 1 3 9 12 13

SourMunchkin7806:

This one i have no clue

SourMunchkin7806:

@Vocaloid

ZoeyBiocth16:

here ill help u

SourMunchkin7806:

Thank youuu

SourMunchkin7806:

Ok help with one more?

SourMunchkin7806:

Assume rand has been declared as an object of the Random class. Consider the following statement: int randomNum = rand.nextInt(5); Which set or sets of integers represent possible values for randomNum? 0, 1, 2, 3, 4 0, 1, 2, 3, 4, 5 0, 5 I only II only III only I and III only II and III only

ZoeyBiocth16:

i dont know about this one

umm:

Zoey - Giving out direct answers isn't allowed; you have to show them how you got it. e.e

ZoeyBiocth16:

oh fudge i forgot umm

umm:

No worries, just a a heads up.

SourMunchkin7806:

Lol

dude:

Can't confirm the original q rand.nextInt(5); (Any value from 0-5) so it could be 0,1,2,3,4,5

SourMunchkin7806:

Awesomeeee thanks dude

SourMunchkin7806:

So just that right?

dude:

Ya

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!