Tata Consultancy Services (TCS) | Interview | Senior Front End

Posted
29 May 2025
240 reads

Summary

I interviewed for a Senior Front End role at Tata Consultancy Services (TCS). The process involved two technical rounds, a managerial round, and an HR round. Ultimately, my current CTC and expected CTC exceeded their budget.

How it went

Round 1:

  • General Introduction.
  • Vue 2 vs Vue 3
  • HTML:
    • How to embed video in HTML?
    • Purpose of noscript tag.
    • strong vs bold
    • How form works?
    • svg vs png.
  • JS:
    • Hoisting (just a tip, explain it from root level like how JS Engine works)
    • Datatypes
    • SSR vs CSR
    • Lifecycle hooks and practical usage
    • Directives and watchers
    • Pass data between components(all types of relation)
    • Which pattern we follow for the functions or methods such that it covers all edge cases
    • Routing, how we pass params and access them. Hash vs history modes
  • -- 3-5 Code snippet questions -- (sorry i forgot but you can find similar on web)
  • Machine Coding:
    • Implement a search box which should filter the results respectively. Object = [{name:'Avenatador',brand:'Lamborghini'},{name:'Q5',brand:'Audi'}......] If we enter car name we should return those details. If we enter brand name, return all the car names under that brand. If it's empty print all car names
    • Two divs with diff colors and change color when we hover
    • Add a image and then add text inside the image based on the position (top,bottom,left,right,center)

Round 2:

  • General Introduction
  • AST in Javascript
  • -- 5 Code snippet questions (tougher than round 1. Includes javscript features too) --
  • Machine Coding
    • Create a search box and print results (similar to round 1). The results should be printed with alternative colors. Eg: 1st result background blue, 2nd - red, 3rd blue....... (you can achieve with class binding)

Managerial Round

  • -- Behavioural questions (which is boring) --

HR Round

  • -- Behavioural questions --
At the end, they said my current CTC itself is high (i work in product based) and expected CTC exceeds their budget :) (shit happens)

Questions asked (21)

  1. 01

    Vue 2 vs Vue 3 Differences

    Other

    Discuss the key differences between Vue 2 and Vue 3.

  2. 02

    Embed Video in HTML

    Other

    Explain how to embed video content in an HTML document.

  3. 03

    Purpose of noscript tag

    Other

    What is the purpose of the <noscript> tag in HTML?

  4. 04

    strong vs bold HTML tags

    Other

    Explain the difference between the <strong> and <b> tags in HTML.

  5. 05

    How HTML Forms Work

    Other

    Describe the fundamental working mechanism of HTML forms.

  6. 06

    SVG vs PNG

    Other

    Compare SVG and PNG image formats, discussing their differences and use cases.

  7. 07

    JavaScript Hoisting Explained

    Other

    Explain JavaScript hoisting from a fundamental level, including how the JS Engine works.

  8. 08

    JavaScript Data Types

    Other

    Discuss the different data types available in JavaScript.

  9. 09

    SSR vs CSR

    Other

    Compare Server-Side Rendering (SSR) and Client-Side Rendering (CSR).

  10. 10

    Vue Lifecycle Hooks and Usage

    Other

    Explain Vue.js lifecycle hooks and provide examples of their practical usage.

  11. 11

    Vue Directives and Watchers

    Other

    Discuss Vue.js directives and watchers, explaining their purpose and usage.

  12. 12

    Vue Component Communication

    Other

    Explain various methods for passing data between components in Vue.js, covering different types of relationships (parent-child, child-parent, sibling, global).

  13. 13

    Robust Function Design Principles

    Other

    Discuss design patterns or principles for writing functions/methods that effectively cover all edge cases.

  14. 14

    Vue Routing: Params and Modes

    Other

    Explain routing in Vue.js, including how to pass and access parameters, and compare hash mode versus history mode.

  15. 15

    Implement Search Box with Filtering

    Data Structures & Algorithms

    Implement a search box that filters results based on user input. Given an array of objects like [{name:'Avenatador',brand:'Lamborghini'},{name:'Q5',brand:'Audi'}]: if a car name is entered, return its details; if a brand name is entered, return all car names under that brand; if the input is empty, print all car names.

  16. 16

    Hover Effect on Divs

    Other

    Create two divs with different background colors and implement a hover effect to change their colors when the mouse is over them.

  17. 17

    Text Overlay on Image

    Other

    Add an image and then overlay text inside the image based on specified positions (top, bottom, left, right, center).

  18. 18

    Abstract Syntax Tree (AST) in JavaScript

    Other

    Explain what an Abstract Syntax Tree (AST) is in the context of JavaScript.

  19. 19

    Search Box with Alternating Result Colors

    Data Structures & Algorithms

    Create a search box similar to Round 1, but this time, the results should be displayed with alternating background colors (e.g., 1st result blue, 2nd red, 3rd blue, etc.). Hint: This can be achieved with class binding.

  20. 20

    General Behavioral Questions

    Behavioral

    Behavioral questions were asked during the managerial round.

  21. 21

    General Behavioral Questions

    Behavioral

    Behavioral questions were asked during the HR round.

Know someone preparing? Send it to them:WhatsAppLinkedInX

Interviewed at Tata Consultancy Services (tcs) recently?

Write up your rounds while you still remember the questions. It helps the next person more than you would think.

Share your experience
Discussion 0

Questions for the author, or how your own interview compared.

Join the discussion

Sign in with Google to comment or ask the author a question.

No comments yet

Be the first to share your thoughts and start the discussion!