Polymer JS MCQ Questions And Answers
PolymerJS MCQ : This section focuses on "Basics" of Polymer JS. These Multiple Choice Questions (MCQ) should be practiced to improve the PolymerJS skills required for various interviews (campus interviews, walk-in interviews, company interviews), placements, entrance exams and other competitive examinations.
1. Polymer.js is a JavaScript library created by?
A. Facebook
B. Google
C. IBM
D. Oracle
View Answer
Ans : B
Explanation: Polymer.js is a JavaScript library created by Google that allows reusing the HTML elements for building applications with components.
2. Polymer is an open-source?
A. TRUE
B. FALSE
C. Can be true or false
D. Can not say
View Answer
Ans : A
Explanation: Polymer is an open-source JavaScript library developed by Google developers.
3. PolymerJs initially released on?
A. May 20, 2015.
B. Jun 27, 2015.
C. Mar 27, 2015.
D. May 27, 2015.
View Answer
Ans : D
Explanation: PolymerJs was initially released on May 27, 2015. The stable release is 1.7.0 and it was released on September 29, 2016.
4. It provide __________ data binding?
A. one-way
B. two-way
C. Both A and B
D. None of the above
View Answer
Ans : C
Explanation: It provides both one-way and two-way data binding.
5. Which of the folllowing features of polymerJS?
A. It is a JavaScript library built on top of the web standards APIs
B. It provides the polyfills (web component specifications)
C. It uses Google material design for the development of hybrid mobile application.
D. All of the above
View Answer
Ans : D
Explanation: All of the statement are Features of Polymer.js
6. Polymer elements are a set of ?
A. visual
B. non-visual
C. designed
D. Both A and B
View Answer
Ans : D
Explanation: Polymer elements are a set of visual and non-visual elements designed to work with the layout, user interaction, selection, and scaffolding applications.
7. Which elements are built for e-commerce-specific use cases?
A. gold elements
B. neon element
C. platinum elements
D. molecules elements
View Answer
Ans : A
Explanation: The gold elements are built for e-commerce-specific use cases.
8. What is true about platinum elements?
A. The platinum elements animated transitions for Polymer elements using web animations.
B. The platinum elements provide features to turn your web page into a true webapp.
C. The platinum elements used to connect a group of plugins to the Polymer application.
D. Both B and C
View Answer
Ans : B
Explanation: The platinum elements provide features to turn your web page into a true webapp.
9. These are the basic building blocks for creating an application.
A. app elements
B. iron elements
C. paper elements
D. silver elements
View Answer
Ans : B
Explanation: iron elements : These are the basic building blocks for creating an application.
10. Custom element name should start with a ?
A. Lower case
B. Upper case
C. colon
D. hash
View Answer
Ans : A
Explanation: Custom element name should start with a lower case letter and contain a dash between the names.
11. Which property of DOM used for building components?
A. Shadow components
B. Styling
C. Shadow DOM
D. shadow tree
View Answer
Ans : C
Explanation: Shadow DOM is a new property of DOM used for building components.
12. Shadow DOM allows locating the children in a scoped subtree, which is known as?
A. shadow root
B. shadow host
C. shadowRoot
D. shadow tree
View Answer
Ans : D
Explanation: Shadow DOM allows locating the children in a scoped subtree, which is known as shadow tree.
13. The fallback content can be displayed when there are __________ allocated to the slot.
A. one nodes
B. two nodes
C. three nodes
D. no nodes
View Answer
Ans : D
Explanation: The fallback content can be displayed when there are no nodes allocated to the slot.
14. Path is a string in the data system
A. TRUE
B. FALSE
C. Can be true or false
D. Can not say
View Answer
Ans : A
Explanation: True, Path is a string in the data system
15. Data binding can be used to connect the property or an attribute of an element from the host element in its local DOM.
A. TRUE
B. FALSE
C. Can be true or false
D. Can not say
View Answer
Ans : A
Explanation: True, Data binding can be used to connect the property or an attribute of an element from the host element in its local DOM.
16. The text in binding annotation are enclosed by ().
A. TRUE
B. FALSE
C. Can be true or false
D. Can not say
View Answer
Ans : B
Explanation: The text in binding annotation are enclosed by double curly bracket ({{ }}) or double square bracket ([[ ]]) delimiters and the compound binding includes one or more string literal binding annotations.
17. The annotated event listeners are used by Polymer, which defines the event listeners as ________ of DOM template.
A. large chunks
B. medium chunks
C. small chunks
D. All of the above
View Answer
Ans : C
Explanation: The annotated event listeners are used by Polymer, which defines the event listeners as small chunks of DOM template and can be added to DOM children using onevent annotations in the template.
18. Event type "up" is used for?
A. It specifies that the finger/button has moved down
B. It specifies the occurrence of up and down actions.
C. It specifies that the finger/button has moved up.
D. It specifies the occurrence of up and down actions.
View Answer
Ans : C
Explanation: up : It specifies that the finger/button has moved up.
19. It specifies the occurrence of up and down actions.
A. up
B. down
C. tap
D. track
View Answer
Ans : D
Explanation: track : It specifies the occurrence of up and down actions
20. sourceEvent : It specifies the down action caused by DOM event.
A. TRUE
B. FALSE
C. Can be true or false
D. Can not say
View Answer
Ans : A
Explanation: sourceEvent : It specifies the down action caused by DOM event.
Discussion