subject

What does the following code segment do?
var isseven =false;
while ( isseven==false )
{
var roll1=math. floor(math. random( )*6+1);
var roll2=math. floor(math. random( )*6+1);
if(roll1 + roll2 ==7)
{
isseven = true;
alert(roll1 +"--"+roll2);
}
}
it keeps generating two random numbers of any values until the sum of the two numbers is 7.
it keeps generateing two random numbers between 1 and 6, and adds up the two numbers.
it keeps generating two random numbers between 1 and 6, until the sum of the two numbers is 7.
it keeps generating two random numbers between 1 and 6, then check if the sum of the two numbers is 7.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 21:00
Which of these is most responsible for differences between the twentieth century to the twenty-first century?
Answers: 2
question
Computers and Technology, 22.06.2019 22:40
Write a program that defines symbolic names for several string literals (chars between quotes). * use each symbolic name in a variable definition. * use of symbolic to compose the assembly code instruction set can perform vara = (vara - varb) + (varc - vard); ensure that variable is in unsigned integer data type. * you should also further enhance your symbolic logic block to to perform expression by introducing addition substitution rule. vara = (vara+varb) - (varc+vard). required: debug the disassembly code and note down the address and memory information.
Answers: 3
question
Computers and Technology, 24.06.2019 17:30
Click on the tab on the ribbon to open the backstage view. file view insert review
Answers: 1
question
Computers and Technology, 24.06.2019 21:00
When replacing a thermostat or water pump, coolant drained from the cooling system should be
Answers: 1
You know the right answer?
What does the following code segment do?
var isseven =false;
while ( isseven==false )<...
Questions
question
Mathematics, 12.10.2020 17:01
question
Mathematics, 12.10.2020 17:01
question
Mathematics, 12.10.2020 17:01
question
Social Studies, 12.10.2020 17:01
question
Mathematics, 12.10.2020 17:01
question
Mathematics, 12.10.2020 17:01
Questions on the website: 13722360