MooTools is a JavaScript framework. It is a lightweight, object-oriented, and released under the free, open-source MIT License.
MooTools MCQs: This section contains multiple-choice questions and answers on the various topics of MooTools. Practice these MCQs to test and enhance your skills on MooTools.
List of MooTools MCQs
1. What is the full form of Mootools?
- Merge object-oriented tools
- My object-oriented tools
- More object-oriented tools
- Main object-oriented tools
Answer: B) My object-oriented tools
Explanation:
Full form of Mootools is: My object-oriented tool.
2. Mootools is a ____ framework?
- JavaScript
- Python
- C++
- Java
Answer: A) JavaScript
Explanation:
Mootools is a JavaScript framework.
3. Is Mootools an open-source framework?
- Yes
- No
Answer: A) Yes
Explanation:
Mootools is a free and open-source framework.
4. ____ is a set of utility functions that are required by all other components.
- More
- Class
- Core
- Native
Answer: C) Core
Explanation:
A core is a set of utility functions that are required by all other components.
5. HTML components are selected using ____?
- Class
- Events
- Elements
- Selectors
- Actions
Answer: D) Selectors
Explanation:
HTML components are selected using selectors.
6. In MooTools, the fundamental selector is the ____?
- @
- $
- #
- %
Answer: B) $
Explanation:
In MooTools, the fundamental selector is the $.
7. ____ is an extension of the fundamental selector ($)?
- Merger()
- GET()
- getElement()
- Setter()
Answer: C) getElement()
Explanation:
getElement() is an extension of the fundamental selector ($).
8. getElement() only selects the ____?
- Single element
- Multiple elements
- None
Answer: A) Single element
Explanation:
getElement() only selects a single element.
9. The ____ is used to select multiple elements.
- _$
- $_$
- $_
- $$
Answer: D) $$
Explanation:
The $$ is used to select multiple elements
10. In MooTools, the ____ function allows you to choose numerous HTML elements on a web page depending on various criteria.
- getElements()
- getElement()
- get()
- set()
Answer: A) getElements()
Explanation:
In MooTools, the getElements() function allows you to choose numerous HTML elements on a web page depending on various criteria.
11. Which of the following operator Select an input element by comparing the first letters of its name?
- @=
- $=
- ^=
- None
Answer: C) ^=
Explanation:
^= operator, selects an input element by comparing the first letters of its name.
12. ____ method is used to eliminate all white spaces from a string while keeping a single gap between words.
- Trim()
- Foreward()
- Erase()
- Clean()
Answer: D) Clean()
Explanation:
Clean() method is used to eliminate all white spaces from a string while keeping a single gap between words.
13. The ____ function is used to provide the lower and upper bounds for an integer.
- Bound()
- Limit()
- Set_limit()
Answer: B) Limit()
Explanation:
The limit() function is used to provide the lower and upper bounds for an integer.
14. Which of the following method converts any input value to an integer?
- Convert()
- Type()
- ToInt()
Answer: C) ToInt()
Explanation:
ToInt() method converts any input value to the integer.
15. To move an element across the page, utilize the ____ function.
- Inject()
- Move()
- Aside()
- Move_Page()
Answer: A) Inject()
Explanation:
To move an element across the page, utilize the inject() function.
16. Is there any difference between the function syntax of JavaScript and MooTools?
- Yes
- No
Answer: B) No
Explanation:
The function syntaxes of JavaScript and MooTools are identical, however, the difference is in invoking a function.
17. Which of the following function allows you to copy an array?
- $copy
- $C()
- $localcopy
- $A()
Answer: D) $A()
Explanation:
$A() method allows you to copy an array.
18. Which of the following function will obtain a random element from an array?
- Random()
- Any()
- getRandom()
- getAny()
Answer: C) getRandom()
Explanation:
getRandom() method will obtain a random element from an array.
19. Which of the following function returns the array’s final element?
- Final()
- getLast()
- End()
- LastElement()
Answer: B) getLast()
Explanation:
The getLast() function returns the array’s final element.
20. ____ is a function for testing the regular expression against the input string.
- Regex()
- Testing()
- Test()
- Regex_test()
Answer: C) Test()
Explanation:
test() is a function for testing the regular expression against the input string.
21. If you don’t want a regular expression to be case sensitive then ____?
- use the option ‘I’ when using the test function.
- use the option ‘CaseSenstive’ when using the test function.
- use the option ‘remove’ when using the test function.
- use the option ‘Ignore’ when using the test function.
Answer: A) use the option ‘I’ when using the test function.
Explanation:
If you don’t want a regular expression to be case-sensitive, use the option ‘I’ when using the test function.
22. Which of the following is a special operator that checks the regular expression at the start of a given string?
- !
- ~
- $
- ^
Answer: D) ^
Explanation:
The regex ^ is a special operator that checks the regular expression at the start of a given string.
23. Which of the following is a special operator that checks the regular expression at the end of a string?
- !
- ~
- $
- ^
Answer: C) $
Explanation:
The Regex ‘$’ is a special operator that checks the regular expression at the end of a string.
24. Which of the following function is used to stop the periodical function?
- $stop()
- $clear()
- $end()
Answer: B) >$clear()
Explanation:
$clear() method is used to stop the periodical function.
25. ____ is defined as content that is present in the tabbed area and is related to the list items.
- Tabbed content
- Tooltip
- Objectify
Answer: A) Tabbed content
Explanation:
Tabbed content is defined as content that is present in the tabbed area and is related to the list items.
26. A ____ is a function that employs a collection of instructions from a certain class.
- Components
- Class
- Object
- Constructor
- Method
Answer: E) Method
Explanation:
A Method is a function that employs a collection of instructions from a certain class.
27. A ____ is a container for a set of variables and functions that execute specified actions on those variables.
- Components
- Class
- Object
- Constructor
Answer: B) Class
Explanation:
A class is a container for a set of variables and functions that execute specified actions on those variables.
28. Fx.Slide provides how many options?
- 6
- 3
- 4
- 2
Answer: D) 2
Explanation:
There are only two Fx.Slide options — mode and wrapper.
29. How many types of modes are provided in Fx.slide?
- 2
- 3
- 4
- 5
Answer: A) 2
Explanation:
You have two options for mode: vertical or horizontal.
30. Which of the following method allows for seamless transitions between two different style property values?
- Transitions()
- Tween()
- Trans()
- Motions()
Answer: B) Tween()
Explanation:
Tween() method allows for seamless transitions between two different style property values.
31. Which of the following method changes the opacity of an element?
- Opacity()
- Transparent()
- Fade()
Answer: C) Fade()
Explanation:
The fade() method changes the opacity of an element.
32. ____ are features that enable you to construct draggable and sortable lists or grids?
- Transitions
- Moved
- Dragged
- Sortables
Answer: D) Sortables
Explanation:
Sortables are features that enable you to construct draggable and sortable lists or grids.
33. Which of the following companies are using Mootools?
- Dell
- IBM
- Accenture
- All of the above
Answer: D) All of the above
Explanation:
Following companies are using Mootools:
- Dell
- IBM
- Accenture
- Wikipedia
34. What are the alternatives to Mootools?
- Jquery
- React
- Angular
- All of the above
Answer: D) All of the above
Explanation:
Following are the alternatives of Mootools:
- Jquery
- React
- Angular
- Vue
- Backbone