subject

Considering the following code segment:
if(x> y) {
y=x;
}
else if (x == y){
x=1000;
}
else{
y =100;
}
alert ( 'x=' + x + ', y = '+y);
given x=0 and y=5, what will be displayed?
x=0, y=5
x=0, y=100
x=1000, y=100
x=0, y=0

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 13:50
The instruction ishl (shift left integer) exists in jvm but not in ijvm. it uses the top two values on the stack, replacing the two with a single value, the result. the sec- ond-from-top word of the stack is the operand to be shifted. its content is shifted left by a value between 0 and 31, inclusive, depending on the value of the 5 least signifi- cant bits of the top word on the stack (the other 27 bits of the top word are ignored). zeros are shifted in from the right for as many bits as the shift count. the opcode for ishl is 120 (0x78).a. what is the arithmetic operation equivalent to shifting left with a count of 2? b. extend the microcode to include this instruction as a part of ijv.
Answers: 1
question
Computers and Technology, 22.06.2019 16:30
What type of file does a cookie place on web site visitors' computers so that web site managers can customize their sites to their visitors' preferences?
Answers: 1
question
Computers and Technology, 23.06.2019 13:00
Which one of the following voltages should never be measured directly with a vom? a. 1200 v b. 500 v c. 800 v d. 100v
Answers: 2
question
Computers and Technology, 24.06.2019 05:00
Who is most likely be your target audience if you create a slide presentation that had yellow background and purple text
Answers: 2
You know the right answer?
Considering the following code segment:
if(x> y) {
y=x;
}
else if (x ==...
Questions
question
Mathematics, 10.12.2021 19:30
question
Chemistry, 10.12.2021 19:30
question
Social Studies, 10.12.2021 19:30
Questions on the website: 13722361