×

Polymer.js Interview Questions

1) What is Polymer.js?

Polymer.js is an open source JavaScript library. It is developed by Google. It is used to develop web applications for using of web components like HTML.

2) Describe architecture of Polymer.js.

The architecture of Polymer.js is divided into four important layers:
Native Layer- It represents the current state of browser support and implementation for the web component detail.

Foundation Layer- It consists polyfill libraries for the web component details. Polyfill is a code that implement the feature of web browser that does not support the feature.

Core Layers- It contains the Polymer library code which is found in polymer.html file.

Elements Layers- It consists of core and paper elements.

3) What are the features of Polymer.js?

Following are the features of Polymer.js:
  • It is simplest way to create custom elements.
  • It has both One-way and Two-way data binding.
  • It provides polyfills for creating it's own customized elements.
  • It has computed properties.
  • It provides gesture events.

4) What are the Polymer elements?

It provides elements that we can use in our web pages and applications. These elements are built with the Polymer library.

5) Name the types of polymer elements.

Following are the types of polymer elements:
App element- It is used, when we build entire application.

Iron element- It is used to create basic building blocks of an application.

Paper element- It is a set of UI (User Interface) elements that implement the material design system.

Gold elements- This element is build for e commerce.

Neon element- It is used for animation-related elements.

Platinum elements- This element is like application features, like push notifications, offline caching and bluetooth.

6) What is custom elements?

It provide a component model for the web.

7) What are the features provided by custom elements?

Custom elements provides the following features.
It provides a mechanism for associating class with custom element name.

It requests the lifecycle methods when we change the state of custom element object.

It requests for the method when we change the attribute of an instance.

8) What are the reactions apply in custom elements life cycle?

It provides the set of custom element reactions that allows to change in elements lifecycle.
Reaction Description
Constructor It is called when element is upgraded.
Connected Callback It is called when element is added to a document.
Disconnected Callback It is called when element is removed to a document.
AttributeChangedCallback It is called when element is change, append, remove or replace.

9) What are events in polymer.js?

Event is something that happens at specific time and lead to some changes. polymer.js provides own methods to perform events like: on-click, on-tap, on-mouseover etc. we can also create our own custom events. It also provides listener objects that can be used to bind events to execute functions.

10) What is Data system in polymer.js?

In Data system, polymer.js allows us to observe changes on an element's properties by taking different actions. Data system actions include following properties: Observers: It invokes specified method whenever data changes. Computed properties: It computes the virtual properties which is based on other properties and recompute when the input data change. Data binding: By using of annotation we can update the properties, attributes or text content whenever data changes.

11) What is shadow DOM?

Shadow DOM is a new DOM (Document Object Modeling) features Which is used for Building component.

12) What is shadow DOM styling?

It is a process of styling shadow DOM by using style properties. It inherits properties from host to shadow tree. Let's see an example. Shadow DOM Style Example
my demo {background-color:grey;}  

</style>  

<my-element>  

#shadow-root  

<style>  

//this div will have blue background color  

div { background-color: orange; }  

</style>  

   <div class="mydemo">Demo</div>

Related Topics

Top 22 MariaDB Interview Question for 2024

1) What is MariaDB? It is a community based database devoloped by MySQL Devolopers. It provides same features as MySQL also, can be said that it is a replacement of MySQL. 2)...

3 minutes read.

Top 30 SASS Interview Questions for 2024

1) What is Sass? SASS: Systematically Awesome Style Sheets is an extension of CSS. It is also known as CSS pre-processor which helps to reduce repetition with CSS and saves time. It is...

4 minutes read.

Top 15 MATLAB Interview Questions for 2024

1) What is MATLAB? MATLAB (matrix laboratory) is fourth-generation programming language. It allows matrix manipulations, implementations of algorithm and many more. 2) Who developed MATLAB? MATLAB is developed by MathWorks. 3) In which language...

2 minutes read.

Top 15 Servlet Interview Questions for 2024

