Question
var grand_Total=eval("10*10+5");
The output for the above statement would be :
a.
10*10+5
b.
105 as a string
c.
105 as an integer value
d.
Exception is thrown
Posted under JavaScript
Engage with the Community - Add Your Comment
Confused About the Answer? Ask for Details Here.
Know the Explanation? Add it Here.
Q. Consider the following code snippet : var grand_Total=eval("10*10+5"); The output for the above statement would be :
Similar Questions
Discover Related MCQs
Q. Do functions in JavaScript necessarily return a value ?
View solution
Q. Consider the following code snippet :
var tensquared = (function(x) {return x*x;}(10));
Will the above code work ?
View solution
Q. Consider the following code snippet :
var string2Num=parseInt("123xyz");
The result for the above code snippet would be :
View solution
Q. If you have a function f and an object o, you can define a method named m of o with
View solution
Q. For the below mentioned code snippet:
var o = new Object();
The equivalent statement is:
View solution
Q. What is the difference between the two lines given below ?
!!(obj1 && obj2);
(obj1 && obj2);
View solution
Q. What kind of scoping does JavaScript use?
View solution
Q. What must be done in order to implement Lexical Scoping?
View solution
Q. What is a closure?
View solution
Q. Which of the following are examples of closures?
View solution
Q. Which of the following uses a lot of CPU cycles?
View solution
Q. What is the fundamental rule of lexical scoping?
View solution
Q. What is the opposite approach to the lexical scoping?
View solution
Q. What is the purpose of the dynamic scoping?
View solution
Q. Which of the algorithmic languages is lexical scoping standardized in?
View solution
Suggested Topics
Are you eager to expand your knowledge beyond JavaScript? We've curated a selection of related categories that you might find intriguing.
Click on the categories below to discover a wealth of MCQs and enrich your understanding of Computer Science. Happy exploring!