Take as many assements as you can to improve your validate your skill rating
Total Questions: 20
1. Consider the following code snippet :
var grand_Total=eval("10*10+5");
The output for the above statement would be :
Correct Answer is : 105 as an integer value
2. Do functions in JavaScript necessarily return a value?
Correct Answer is : Few functions return values by default
3. Consider the following code snippet :
var tensquared = (function(x) {return x*x;}(10));
Will the above code work ?
Correct Answer is : Yes, perfectly
4. Consider the following code snippet :
var string2Num=parseInt("123xyz");
The result for the above code snippet would be :
Correct Answer is : 123
5. The one-liner code that concatenates all strings passed into a function is
Correct Answer is : function concatenate()
6. If you have a function f and an object o, you can define a method named m of o with
Correct Answer is : o.m=f;
7. For the below mentioned code snippet:
var o = new Object();
The equivalent statement is:
Correct Answer is : var o= new Object;
8. What is the difference between the two lines given below ?
!!(obj1 && obj2);
(obj1 && obj2);
Correct Answer is : The first line results in a real boolean value whereas the second line merely checks for the existence of the objects
9. Consider the following code snippet :
var c = counter(), d = counter();
c.count()
d.count()
c.reset()
c.count()
d.count()
The state stored in d is :
Correct Answer is : 1
10. Consider the following code snippet :
function constfuncs()
{
var funcs = [];
for(var i = 0; i < 10; i++)
funcs[i] = function() { return i; };
return funcs;
}
var funcs = constfuncs();
funcs[5]()
What does the last statement return ?
Correct Answer is : 10
11. R is an extension of which of the following language?
Correct Answer is : S
12. Which of the following is/are statistical languages?
Correct Answer is : None of the mentioned
13. Which of the following is a successor to the S language?
Correct Answer is : R
14. What are the purposes R can be used for?
Correct Answer is : All of the mentioned
15. What type of language is generally used to collect the data?
Correct Answer is : Glue language
16. What are the processes that take place within R?
Correct Answer is : All of the mentioned
17. Which platform is R imported to after charting as a PDF?