1) What is Servlet? It is a technology used to create web applications. It is a web component which is used to create dynamic web pages. It consists of many interfaces and classess...

2 minutes read.

Top 30 Web Service Interview Questions for 2024

1) What is a Web Service? Web service is a client server application or component. It is used for communication. It is way to communicate between two devices over network. In another word...

5 minutes read.

Top 30 WordPress Interview Questions for 2024

Most Frequently asked WordPress Interview Questions and Answers 2019 1) What is WordPress? WordPress is an open-source CMS (Content Management System) and a blogging tool. It is used to create web sites and...

5 minutes read.

Top 25 DB2 Interview question for 2024

1) Give breif detail about DB2? DB2 is a Relational Database Management System developed by IBM. It supports Object Oriented features and non-relational structures with XML. 2) Enlist the types of datatypes...

3 minutes read.

Top 15 Java JDBC Interview Questions for 2024

1) What are the types of JDBC Drivers in Java? JDBC Drivers are of four types are: JDBC-ODBC bridge driver Native-API driver Network Protocol driver Thin driver 2) What are the five...

4 minutes read.

Top 30 Less Interview Questions for 2024

1) What is Less? Less is a dynamic style sheet language that can be compiled in to CSS (Cascading style Sheet). It runs on client side and server side. It is...

4 minutes read.

Top 15 PhantomJS Interview Question for 2024

1) What is PhantomJS? PhantomJS is a lightweight headless scripted browser built on WebKit. It is used for automation web page interaction. 2) Why it is called as headless browser? PhantomJS called as...

4 minutes read.

Top 30 VB Script Interview Questions for 2024

1) What is VB Script? VBScript stands for Visual Basic Scripting Language. It is a light version of Microsoft Visual Basic. It is a client side scripting Language. 2) What is the...

5 minutes read.

Top 15 JavaFX Interview Questions for 2024

1) What is JavaFX? JavaFX is a software platform for creating desktop applications or internet application. It uses java library. It can run various devices such as Desktop Computer, Mobile, TVs...

3 minutes read.

Top 15 Meteor Interview Questions for 2024

1) What is Meteor or MeteorJS? Meteor is a JavaScript platform used for developing web and mobile applications. Applications develop using Meteor framework supports different platforms (like windows, android, ios). Meteor...

4 minutes read.

Top 15 Electron Interview Question for 2024

1) What is Electron? Electron is an open source library developed by Github. It is used to develop cross platform desktop application. 2) Which technology Electron uses? Electron uses Chromium and Node.js with...

3 minutes read.

Top 29 Pascal Interview Questions for 2024

1) What is Pascal? Pascal is a high-level and Algol-based language that was developed by Niklaus Wirth. It is used to develop efficient and reliable programs. 2) What are the features of Pascal? Features...

4 minutes read.

SSRS Interview Questions

1. What is SSRS? The Microsoft SQL Server Reporting Service (SSRS) is a server-based reporting platform. It allows you to produce structured reports. The reports are generally represented in the form of data, graph,...

5 minutes read.

Top 20 HTTP Interview Questions for 2024

1) What is HTTP? HTTP stands for Hypertext Transfer Protocol. It is a set of rules for transferring of data on WWW (World Wide Web). 2) What are the basic Features of...

4 minutes read.

Top 28 Firebase Interview Questions for 2024

1) What is Firebase? Firebase is a platform which is used for building Web, IOS and Android applications. It offers: Real time database Different APIs Multiple authentication types and Hosting platform 2) What are the features of...

3 minutes read.

W3.CSS Interview Questions

1) What is W3.CSS? W3.CSS stands for Cascading Style Sheet. It is developed by w3schools.com. It is used to create faster, beautiful and responsive websites. 2) What are the features of W3.CSS? W3.CSS...

3 minutes read.

Top 15 iOS (iPhone, iPad) Interview Questions for 2024

Top 20 Most Frequently asked iOS Interview Questions and Answers 1) What is iOS? iOS is a mobile operating system developed by Apple Inc. iOS offers iPhone and iPad application development using...

3 minutes read.