Panda Guru LogoPanda
Guru

ServiceNow | Software Engineer (IC2) | Hyderabad (Hybrid) | Nov 2024 [Offer]

Round 1

Questions:

  1. Intro, Project intro
  2. Basic JS questions on output consisting of hoisting, Temporal Dead Zone, Arrow functions
  3. How does browser load from start: Explain the HTML page rendering sequence. How is the script tag executed while running?
  4. Difference between async and defer.
  5. What is event loop?
  6. Micro task vs macro task?
  7. Output questions based on promises micro task macro task to print in sequence.
  8. Polyfills of debounce, polyfills of currying.
  9. What is 2 way binding in Angular?
  10. Gave a problem statement on manipulating and showing desired output with a JSON object.
Candidate's Approach

No approach provided.

Interviewer's Feedback

No feedback provided.


Round 2

Questions:

  1. Output for the following & Explain why.
    function foo() { for (var i = 0; i < 10; i++) setTimeout(() => console.log(i), 1000); } foo();
  2. Implement a debounce method (polyfills).
  3. Implement the curry function present here to make the code work. Basically, implement polyfills of currying. Cross questioned and told to do further modification.
  4. Output of the following code (Based on Hoisting & callbacks).
  5. DSA - to be done with JS only: Given a binary matrix, find out the maximum size square sub-matrix with all 1s. Input:
    0 1 1 0 1 1 1 0 1 0 0 1 1 1 0 1 1 1 1 0 1 1 1 1 1 0 0 0 0 0
    Output: 3
  6. DSA - You are climbing a staircase. It takes n steps to reach the top. Each time you can either climb 1 or 2 steps. In how many distinct ways can you climb to the top? (Staircase Problem).
  7. System design (40 mins): Give HLD & LLD for Autocomplete component. Solution should be scalable and modular. Extra point for considering minute system design features. LLD was not asked to code completely, just write a skeleton. Answer for HLD expected in 3 parts: functional requirements, non-functional requirements, and data flow.
Candidate's Approach

No approach provided.

Interviewer's Feedback

No feedback provided.


Round 3

Questions:

  1. Intro, Project that is close to your heart.
  2. How did you do performance optimizations in your project? Explain all methods in brief. Cross questioning.
  3. How did you implement lazy loading?
  4. Collections in JS: When are Hashmaps and HashSets useful?
  5. Arrays vs hashmaps.
  6. Advantages of hashmaps over arrays.
  7. How does hashmap work internally?
  8. What is the significance of "this" keyword in JavaScript?
  9. JavaScript Garbage collection: Explain in detail, expects algorithms used to be mentioned and explained in brief.
  10. How do you keep yourself updated in JavaScript, Angular, and React and overall technologically?
  11. What do you know about ServiceNow?
Candidate's Approach

No approach provided.

Interviewer's Feedback

No feedback provided.


Round 4

Questions:

  1. Intro, Project Discussion, Hobbies, Why looking for a job change? Why ServiceNow?
  2. How did you implement web components in your project?
  3. Explain web components' lifecycle hooks. Write code to explain.
  4. How do you render HTML string in React?
  5. How do we use React component in web component? Explain with already written code.
  6. Explain useState in React in short.
  7. Can you implement React useState custom hook? i.e., give custom implementation of useState. Told to write code.
  8. How can you use this custom implementation multiple times? Let's say you have to call this more than 5 times, will it work? If not, how will you modify it? What will be the approach?
  9. Do you know what ServiceNow does?
  10. Comfortable with 2 days Work from office?
Candidate's Approach

No approach provided.

Interviewer's Feedback

No feedback provided.


Round 5

Questions: HR discussions on benefits and salary. Had 1 round of negotiation (had competing offers). Offered next day.

Candidate's Approach

No approach provided.

Interviewer's Feedback

No feedback provided.