Infogain
Qship Worldwide Interview Questions and Answers
Q1. JS: create a calculator function. everytime you call it, it should print the next elem in sequence (condition: shouldn't pass any param) - 5,11,29,83
Create a calculator function that prints the next element in sequence each time it is called.
Create a function that keeps track of the current number in the sequence
Each time the function is called, calculate the next number in the sequence based on the previous number
Print the next number in the sequence each time the function is called
Q2. HTML: Change the CSS of a parent element by accessing only it's child element
Use CSS pseudo-class :hover to change parent element's CSS when child element is hovered
Use the CSS pseudo-class :hover to target the parent element when the child element is hovered
Example: .parent:hover .child { /* CSS styles */ }
Q3. React: create a context and provide it such that the language will be changed on a button click
Create a context in React to change language on button click
Create a context using createContext() method
Provide a state for language and a function to change it
Wrap the components that need access to language context with Context.Provider
Use useContext hook to access language context in components
Update language state on button click
Q4. CSS: Create a triangle using only CSS
Use CSS to create a triangle shape
Use border properties to create a triangle shape
Set the width and height of the element to 0
Use borders of different colors to create the triangle shape
Q5. Microservice design pattern
Microservice design pattern focuses on breaking down a large application into smaller, independent services.
Each microservice is responsible for a specific function or feature
Communication between microservices is typically done through APIs
Microservices can be developed, deployed, and scaled independently
Examples: Netflix, Amazon, Uber
Q6. Explain redux thunk
Redux Thunk is a middleware that allows asynchronous actions to be dispatched in Redux.
Redux Thunk is a middleware that extends the Redux store's abilities.
It allows actions to return functions instead of plain objects.
These functions can perform asynchronous operations and dispatch actions when needed.
Thunk functions have access to the store's dispatch and getState methods.
Example: dispatching an asynchronous action to fetch data from an API.
More about working at Infogain
Interview Process at Qship Worldwide
Top Senior Software Engineer Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month