i
TCS
Filter interviews by
I applied via Naukri.com and was interviewed in Jul 2021. There was 1 interview round.
Class components are ES6 classes while functional components are functions.
Class components have state and lifecycle methods while functional components don't.
Functional components are simpler and easier to read and test.
Functional components are preferred for simple UI components while class components are used for complex UI components.
Example of class component: class MyComponent extends React.Component {}
Example of...
Hooks are a feature in React that allow functional components to have state and lifecycle methods.
Hooks were introduced in React 16.8
useState is a hook that allows functional components to have state
useEffect is a hook that allows functional components to have lifecycle methods
Custom hooks can be created to reuse stateful logic across components
Fetch API is a built-in web API in modern browsers used to make HTTP requests from the browser to the server.
Fetch API is used to make asynchronous HTTP requests from the browser to the server.
It returns a Promise that resolves to the Response object representing the response to the request.
It can be used with React to fetch data from an API and update the state of a component.
Fetch API can be used with different HTTP ...
componentDidMount is called after the component is mounted while componentWillMount is called before the component is mounted.
componentDidMount is used for fetching data from APIs and updating the state
componentWillMount is used for setting the initial state and making preparations for rendering
componentDidMount is called once while componentWillMount is called multiple times
componentDidMount is used for DOM manipulati...
Strict mode is a feature in React that helps with debugging and identifying potential issues.
Enables additional checks and warnings during development
Helps identify unsafe code and deprecated features
Can be enabled globally or for specific components
Example:
State is mutable data owned by a component, while props are immutable data passed to a component.
State can be changed by the component itself, while props cannot be changed by the component
State is used to store data that can change over time, while props are used to pass data from parent to child components
State is initialized in the constructor of a component, while props are passed down from the parent component
Exam...
Yes, I have worked on Bootstrap extensively.
I have used Bootstrap to create responsive and mobile-first web pages.
I have utilized Bootstrap's grid system, components, and utilities to design and develop web applications.
I have customized Bootstrap's CSS and JavaScript to meet specific project requirements.
I have integrated Bootstrap with other front-end frameworks and libraries such as React and jQuery.
I have also cont...
Security tools for React applications
Use ESLint and Prettier to enforce code quality and security standards
Implement authentication and authorization using libraries like Passport.js and JSON Web Tokens
Use security-focused libraries like Helmet to secure HTTP headers
Implement input validation and sanitization using libraries like Joi and DOMPurify
Use HTTPS to encrypt data in transit
Implement rate limiting and other sec...
I would rate myself 4 out of 5 in React, HTML, CSS, and JS.
I have extensive experience in developing web applications using React, HTML, CSS, and JS.
I have worked on several projects that involved building complex UI components using React.
I am proficient in writing clean and maintainable code using HTML, CSS, and JS.
I am familiar with modern front-end development tools and frameworks such as Redux, Webpack, and Babel.
Yes, I am flexible with location and willing to relocate if required.
I am open to working remotely or on-site
I am willing to relocate for the right opportunity
I have experience working with remote teams
Axios is a promise-based HTTP client for making API requests in ReactJs.
Axios is used to make HTTP requests from the client-side in ReactJs
It supports all modern browsers and can be used with Node.js
Axios can be used to make GET, POST, PUT, DELETE requests and more
It can also handle request and response interceptors for global error handling and authentication
Axios can be installed using npm or yarn
State management libraries other than Redux
MobX - simple and scalable state management
Flux - unidirectional data flow architecture
Vuex - state management for Vue.js
Apollo Client - state management for GraphQL
React Context API - built-in state management for React
Recoil - experimental state management library for React
XState - state management for finite state machines
setState is asynchronous
setState schedules an update to a component's state
The update may not happen immediately, but will be batched and executed later
This can lead to unexpected behavior if not handled properly
I applied via Job Fair and was interviewed in Dec 2024. There was 1 interview round.
I applied via Indeed and was interviewed in Nov 2024. There was 1 interview round.
Lambda function is an anonymous function used for short tasks. Threads allow for concurrent execution in a program.
Lambda function is a concise way to define small functions without a name.
Threads allow multiple tasks to run concurrently in a program.
Lambda functions are often used in functional programming and for callbacks.
Threads can improve performance by utilizing multiple cores of a CPU.
Example of lambda function...
CI/CD stands for Continuous Integration/Continuous Deployment, a practice in software development to automate the process of testing and deploying code changes.
CI/CD automates the process of integrating code changes from multiple developers into a shared repository.
It includes automated testing to ensure that code changes do not break existing functionality.
CI/CD also automates the deployment of code changes to product...
What people are saying about TCS
React Fiber is a complete rewrite of React's core algorithm for rendering UI components.
React Fiber is designed to improve performance by allowing React to pause work and come back to it later.
It enables features like async rendering, error boundaries, and more granular control over rendering priorities.
Fiber reconciles the virtual DOM tree in a more incremental and interruptible way compared to the previous stack-base
React portal is a feature in React that allows rendering a child component into a different part of the DOM tree.
Used for rendering a child component outside of its parent component's DOM hierarchy
Helps in creating modals, tooltips, and other UI elements that need to break out of the parent's styling
Maintains the component's state and lifecycle methods even when rendered in a different part of the DOM
Synthetic events in React are cross-browser wrappers around the browser's native events, providing consistent behavior.
Synthetic events are used in React to handle events in a consistent manner across different browsers.
They are created by React to wrap native browser events and provide additional functionality.
Synthetic events have the same interface as native browser events but are normalized to work consistently acr
TCS interview questions for designations
Designing a system for a 1L REST API involves creating a scalable and efficient architecture to handle large amounts of data and requests.
Use microservices architecture to break down the system into smaller, independent services
Implement caching mechanisms to improve performance and reduce load on the database
Use load balancers to distribute incoming requests evenly across multiple servers
Implement rate limiting to pre...
Get interview-ready with Top TCS Interview Questions
I applied via Naukri.com and was interviewed in Sep 2024. There was 1 interview round.
Join and functions in SQL are used to combine data from multiple tables and perform operations on the data.
Joins are used to combine rows from two or more tables based on a related column between them.
Functions in SQL are used to perform operations on data, such as mathematical calculations or string manipulations.
Examples of functions in SQL include SUM, AVG, CONCAT, and SUBSTRING.
Coding question: Write a java program to divide the number
I applied via Naukri.com and was interviewed in Jul 2024. There was 1 interview round.
Singleton design pattern ensures a class has only one instance and provides a global point of access to it.
Create a private static instance of the class within the class itself.
Provide a public static method to access the instance.
Ensure the constructor is private to prevent instantiation from outside the class.
Use lazy initialization to create the instance only when needed.
IoC (Inversion of Control) and DI (Dependency Injection) are design patterns used in software development to decouple components and improve maintainability.
IoC is a design principle where the flow of control is inverted compared to traditional programming. It allows for better separation of concerns.
DI is a technique where the dependencies of a component are provided externally rather than created within the component...
Collections store data while streaming processes data in a sequential manner. Streaming API improves performance by reducing memory usage and increasing efficiency.
Collections store data in memory while streaming processes data in a sequential manner without storing it.
Streaming API allows for lazy evaluation, meaning data is processed only when needed, reducing memory usage.
Streaming API can improve performance by ena...
2 Interview rounds
based on 287 reviews
Rating in categories
System Engineer
1.1L
salaries
| ₹1 L/yr - ₹9 L/yr |
IT Analyst
67.6k
salaries
| ₹5.1 L/yr - ₹15.9 L/yr |
AST Consultant
51.3k
salaries
| ₹8 L/yr - ₹25 L/yr |
Assistant System Engineer
29.9k
salaries
| ₹2.2 L/yr - ₹5.6 L/yr |
Associate Consultant
28.8k
salaries
| ₹8.9 L/yr - ₹32 L/yr |
Amazon
Wipro
Infosys
Accenture