SarthiQ

SarthiQ

Interview Preparation Guide

TCS
Questions & Answers

A comprehensive, expert-curated list of real interview questions to help you prepare effectively and land your dream job.

Document Details

Topic / Subject
TCS
Content Length
52 Curated Q&A
Generated On
October 4, 2026
Provided By
SarthiQ.com
Want to explore more questions & mock interviews? Click on 👉www.sarthiq.com
© 2026 SarthiQ Platform. All rights reserved.
www.sarthiq.com
Resume Upload Get Job in 90 Days Resume Builder AI Interview Coach Interview Questions Placement Committee Self Assessment Get Internship

Need Help?

[email protected]

Top TCS Interview Questions

NETFLIX
ORACLE
Adobe
NVIDIA
meta
IBM
wipro
TCS
cisco
intel
SAP
Uber

TCS Interview Questions

Practice with real TCS interview questions

01
A Backend Developer was asked
SarthiQ TCS
Medium
Asked in 2024
Q. Can you explain how the Node.js event loop works? Illustrate your explanation with an example that includes asynchronous code execution.
Ans. The Node.js event loop is a crucial part of its non-blocking architecture, allowing it to handle multiple operations simultaneously. The event loop processes events from the event queue and executes callbacks. Here’s a breakdown: 1. Phases of the Event Loop: It consists of several phases: timers, I/O callbacks, idle, poll, check, and close callbacks. 2. Execution: It picks events from the queue and executes their callbacks, enabling asynchronous operations. Here’s an example demonstrating the event loop in action:
javascript
console.log('Start');

setTimeout(() => {
  console.log('Timeout 1');
}, 0);

setImmediate(() => {
  console.log('Immediate 1');
});

Promise.resolve().then(() => {
  console.log('Promise 1');
});

console.log('End');
Output:
Start
End
Promise 1
Timeout 1
Immediate 1
In this example: - The synchronous logs 'Start' and 'End' execute first. - The promise resolution is handled next, demonstrating how microtasks (like promises) are executed before the next event loop tick. - The setTimeout and setImmediate callbacks are executed afterward, showing how the event loop manages asynchronous operations.
Backend DeveloperCore Concept
02
A Software Engineer was asked
SarthiQ TCS
Medium
Asked in 2025
Q. What is the syllabus for TCS NQT 2025, and how can one prepare for the coding section effectively? Provide example coding questions and their solutions.
Ans. Syllabus Overview for TCS NQT 2025 The coding section typically covers: - Data Structures (Arrays, Strings, Trees, Graphs) - Algorithms (Sorting, Searching, Recursion) - Basic programming concepts (Loops, Functions, OOP principles) Example Coding Question 1: Reverse a Linked List Problem Statement: Given the head of a singly linked list, reverse the list and return the reversed list. Solution: To reverse a linked list, we can use three pointers: previous, current, and next.
python
**class ListNode:**
**    def __init__(self, val=0, next=None):**
        self.val = val
        self.next = next

**def reverse_linked_list(head):**
    prev = None
    current = head
**    while current:**
        next_temp = current.next  # Store next node
        current.next = prev       # Reverse the link
        prev = current            # Move prev to current
        current = next_temp       # Move to next node
    return prev  # New head of the reversed list

**Example Usage**
head = ListNode(1, ListNode(2, ListNode(3)))
reversed_head = reverse_linked_list(head)
Example Coding Question 2: Find First Unique Character in a String Problem Statement: Given a string, find the first non-repeating character in it and return its index. If it does not exist, return -1. Solution: We can use a dictionary to count the occurrences of each character and then identify the first unique character.
python
**def first_unique_char(s):**
    count = {}
**    for char in s:**
        count[char] = count.get(char, 0) + 1
**    for i, char in enumerate(s):**
**        if count[char] == 1:**
            return i
    return -1

**Example Usage**
print(first_unique_char("leetcode"))  # Output: 0
Software EngineerCore Concept
03
Backend Developer
SarthiQ TCS
Hard

Question:

How would you design a scalable system for XYZ...

04
Backend Developer
SarthiQ TCS
Hard

Question:

How would you design a scalable system for XYZ...