Interview Questions I faced
This contains all the interview questions I was asked
Italic question -> means asked more than once
Bold question -> means I got stuck upon
Point Click Care
Software Engineer position
F-2-F round with Manager, Barkat Virani - 8 March 2021
Tell a bit about what you do
Since you said Devops, let me ask about how you manage authentication for different groups or categories
What are some of the challenges you / your team faced while working in a team or a project
How do you manage configuration in your apps, meaning if same app is going into different enivornments then how do you manage database and other configs for the same
Let's suppose you're using a chat application, then if we both are chatting and I type a message first which will invoke the backend service, how does it know to send my message to you without you refreshing the page?
How do you split the front-end app into multiple applications as we have that requirement.
What APIs you have worked on?
Technical Rounds on March 15
Tell me about yourself
== vs === // (2 times asked)
CSS Specificity
Java try catch finally
SQL Query involving join and groupby, having
Dom input get value by name
How import statement is wriiten in ES5 react (I think this is a wrong question he asked)
ES6 features naming a few
Get first occuring unique element from an array. [1,1,2,3,4,3]. What is the time complexity? // 2 is unique. I struggeled a bit to get the unique element as my logic was not quite right initially.Time complexity is o(n) which I answered correctly
What is wrong with this? [ {name:''S',age:3},[{name:'P',age:4},{name:'L',age:5}] ] // I said it should have an ID to represent it as a unique element for react to not give an error while iterating
What is @Autowire and Dependency injection? // I could not answer them
Tell me about your project you worked on. // I explained marketing web app
Tell me about React
What is Virtual DOM? // 2 times.
What is Redux?
Write a functional component
Amazon
Front-end Engineer position
Phone interview Round on April 6
Tell me about yourself
Tell me a time where you worked beyond expected (Told abt the web app i created a vodafone to gather the customer report of all the details)
Tell me a time where you worked under pressure to complete the task on tight deadline (told that my senior was not feeling well so I managed fundserv project)
Normal functions vs Arrow functions
CSS specificity related question -> Which style is applied between id and class. How to make class style take effect (by using important keyword)
[1,2,[3,4,[[[5,6]]]] -> how do you deflat this? I said we can do it by JS built-in technique flat() but he wanted me to implement it myself so I used recusion to solve it. I got stuck upon how to find it the element is array type and he helped me by giving a hint which is Array.isArray([1,2,3])
HMTL css question -> There is a green div inside a blue div. Align green div to the bottom right inside blue div. I had to use position absolute on this which was easy
Continuation of the above question -> when you hover on the blue div, the green div should disappear (solved with a hint)
I was recommended for Level 4 role or SDE role by interviewer after telephonic. I picked Level 4 FEE and this is the Job description they sent
Amazon
Front-End Engineer II position
This was the coding assessment that was 2 hours long which I didn't do well.
What was asked?
There were 2 questions - All 2 must be answered in plain vanilla JS which I got stuck on. So it's very important to practice coding in JS like accordion or image slider in JS before the interview. These questions were from HackerRank platform (the test got redirected to the hackrank platform)
There was a HTML form and a JS file. The test cases were written by them and I had to make sure they all pass. The question was to
Design an accordion. HTML was written and I had to make sure that if question is clicked, only that answer is visible and all others must be closed until clicked.
Quartermaster
Suppose we have an unsorted log file of accesses to web resources. Each log entry consists of an access time, the ID of the user making the access, and the resource ID.
The access time is represented as seconds since 00:00:00, and all times are assumed to be in the same day.
For example:
We would like you to compute the user sessions, specifically: write a function that takes the logs and returns a data structure that associates to each user their earliest and latest access times.
Should return:
Example 2:
Should return:
Example 3:
Should return:
Complexity analysis variables:
n: number of logs in the input
My code for this which I COMPLETED ON TIME
I took it step by step. First I hardcoded the user and wrote the sortLogs function for individual user. Then I wrote extractUser to extract the users and tried to combine both. But at the end, did not have to use extractUser function.
Then I wrote users function and then getLogs function. I got stuck a little bit in for of loop, so interviewer suggested me to use forEach loop. I THINK I DID VERY WELL. GOOD JOB!!!!!!!!!!!!!
Last updated