Commerce

Caching 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:

  1. A. r typeof Range
  2. B. r is Range
  3. C. r equals Range
  4. D. r instanceof Range
Report Error

Which of the following are static methods in JavaScript?

  1. A. Date.parse()
  2. B. Date.UTC()
  3. C. Both Date.parse() and Date.UTC()
  4. D. None of the mentioned
Report Error

How many static methods does a Date object have?

  1. A. 3
  2. B. 5
  3. C. 4
  4. D. 2
Report Error

What is the purpose of the Math method toSource()?

  1. A. Returns the string “Math”
  2. B. Sends the source to the Math Library
  3. C. Returns the value of the object
  4. D. None of the mentioned
Report Error

Which of the following is not a JavaScript framework?

  1. A. Rico
  2. B. Prototype
  3. C. Joco
  4. D. DoJo
Report Error

How can you find a client’s browser name?

  1. A. browser.name
  2. B. navigator.appName
  3. C. client.navName
  4. D. none of the mentioned
Report Error

How do you find the number with the highest value of x and y?

  1. A. ceil(x,y)
  2. B. top(x,y)
  3. C. Math.ceil(x,y)
  4. D. Math.max(x,y)
Report Error

What is the syntax of close method for document object?

  1. A. Close(object)
  2. B. Close(doc)
  3. C. Close(val)
  4. D. Close()
Report Error

Which is a wrapped Java array, accessed from within JavaScript code?

  1. A. JavaArray
  2. B. JavaClass
  3. C. JavaObject
  4. D. JavaPackage
Report Error

Which of the following has a lesser benchmark time for using JQuery to access DOM versus pure JavaScript in milliseconds?

  1. A. Chrome JQueryDOM_
  2. B. Chrome JSDOM_benc
  3. C. Firefox JQueryDOM_
  4. D. Firefox JSDOM_benc
Report Error

What is the purpose of the function eval?

  1. A. Executes the string as an integer
  2. B. Gets the value of the string
  3. C. Executing string as JavaScript
  4. D. None of the mentioned
Report Error

Which class provides an interface for invoking JavaScript methods and examining JavaScript properties?

  1. A. ScriptObject
  2. B. JSObject
  3. C. JavaObject
  4. D. Jobject
Report Error