Morningstar
Interview Questions and Answers
Q1. How to set up the environment for building angular application
To set up the environment for building an Angular application, you need to install Node.js and Angular CLI.
Install Node.js and npm
Install Angular CLI using npm
Create a new Angular project using CLI
Run the project using ng serve command
Q2. what is the difference between normal and arrow functions
Arrow functions are more concise and have a lexical 'this' binding compared to normal functions.
Arrow functions do not have their own 'this' keyword, they inherit it from the parent scope.
Arrow functions do not have their own 'arguments' object.
Arrow functions cannot be used as constructors with 'new'.
Arrow functions are more concise and have implicit return when no curly braces are used.
Q3. How an angular application works.
Angular is a front-end framework that uses HTML, CSS, and JavaScript to build dynamic web applications.
Angular uses components to create reusable UI elements
It uses services to share data and functionality across components
It has a powerful template system that allows for easy data binding and manipulation
Angular uses RxJS for reactive programming and observables
It has a built-in router for handling navigation between pages
Angular applications can be built and deployed as sin...read more
Q4. Explain Javascript ES6 features.
ES6 introduced new features to Javascript including arrow functions, let and const, classes, and template literals.
Arrow functions provide a concise syntax for writing functions.
Let and const are block-scoped variables.
Classes provide a way to create objects with methods and properties.
Template literals allow for string interpolation and multi-line strings.
Destructuring allows for easy extraction of values from arrays and objects.
Spread syntax allows for easy copying and merg...read more
Q5. What is CI/CD pipeline
CI/CD pipeline is a process of continuous integration and continuous delivery/deployment of software.
CI/CD pipeline automates the software delivery process.
It involves continuous integration of code changes, automated testing, and continuous delivery/deployment of software.
It helps in reducing errors and improving the quality of software.
Popular CI/CD tools include Jenkins, Travis CI, and CircleCI.
Q6. Count frequency of letters in a given string
Count frequency of letters in a given string
Create an array of size 26 to store the count of each letter (assuming only lowercase letters)
Iterate through the string and increment the count of each letter in the array
Print the count of each letter in the array
Q7. What are components in angular
Components in Angular are reusable building blocks that encapsulate HTML, CSS, and TypeScript code.
Components are the basic building blocks of an Angular application
They are reusable and can be used across multiple pages
Each component has its own HTML, CSS, and TypeScript code
Components can communicate with each other using @Input and @Output decorators
Examples of components include navbar, footer, and login form
Q8. Program to find 2 biggest number in array
Program to find 2 biggest numbers in array of strings
Iterate through the array and convert each element to integer
Keep track of the two biggest numbers found so far
Return the two biggest numbers at the end
Q9. difference between forEach and Map
forEach is used to iterate over an array and perform a function on each element, while map creates a new array by applying a function to each element.
forEach does not return a new array, while map does
forEach does not modify the original array, while map creates a new array
forEach is used for side effects, while map is used for transformation
Example: forEach - array.forEach(item => console.log(item)), map - const newArray = array.map(item => item * 2)
More about working at Morningstar
Interview Process at null
Top Software Engineer Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month