Consider the following code snippet :
var grand_Total=eval("10*10+5");
The output for the above statement would be :
var grand_Total=eval("10*10+5");
A. 10*10+5
B. 105 as a string
C. 105 as an integer value
D. Exception is thrown
Answer: Option C
Solution(By Examveda Team)
Even if the string value passed as a parameter to eval does represent a numeric value the use of eval() results in an error being generated.Consider the code snippet given below
var count = [1,,3];
A. The omitted value takes “undefined”
B. This results in an error
C. This results in an exception
D. None of the mentioned
A. true false
B. false true
C. true true
D. false true
The pop() method of the array does which of the following task ?
A. decrements the total length by 1
B. increments the total length by 1
C. prints the first element but no effect on the length
D. None of the mentioned
Consider the following code snippet :
if (!a[i]) continue ;
A. Skips the undefined elements
B. Skips the non existent elements
C. Skips the null elements
D. All of the mentioned
Join The Discussion