Unicommerce Esolutions
10+ Twigz Technologies Interview Questions and Answers
Q1. GIve and describe examples of ES 6 features like object destructuring, arrow fxns, array.filter/reduce/indexOf etc.
ES6 features like object destructuring, arrow functions, array methods
Object destructuring allows for easy extraction of values from objects
Arrow functions provide a concise syntax for writing functions
Array.filter() allows for filtering of elements based on a condition
Array.reduce() allows for reducing an array to a single value
Array.indexOf() returns the index of the first occurrence of a specified element
Q2. How would you center align div inside div
Use CSS to set margin to auto for horizontal centering and text-align center for vertical centering.
Set the parent div's display property to flex and justify-content to center
Set the child div's margin property to auto
Alternatively, set the parent div's text-align property to center and child div's display property to inline-block
Q3. How to transfer data between components in Angular
Data can be transferred between components in Angular using @Input and @Output decorators.
Use @Input decorator to pass data from parent to child component
Use @Output decorator to emit events from child to parent component
Use EventEmitter to emit custom events
Use ViewChild to access child component's properties and methods
Q4. Var, let, const difference? 'use strict' ?
Var, let, const are used to declare variables in JavaScript. 'use strict' enables strict mode.
Var is function-scoped and can be redeclared. Let and const are block-scoped and cannot be redeclared.
Let allows reassignment while const does not.
'use strict' enables strict mode which enforces stricter rules and better error handling.
Example: var x = 10; let y = 20; const z = 30;
Example: 'use strict';
Q5. What are pseudo classes
Pseudo classes are keywords used in CSS to select and style elements based on their state or position in the document.
Pseudo classes start with a colon (:) followed by the keyword
They are used to style elements based on their state, such as :hover, :active, :focus
They can also be used to select elements based on their position in the document, such as :first-child, :last-child
Pseudo classes can be combined with other selectors to create more specific styles
Q6. Purpose of async, await in script tag
async/await in script tag is used to load external scripts asynchronously without blocking the page.
async/await allows scripts to be loaded asynchronously without blocking the page
It is useful for loading external scripts that may take time to load
It improves page performance by not blocking the rendering of the page
It is supported in modern browsers
Q7. Describe CSS Box model
CSS Box model is a design concept that describes how elements are displayed on a webpage.
Every HTML element is a rectangular box
The box has content, padding, border, and margin
Width and height of the box are determined by content, padding, and border
Margin is the space outside the border
Box-sizing property can be used to change the box model
Q8. What do you know about E-commerce and how it can benefit the current generation and further scope of improvements.
Q9. What you know about the backend
Backend refers to the server-side of an application where data is stored and processed.
Backend is responsible for managing databases, server-side logic, and ensuring smooth communication between the server and the client.
Common backend technologies include Node.js, Python, Ruby on Rails, and Java.
Backend developers work on creating APIs, handling user authentication, and optimizing server performance.
Understanding backend technologies is crucial for ensuring the overall funct...read more
Q10. What you know about the fronend
Frontend refers to the user interface of a website or application that users interact with.
Frontend development involves using languages like HTML, CSS, and JavaScript to create the visual elements of a website or application.
Frontend frameworks like React, Angular, and Vue.js are commonly used to streamline development and enhance user experience.
Responsiveness, accessibility, and performance optimization are key considerations in frontend development.
Frontend developers wor...read more
Q11. Difference between abstract class and interface
Abstract class can have implementation while interface only has method signatures.
Abstract class can have constructors while interface cannot.
A class can implement multiple interfaces but can only inherit from one abstract class.
Abstract class can have non-public members while interface only has public members.
Abstract class is used for creating a base class for other classes while interface is used for defining a contract that a class must follow.
Example of abstract class: p...read more
Q12. median of two sorted arrays Core Projects Internship Exp Puzzle
The median of two sorted arrays can be found by merging the arrays and then calculating the median.
Merge the two sorted arrays into a single sorted array
Calculate the median of the merged array
Handle cases where the total number of elements is even or odd
Q13. What you know about E-commerce
E-commerce refers to buying and selling goods or services online.
E-commerce involves online transactions between businesses and consumers.
It includes activities such as online shopping, electronic payments, and digital marketing.
Popular examples of e-commerce platforms include Amazon, eBay, and Shopify.
Q14. What you know about warehouse
A warehouse is a large building used for storing goods and materials.
Warehouses are used by businesses to store inventory and fulfill orders.
They often have loading docks for trucks to deliver and pick up goods.
Warehouses can be organized using various systems such as FIFO (First In, First Out) or LIFO (Last In, First Out).
Q15. Difference between c and java
C is a low-level programming language while Java is a high-level programming language.
C is compiled while Java is interpreted
C has pointers while Java does not
Java has automatic garbage collection while C does not
Java is platform-independent while C is platform-dependent
Java has built-in support for multithreading while C does not
Q16. notification service design
Design a notification service for sending alerts to users.
Use a scalable messaging system like Kafka or RabbitMQ to handle high volume of notifications.
Implement a notification queue to ensure reliable delivery of notifications.
Include support for different types of notifications such as email, SMS, and push notifications.
Allow users to customize their notification preferences and frequency.
Implement monitoring and logging to track the status of notifications and troubleshoot...read more
Interview Process at Twigz Technologies
Top Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month