CommerceCaching And Debugging MCQs
Practice Caching And Debugging MCQs for competitive exams.
Caching And Debugging MCQs
Practice questions from this topic.
If we have an object r and want to know if it is a Range object, we can write:
- A. r typeof Range
- B. r is Range
- C. r equals Range
- D. r instanceof Range
Correct Answer: D
Which of the following are static methods in JavaScript?
- A. Date.parse()
- B. Date.UTC()
- C. Both Date.parse() and Date.UTC()
- D. None of the mentioned
Correct Answer: C
How many static methods does a Date object have?
- A. 3
- B. 5
- C. 4
- D. 2
Correct Answer: D
What is the purpose of the Math method toSource()?
- A. Returns the string “Math”
- B. Sends the source to the Math Library
- C. Returns the value of the object
- D. None of the mentioned
Correct Answer: A
Which of the following is not a JavaScript framework?
- A. Rico
- B. Prototype
- C. Joco
- D. DoJo
Correct Answer: D
How can you find a client’s browser name?
- A. browser.name
- B. navigator.appName
- C. client.navName
- D. none of the mentioned
Correct Answer: B
How do you find the number with the highest value of x and y?
- A. ceil(x,y)
- B. top(x,y)
- C. Math.ceil(x,y)
- D. Math.max(x,y)
Correct Answer: D
What is the syntax of close method for document object?
- A. Close(object)
- B. Close(doc)
- C. Close(val)
- D. Close()
Correct Answer: D
Which is a wrapped Java array, accessed from within JavaScript code?
- A. JavaArray
- B. JavaClass
- C. JavaObject
- D. JavaPackage
Correct Answer: A
Which of the following has a lesser benchmark time for using JQuery to access DOM versus pure JavaScript in milliseconds?
- A. Chrome JQueryDOM_
- B. Chrome JSDOM_benc
- C. Firefox JQueryDOM_
- D. Firefox JSDOM_benc
Correct Answer: D
What is the purpose of the function eval?
- A. Executes the string as an integer
- B. Gets the value of the string
- C. Executing string as JavaScript
- D. None of the mentioned
Correct Answer: C
Which class provides an interface for invoking JavaScript methods and examining JavaScript properties?
- A. ScriptObject
- B. JSObject
- C. JavaObject
- D. Jobject
Correct Answer: B