Question 1. What Is Electron?
Electron is an open source library developed by GitHub. It is used to develop cross platform desktop application.
Question 2. Which Technology Electron Uses?
Question 3. How Chromium And Node.js Are Used In Electron?
Question 4. What Are The Different Types Of Process In Electron?
There are two types of process in Electron. These are main process and renderer process.
- Main process is responsible for interacting with native graphical user interface (GUI) of operating system. I also respond for auto-update of events and managing Browser Window instances.
Question 5. What Is Inter Process Communication (ipc)?
Inter Process Communication module is mechanism which allows exchange of synchronous and asynchronous message between main and renderer process. ipcMain module communication takes from main process to renderer process and ipcRenderer module communication takes from renderer process to main process.
Question 6. How Could We Build User Interface In Electron?
Question 7. What Are Environment Variables In Electron?
Environment variables control configuration (behavior) of Electron application without changing code. There are two types of environment variables in Electron.
- Production variable
- Development variable
Question 8. What Is Web View In Electron?
WebView is a tag which is used to embed web page in electron app. It runs in a separate process and interacts asynchronously between app and embedded content.
Question 9. Tell Me About Packaging Apps?
Packaging is an electron app, simply refers to creating a desktop installer. Packaging and distributing apps is an integral part of the development process. These can be done by using:
- Electron – packager.
- Electron – builder.
Question 10. How Debugging Done In Electron?
Debugging is a set of steps that involves identifying the problem, source of problem then resolving the problem to work application successfully. In electron, app are run over main process and rendered process debugging applied on both processes.
Chrome Dev tools are used to debug renderer process as it executed in browser window.
Question 11. What Are Different Types Of Menu?
There are two type of menus are created in electron desktop apps.
- Application menu
- Context menu
Application menu are those which display on top bar and context menu display on right-click.
Question 12. Tell Me Something About System Tray?
System tray represents an icon in an operating system’s notification area in other word we can say that system tray is a menu outside of your application window.
Question 13. How Dose Notification Is Created In Electron?
Notification is created by using npm module called node-notified used to notify users in Windows, Linux and MacOS. Electron also provides native notifications API only for MacOS.
Node-notified module is install by using command $ npm install –save node-notified.
Question 14. How Electron Works?
Electron work by taking main file created in your package.json file and executes it. The main file creates application windows contains rendered web pages and interact with native GUI. The main process is created when you start your application. Main process manage Browser Window module (provide ability to create new application windows in your app) and each browser module runs its own renderer process.
Question 15. What Is The Structure Of An Electron Application?
The basic structure of electron application consists of three files: package.json, main.js and index.html. Package.json used for metadata, main.js for code and index.html for graphical user interface.
Python Interview Questions
HTML 5 Interview Questions
HTML 5 Tutorial
Java Script Interview Questions
Linux Interview Questions
Java Script Tutorial
Mac OS X Deployment Interview Questions
Python Interview Questions
Windows Administration Interview Questions