×

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

SSIS Interview Questions and Answers

Q.1 What is SSIS? SQL Server Integration Service (SSIS) is a component of Microsoft SQL Server. It is a powerful ETL tool that is used for building enterprise-level data transformation and...

5 minutes read.

Top 30 TypeScript Interview Questions for 2024

1) What is TypeScript? TypeScript is an object-oriented and compiled language. TypeScript is also known as a set of tools. TypeScript is used for application-scale development. 2) What are the features of TypeScript? Features of...

4 minutes read.

Top 30 PyTorch Interview Questions and Answers

Q1: What is PyTorch? Answer: PyTorch is a machine learning library for the programming language Python, based on Torch library, used for application such as natural language processing. It is free...

9 minutes read.

Bugzilla interview Questions

Frequently asked questions about Bugzilla Q1. What are reports in Bugzilla? A1. Reports can be defined as an interface between the user and the database of Bugzilla. It helps to examine and...

4 minutes read.

Top 10 GWT Interview Questions for 2024

1) What is Google Web Toolkit (GWT)? GWT (Google Web Toolkit) is a development toolkit. It is used to develop Ajax web applications using Java. GWT compiler translates Java sour ce...

2 minutes read.

Top 15 Euphoria Interview Questions for 2024

1) What is Euphoria? Euphoria is a programming language. It is open source, powerful and easy to learn. It stands for End-User Programming with Hierarchical Objects for Robust Interpreted Applications 2) Who...

2 minutes read.

Top 31 PHP Interview Questions for 2024

1) What is PHP? PHP is a object-oriented scripting language, open source, interpreted and executed at server side. It is also used to develop web applications. 2) What are the features of PHP? Features...

4 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 Xamarin Interview Questions for 2024

1) What is Xamarin? Xamarin is a .NET framework. It allows to create an application that run on multiple platforms. Xamarin Tutorial uses C# language and .NET framework to deliver native...

2 minutes read.

Top 30 CSS Interview Questions for 2024

1) Define the process where block elements can be centered with css. It can be centered by using margin-left and margin-right properties we can centered the block level elements. 2) Name the...

4 minutes read.

Top 15 XHTML Interview Questions for 202

1) What is XHTML? XHTML (Extensible Hyper Text Markup Language) it is similar to the HTML but has some strict rule than HTML. It is said to be HTML defined as...

3 minutes read.

Top 16 Moo Tools Interview Questions for 2024

1) What is Moo Tools? MooTools stands for My Object-Oriented Tools. It is a lightweight and object-oriented JavaScript framework. It is used to create dynamic web page. It is developed by Valerio...

5 minutes read.

Top 26 SEO Interview Questions for 2024

Most Frequently asked SEO Interview Questions and Answers for Fresher and Experienced 1) What is SEO? SEO stands for Search Engine Optimization. It is a set of processes followed by website owners...

4 minutes read.

Top 28 Prototype Interview Questions for 2024

1) What is Prototype? Prototype is a JavaScript framework which is used in dynamic web applications. It is a namespace and a module that is used to manage HTML forms. It is also...

4 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 15 Cordova Interview Questions for 2024

Top 20 Cordova Interview Questions and Answers for Freshers 1) What is Cordova? Cordova is a mobile application development framework. Cordova allows building mobile application using HTML5, CSS3, and JavaScript. Cordova is...

3 minutes read.

Top 15 Highcharts Interview Questions for 2024

1) What is Highcharts? Highcharts is a JavaScript based charting library. It is used to enhance web applications by adding interactive charting capability. Highcharts supports a wide range of charts. Charts are drawn using...

2 minutes read.

Top 50 HTML Interview Questions for 2024

1) What is HTML? HTML stands for Hyper Text Markup Language. It is used for creating web pages and web applications. HTML documents are made up of two things: the content and the tags. 2) What are...

10 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 31 Flask Interview Questions for 2024

1) What is Flask? Flask is a micro web framework written in Python. It is based on Werkzeug toolkit and Jinja 2 template engine. 2) Who is the developer of Flask? Armin Ronacher...

6 minutes read.