About TCS (Tata Consultancy Services).

TCS is a leading global IT services and consulting company headquartered in Mumbai, India. It's known for its large workforce, strong reputation, and significant presence in the IT industry.

TCS Recruitment Process.

  1. Aptitude test
  2. Technical interview
  3. HR interview

(Sometimes a group discussion is also included.)

TCS Academic Criteria.

  • Minimum 65% in Class X, Class XII, and B.Tech.
  • No backlogs.

TCS Technical Interview Questions.

1. Linked Lists.

A linked list is a linear data structure where elements (nodes) are linked together. Each node contains data and a pointer to the next node in the sequence.

2. Four Basic Principles of OOPs.

  • Abstraction: Hiding implementation details.
  • Inheritance: Creating new classes from existing ones.
  • Encapsulation: Bundling data and methods that operate on that data.
  • Polymorphism: The ability of an object to take on many forms.

3. Inheritance.

Inheritance is a mechanism where a class (subclass or derived class) inherits properties and methods from another class (superclass or base class).

4. Inheriting Variables.

Example (C++)

class A {
public:
  int a;
};

class B : public A {
public:
  B() { a = 15; }
};

5. Polymorphism.

Polymorphism allows objects of different classes to be treated as objects of a common type. Methods can be overridden to provide specific implementations in subclasses.

6. Types of Inheritance.

  • Single inheritance
  • Multiple inheritance
  • Multilevel inheritance
  • Hierarchical inheritance
  • Hybrid inheritance

7. Class vs. Interface.

Feature Class Interface
Instantiation Can be instantiated Cannot be instantiated
Methods Can have implemented methods All methods are abstract
Inheritance Single inheritance Multiple inheritance

8. Software Development Life Cycle (SDLC).

The SDLC is a structured process for developing software, typically involving requirements gathering, design, implementation, testing, deployment, and maintenance.

9. Database Normalization, Joins, and Keys.

Normalization reduces data redundancy. Joins combine data from multiple tables. Keys (primary, foreign, unique) enforce data integrity and relationships between tables.

10. Loops.

(This section would include a description of loops and their use in programming.)

11. Joins, Views, Normalization, Triggers.

(This section would explain joins, views, normalization, and database triggers in SQL.)

12. Advantages of DBMS.

  • Improved data sharing
  • Enhanced data security
  • Better data integration
  • Reduced data inconsistency
  • Improved data access
  • Enhanced decision-making capabilities
  • Increased user productivity

13. What is a Database Management System (DBMS)?

A DBMS is software for creating and managing databases.

14. Database Schema.

(This would include a formal definition of a database schema.)

15. Conditional Statements.

(This section would include a description of conditional statements in programming languages, such as `if-then-else`.)

16. Foreign Key vs. Reference Key.

A reference key is a primary key in one table. A foreign key in another table references the reference key, establishing a relationship between the tables.

17. C vs. C++.

Feature C C++
Classes No support Supports classes and objects
Function Overloading No support Supported
Exception Handling No support Supported

18. B-Tree vs. Bitmap Index.

Index Type Structure
B-tree Tree-like structure; efficient for range queries
Bitmap Bit array; efficient for equality comparisons on low-cardinality columns

19. Clustered vs. Non-Clustered Index.

Index Type Data Ordering
Clustered Physical data order
Non-clustered Logical order; data and index stored separately

20. Socket vs. Session.

A socket is a communication endpoint identified by an IP address and port number. A session is a logical connection between two communicating entities.

21. What is an Array?

An array is a data structure storing a collection of elements of the same data type.

22. Arranging 1s and 0s in an Array.

Code (C++)

#include <iostream>
#include <vector>
#include <algorithm>

int main() {
    std::vector<int> arr = {0, 1, 0, 1, 0, 0, 0, 1, 0, 1, 0, 0};
    int left = 0;
    int right = arr.size() - 1;
    while (left < right) {
        while (arr[left] == 0 && left < right) left++;
        while (arr[right] == 1 && left < right) right--;
        if (left < right) {
            std::swap(arr[left], arr[right]);
            left++;
            right--;
        }
    }
    for (int x : arr) std::cout << x << " ";
    std::cout << std::endl;
    return 0;
}

23. Data Abstraction.

Data abstraction focuses on essential characteristics, hiding unnecessary details.

24. Swapping Two Numbers Without a Temporary Variable.

Code (C++)

void swap(int &a, int &b) {
  a = a + b;
  b = a - b;
  a = a - b;
}

25. Memory Allocation in C/C++.

