MASAI School
10+ Micron Electricals Interview Questions and Answers
Q1. what is grouped by in SQL
In SQL, data is grouped by a specified column or expression using the GROUP BY clause.
Data is grouped based on the values in the specified column or expression
Aggregate functions like SUM, COUNT, AVG can be used with GROUP BY to perform calculations on each group
GROUP BY is often used in conjunction with the SELECT statement
Example: SELECT department, AVG(salary) FROM employees GROUP BY department
Q2. list and dictionary differences
Lists are ordered collections of items, while dictionaries are unordered collections of key-value pairs.
Lists are accessed by index, dictionaries are accessed by key
Lists maintain the order of elements, dictionaries do not guarantee order
Lists use square brackets [], dictionaries use curly braces {}
Example: list - [1, 2, 3], dictionary - {'a': 1, 'b': 2}
Q3. What is the difference between fs.writeFile and fs.writeFileSync? How will it affect your apis when there is 1, 10 and 1000+ users respectively
Q4. What is the use of this keyword?
The 'this' keyword refers to the current object and is used to access its properties and methods.
Used to refer to the current object in a method or constructor
Can be used to call another constructor in the same class
Can be used to call a method of the same object
Can be used to call a method of a parent object
Can be used to bind a function to a specific object
Q5. Explain about web development to 5 year old child?
Web development is like building a house on the internet where people can visit and do things.
Web development is creating websites and web applications using programming languages like HTML, CSS, and JavaScript.
It involves designing how the website looks and works, and making sure it works well on different devices like computers and phones.
Examples of web development include creating a website for a business, an online store, or a social media platform.
Q6. What is database indexing? How does indexing work? What is compound indexing in mongodb
Q7. Lambda functions in python
Lambda functions are anonymous functions in Python that can have any number of arguments but only one expression.
Lambda functions are defined using the lambda keyword.
They are commonly used for small, one-time tasks.
Lambda functions can take any number of arguments, but can only have one expression.
Example: add = lambda x, y: x + y
Q8. How is node.js non blocking? How does it handle async operations?
Q9. Design an e-commerce schema, and some of the things to look into while designing the schema
Q10. What are aggregation pipelines?
Interview Process at Micron Electricals
Top Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month