ExamVeda
Login
Home
1
Which is the function used to loop in an array to view all the values?
Discuss
Answer & Solution
Answer: Option C
Solution:
The method jQuery.each(array, function) loops through the array.
2
Which of the following has a greater benchmark time for looping and JQuery vs core JavaScript in milliseconds?
Discuss
Answer & Solution
Answer: Option A
Solution:
When we try to compare the average benchmark time for looping and JQuery vs core JavaScript in milliseconds, the Chrome JQuery has a greater benchmark time.
3
Which class provides an interface for invoking JavaScript methods and examining JavaScript properties?
Discuss
Answer & Solution
Answer: Option B
Solution:
When a JavaScript object is passed or returned to Java code, it is wrapped in an instance of JSObject. When a JSObject instance is passed to the JavaScript engine, it is unwrapped back to its original JavaScript object. The JSObject class provides a way to invoke JavaScript methods and examine JavaScript properties.
4
What is the purpose of the function eval?
Discuss
Answer & Solution
Answer: Option C
Solution:
eval is a JavaScript native function that accepts a string and executes the string as JavaScript. It basically fires up the interpreter and allows the passed-in string to be parsed and interpreted at the time of invocation.
5
Which of the following has a lesser benchmark time for using JQuery to access DOM versus pure JavaScript in milliseconds?
Discuss
Answer & Solution
Answer: Option D
Solution:
When we try to compare the average benchmark time for using JQuery to access DOM versus pure JavaScript in milliseconds, the Firefox JSDOM_benc has a lesser benchmark time.
6
Which is a wrapped Java array, accessed from within JavaScript code?
Discuss
Answer & Solution
Answer: Option A
Solution:
JavaArray is accessed from within JavaScript code.
7
What is the syntax of close method for document object?
Discuss
Answer & Solution
Answer: Option D
Solution:
In order to close a document object, we need to call Close().
8
How do you find the number with the highest value of x and y?
Discuss
Answer & Solution
Answer: Option D
Solution:
Math.max(x,y) is used to find the highest value of x and y.
9
How can you find a client’s browser name?
Discuss
Answer & Solution
Answer: Option B
Solution:
The client’s browser name can be found by using navigator.appName.
10
Which of the following is not a JavaScript framework?
Discuss
Answer & Solution
Answer: Option D
Solution:
Dojo Toolkit is an open source modular JavaScript library (or more specifically JavaScript toolkit) designed to ease the rapid development of cross-platform, JavaScript/Ajax-based applications and web sites.