Explore topic-wise InterviewSolutions in .

This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.

1.

What Is The Use Of Json () Method In Prototype?

Answer»

JSON () method: It is USED to check the string is valid JSON with the help of regular EXPRESSIONS.

JSON () method: It is used to check the string is valid JSON with the help of regular expressions.

2.

What Are The Form Methods Available In Prototype?

Answer»

The FORM methods available in PROTOTYPE are:

  • Disabled ()
  • Enable ()
  • Find First ELEMENT ()
  • Focus First Element ()
  • Getelements ()
  • GET Inputs ()
  • Request ()
  • RESET ()
  • Serialize ()
  • Serialize Elements ()

The form methods available in Prototype are:

3.

What Is The Use Of Is Hash () Method In Prototype?

Answer»

is HASH() METHOD: RETURNS TRUE if OBJECT is an instance of the Hash class, Otherwise returns false.

is Hash() method: Returns true if object is an instance of the Hash class, Otherwise returns false.

4.

What Is The Syntax Of Pluck () Method In Prototype?

Answer»

The SYNTAX of PLUCK () METHOD is: Iterator. Pluck (PROPERTY Name);

The syntax of pluck () method is: Iterator. Pluck (property Name);

5.

What Is The Use Of $h Method In Prototype?

Answer»

$H method: This method is USED to convert object into enumerable Hash object.

SYNTAX: $H ([OBJ])

$H method: This method is used to convert object into enumerable Hash object.

Syntax: $H ([obj])

6.

What Are The Features Of Json (javascript Object Notation)?

Answer»

The features of JSON are:

  • JSON is a lightweight data-interchange FORMAT.
  • Easy to read and WRITE for humans.
  • Easy to parse and GENERATE for MACHINES.
  • BASED on JavaScript Programming Language.
  • Completely language independent.

The features of JSON are:

7.

What Are The Methods Provided By Json For Encoding In Prototype?

Answer»

The METHODS PROVIDED by JSON for ENCODING are:

  • Number.toJSON ()
  • String.toJSON ()
  • Array.toJSON ()
  • Hash.toJSON ()
  • Date.toJSON ()
  • Object.toJSON ()

The methods provided by JSON for Encoding are:

8.

Name Some Callbacks That Are Not Implemented By All Browsers?

Answer»

CALLBACKS that are not implemented by all browsers are:

  • On LOADED
  • On Loading
  • On Interactive
  • On Uninitialized

Callbacks that are not implemented by all browsers are:

9.

What Are The Ajax Methods Available In Prototype?

Answer»

The AJAX methods AVAILABLE in Prototype are:

The AJAX methods available in Prototype are:

10.

What Is The Syntax Of $r Utility Function In Prototype?

Answer»

The syntax of $R utility function is: $R(start, end[, exclusive = FALSE]);

Example:

$R (1, 10).INSPECT ();

The syntax of $R utility function is: $R(start, end[, exclusive = false]);

Example:

$R (1, 10).inspect ();

11.

What Is The Major Advantage Of Periodical Executor?

Answer»

The MAJOR advantage of PERIODICAL Executor is: Periodical Executor shields you against multiple PARALLEL executions of the callback FUNCTION.

The major advantage of Periodical Executor is: Periodical Executor shields you against multiple parallel executions of the callback function.

12.

What Is The Use Of Periodical Executor Object?

Answer»

PERIODICAL Executor OBJECT: It is USED to EXECUTE a function many times after a certain PERIOD of time.

Periodical Executor object: It is used to execute a function many times after a certain period of time.

13.

What Are The Ways To Construct A Hash Instance In Prototype?

Answer»

Two ways to construct a HASH instance are:

Two ways to construct a Hash instance are:

14.

What Is Date.tojson () In Prototype?

Answer»

The DATE.toJSON () METHOD is used to CONVERT the date into a JSON string.

The Date.toJSON () method is used to convert the date into a JSON string.

15.

What Is Ajax In Prototype?

Answer»

16.

What Is $w () Method In Prototype?

Answer»

The $w () method is used to SPLITS a STRING into an ARRAY.

Here, all whitespace are treated as DELIMITERS.

The $w () method is used to splits a string into an array.

Here, all whitespace are treated as delimiters.

17.

What Is $a () Method In Prototype?

Answer»

$A () method: This method is used to CONVERTS the SINGLE ARGUMENT it receives into an array object.

$A () method: This method is used to converts the single argument it receives into an array object.

18.

What Is Include () Method In Prototype?

Answer»

include method: This method is USED to DETERMINE whether the value is included in the range or not.

If the value is included, then returns TRUE otherwise returns FALSE.

include method: This method is used to determine whether the value is included in the range or not.

If the value is included, then returns true otherwise returns false.

19.

What Are The Steps To Create The Formatted Output In Prototype?

Answer»

The STEPS to CREATE the formatted output are:

STEP 1: Create a template.

Step 2: Defining actual values.

Step 3: Mapping Keys and replacing Values.

The steps to create the formatted output are:

Step 1: Create a template.

Step 2: Defining actual values.

Step 3: Mapping Keys and replacing Values.

20.

What Is Templates In Prototype?

Answer»

TEMPLATES:

Templates:

21.

What Is Empty () Method In Prototype Element Method?

Answer»

EMPTY () method is used to CHECK whether the ELEMENT is empty or not.

empty () method is used to check whether the element is empty or not.

22.

What Is Inspect () Method In Prototype String Method?

Answer»

inspect () METHOD: This method is USED to RETURNS a debug-oriented version of the string.

inspect () method: This method is used to returns a debug-oriented version of the string.

23.

What Is Underscore () Method In Prototype String Method?

Answer»

UNDERSCORE () method: This method is USED to converts a String into a series of WORDS SEPARATED by an underscore.

underscore () method: This method is used to converts a String into a series of words separated by an underscore.

24.

What Are The Features Of Prototype?

Answer»

The features of PROTOTYPE are:

  • Extends DOM elements.
  • POWERFUL Ajax features.
  • Does not provide WIDGETS.
  • Advanced support for event management.
  • It is not a complete APPLICATION development framework.
  • Built-in support for class-style OOP including inheritance.

The features of Prototype are:

25.

Who Is The Developer Of Prototype?

Answer»

SAM STEPHENSON is the DEVELOPER of PROTOTYPE.

Sam Stephenson is the developer of Prototype.

26.

What Is Prototype?

Answer»