in Technology by

What is the output for the following
function test(x) {
while(x < 5)
{ x++; }
return x; }
alert(test(2));
A) 6
B) 3
C) 2
D) 5

#insurance and Loans 

1 Answer

0 votes
by

Answer:-5

#insurance 

Related questions

0 votes
    What is the output for the following function test(x) { while(x < 5) { x++; } return x; } alert(test(2)); 1. 6 2. 3 3. 2 4. 5...
asked Feb 25, 2021 in Technology by JackTerrance
0 votes
    What is the output of [1, 2, 3] + [4, 5, 6]?...
asked Nov 26, 2020 in Technology by JackTerrance
0 votes
    Predict the output of the following JavaScript code.
    Bag I contains 3 red and 4 black balls while another Bag II contains 5 red and 6 black balls. One ball is ... was drawn from Bag II. Select the correct answer from above options...
asked Nov 13, 2021 in Education by JackTerrance
0 votes
    Let X and Y be two events such that P(X/Y) = \(\frac{1}{2}\) , P(Y/X) =\(\frac{1}{3}\) and P(X∩Y) =\( ... (d) P(XC∩Y) = \(\frac{1}{3}\) Select the correct answer from above options...
asked Nov 19, 2021 in Education by JackTerrance
0 votes
    If X and Y are two events such that PX/Y)= 1 2 ,P(Y/X)= 1 3 and P(X∩Y) 1 6 . Then, which of the ... 1 6 D. X and Y are not independent Select the correct answer from above options...
asked Nov 16, 2021 in Education by JackTerrance
0 votes
    Q. 3 Answer the given questions (4 x 2 = 8 marks) Find the output for the following. a) x=4 y=x-1 x=2 print(x, y) Select the correct answer from above options...
asked Dec 23, 2021 in Education by JackTerrance
0 votes
    1. Predict the output of the following operations if x=5 and y=3. x>=10&& y>=4 f. x>=1 || y>=4 Select the correct answer from above options...
asked Dec 21, 2021 in Education by JackTerrance
...