(This section would describe memory allocation functions: malloc(), calloc(), free(), new, and delete.)

26. printf() Output.

Code

int i = 10;
printf("%d%d%d", i, ++i, i++);
Output

111212

27. Virtual and Pure Virtual Functions.

A virtual function allows runtime polymorphism. A pure virtual function has no implementation in the base class; derived classes must implement it.

28. WPF (Windows Presentation Foundation) and WCF (Windows Communication Foundation).

WPF is a framework for building desktop applications with rich UIs. WCF is a framework for building and deploying distributed applications using service-oriented architecture.

29. Swapping Two Numbers (C++).

Code

// Code to swap two numbers without using a temporary variable would be included here.

30. Output of Java Complex Class.

Code

// Code for the Complex class and Main class would be included here.
Output

Complex@

31-35. Java System.out.print() and System.out.println() Output.

(Outputs for the given Java code snippets would be provided here.)

36. Size of a Union in C.

Code

#include <stdio.h>
union test {
  int x;
  char arr[8];
  int y;
};

int main() {
  union test u;
  printf("%zu", sizeof(u)); //Note: %zu is used for size_t
  return 0;
}
Output

8

TCS HR Interview Questions.

1. Tell Us About Yourself.

(This section would be for the candidate to provide a concise and compelling summary of their background, skills, and experience.)

2. Willingness to Change Domains.

(The candidate should articulate their reasons for seeking this opportunity and how it aligns with their career goals.)

3. Handling an Unpleasant Task.

(This is a behavioral question; provide a specific example demonstrating your problem-solving skills and ability to cope with challenging situations.)

4. Expectations from the Company.

(Share realistic expectations and demonstrate your understanding of TCS's culture and values.)

5. Willingness to Relocate.

(Answer honestly about your willingness to relocate, considering your personal circumstances and career goals.)

6. Living in Delhi (or Your Hometown).

(Describe your hometown, highlighting its positive aspects. Be thoughtful and avoid overly generalized statements.)

7. Most Memorable Day.

(Share a meaningful experience, showcasing your personality and values.)

1. Rate Your Communication Skills.

(Answer confidently and honestly, acknowledging areas for improvement. Example provided in the original text.)

2. Time Management Strategies.

(Describe your approach to managing multiple tasks and prioritizing effectively. Example provided in the original text.)

3. Reasons for Wanting to Work at TCS.

(Express genuine interest in TCS and connect your skills and goals to their opportunities. Example provided in the original text.)

4. Applying to Other Companies.

(Be honest but emphasize your strong interest in TCS. Example provided in the original text.)

5. Willingness to Relocate.

(Answer honestly and directly, acknowledging any limitations.)

6. Views on Your Hometown/State.

(Share interesting facts and perspectives about your location, demonstrating local knowledge and cultural awareness.)

7. Most Memorable Day.

(Share a meaningful experience, highlighting personal growth and resilience.)

8. Strengths.

(Focus on strengths relevant to the job, providing specific examples to support your claims. Example provided in the original text.)

9. Weaknesses.

(Frame weaknesses positively, focusing on areas for growth. Example provided in the original text.)

10. Why Should We Hire You?

(Highlight your skills, experience, and how you add value to the company. Example provided in the original text.)

11. Distinguishing Qualities.

(Highlight your unique strengths and what sets you apart from other candidates. Be realistic and avoid exaggeration.)

12. Opinion on Demonetization (or Another Current Event).

(Demonstrate your critical thinking skills by presenting a balanced perspective on a current event. Example provided in the original text.)

13. Daily Routine.

(Describe your daily routine briefly and clearly, demonstrating organization and time management.)

14. Five Qualities for This Profile.

(Tailor your answer to the specific job requirements.)

15. Five-Minute Speech on a Topic of Interest.

(Choose a topic you are knowledgeable about and can speak about fluently and confidently.)

16. Vacation Experience.

(Describe a positive travel experience and highlight skills you demonstrated or learned. This helps to understand your personality and experiences.)

17. Prior Work Experience.

(Describe your previous work experience honestly and positively, focusing on accomplishments and reasons for seeking new opportunities.)

18. Hobbies.

(List your hobbies, demonstrating a well-rounded personality. Be prepared to answer follow-up questions about these hobbies.)

19. Qualities of a Leader.

(Discuss leadership qualities, emphasizing those relevant to the role you are applying for. Be specific.)

20. Previous Job Applications.

(Answer honestly and concisely. Emphasize your interest in this particular opportunity.)