Home > MCQs > IT & Programming > Prototype Programming MCQs

Prototype Programming MCQ

Prototype Programming Quick Quiz

Question 1 of 10
  • You have a local autocomplete like the following:
    new Autocompleter.Local(arg1, arg2, arg3, arg4);
    Assume that you want to create a local autocomplete text field. You want to display all possible values on div1 div element and show this div to the user. Which of the following arguments is the value of div1 div?

    Answer & Explanation

    Correct Answer: arg2

    Note: This Question is unanswered, help us to find answer for this one

  • Which of the following options is/are valid element(s) of the function-Form.Element.present(element)

    Answer & Explanation

    Correct Answer: input

    Note: This Question is unanswered, help us to find answer for this one

  • Which of the following methods can you use to make an element droppable?

    Answer & Explanation

    Correct Answer: Droppables.add($('id1')); 

    Note: This Question is unanswered, help us to find answer for this one

  • If you create a draggable object, but do not create any droppable objects, then the draggable object cannot be moved by drag and drop actions.

    Answer & Explanation

    Correct Answer: False

    Note: This Question is unanswered, help us to find answer for this one

  • Which of the following ways can you use to check whether prototype is loaded or not?

    Answer & Explanation

    Correct Answer: typeof(Prototype) === "object"

    Note: This Question is unanswered, help us to find answer for this one

  • The callback function in options of Ajax.Autocomplete() is called ___ the request is actually made

    Answer & Explanation

    Correct Answer: before

    Note: This Question is unanswered, help us to find answer for this one

  • What is the result of the following code snippet?
    [1, null, 2, false, 3].partition();

    Answer & Explanation

    Correct Answer: [[1, 2, 3], [null, false]]

    Note: This Question is unanswered, help us to find answer for this one

  • Consider the following code snippet: var s = "; (5).times(function(n) {    s += n; }); alert(s); What does the alert box display?

    Answer & Explanation

    Correct Answer: 01234

    Note: This Question is unanswered, help us to find answer for this one

  • The time to complete an effect generally depends on the speed of the computer.

    Answer & Explanation

    Correct Answer: False

    Note: This Question is unanswered, help us to find answer for this one

  • PeriodicalUpdater updates an element ___

    Answer & Explanation

    Correct Answer: at the given frequency.

    Note: This Question is unanswered, help us to find answer for this one

  • Prototype Programming Quick Quiz

    battery

    Poor Results!

    You need a lot of improvement.

    Just don't give up!

    Correct Answers: 0/10

    Start Practicing with our MCQs given below.