Frequently Asked TCS Technical Interview Questions And Answers

Are you keen to join the IT giant TCS, then this blog post with some common technical interview questions and answers, is just for you?

Campus Interview

This often takes 45 minutes to an hour and might have more than one interviewer. One interviewer might focus on your communication skills, skills of self-management and background by asking behavioral questions. The other would focus on your technical skills.

Phone Interview

They can set up a mutually convenient date and time for your phone interview. Your interviewer would then assess your communication skills, self-management skills, and background by asking behavioural questions. He or she might also assess your technical abilities. If phone interview goes well, next would follow an in-person interview.

Technical interview questions and answers

1. What is your strongest programming language?

You should tell about your favourite programming language and be prepared with questions based on that.

2. Differences between C and Java?

1. JAVA is Object-Oriented whereas C is procedural.

2. Java is an Interpreted language whereas C is a compiled language.

3. C is a low-level language and JAVA is a high-level language.

4. C makes use of top-down approach while JAVA uses a bottom-up approach.

5. Pointer goes backstage in JAVA and C needs handling of pointers.

6. JAVA supports Method Overloading while C does not support overloading at all.

7. Exception Handling is in JAVA while errors and crashes in C.

3. In header files whether functions are defined or declared?

This is a very common and definite, technical interview questions and answers for TCS IT job.

Functions are declared within a header file. The function prototypes exist in a header file, and not function bodies. They are defined in the library.

4. Name the different storage classes in C?

There are four types of storage classes in C, namely extern, register, auto and static

5. What is static variable?

Static is an access qualifier. When a variable is declared as static, the scope is limited to the function, but it would remain for the lifetime of the program.

6. How do you print an address?

Apply %p in printf to print the address.

7. What are macros? What are its benefits and limits?

Macros are processor directive which gets replaced at compile time.

The limitation is that they can replace the code they do not function summon. And the benefit is that they can lower time to replace the same values.

8. Differentiate between pass by reference and pass by value?

Pass by value sends value from a caller to summoning the function so the called function cannot change the values in caller function. But Pass by reference can pass an address to the caller function instead of value if called function requires editing any value it can directly modify.

9. Define an object?

An object is a bundle of variables and methods. Objects have both state and behavior

10. Define a class?

A class is a user-defined data type in C++. It is created to solve a particular kind of problem. After its creation, the user need not know the specifics of the working of a class.

11. What is a pointer?

The pointer is a variable in a program, the value can vary. The way a compiler and a linker handles is that assigns a specific block of memory within the computer to hold the value of that variable.

12. Differentiate between null and void pointers.

A Null pointer has a value of 0. A void pointer is a generic pointer introduced by ANSI.

13. What is function overloading?

This is a feature of C++ that permits us to create several functions with the same name, as long they have different parameters. Take an instance of the following function:

int Add(int nX, int nY)


Return nX + nY;


14. What is friend function?

A friend function for a class is used in object-oriented programming to permit an access to public, private, or protected data in a class from outside.

To mention, a function which is not a member of a class cannot access such information.

15. What is an inline function?

The inline functions are to enter the code of a called function at the point where the function is called. If done well, this can improve the application’s performance in exchange for increased compile time.

16. Differentiate between an array and a list?

The array is a collection of homogeneous elements. The list is a collection of heterogeneous elements.

For Array, memory is static and continuous. For List, memory is dynamic and random.

Array: User doesn’t need to keep a track of next memory allocation.

List: An user has to keep Track of next location where memory is stored.

The array uses direct access of stored members; whereas list uses sequential access for members.

17. Differentiate between structures and array.

Arrays are a group of similar data types whereas structures is a group of different data types

18. Define data structure.

A data structure is a way to organize data which considers not only the items stored but also their relationship to each other.

19. List out the area in which data structures are applied extensively.

Compiler Design,

Operating System,

Database Management System,

Statistical analysis package,

Numerical Analysis,


Artificial Intelligence,


20. Tell about benefits of inheritance.

It allows code reusability. Reusability saves time during development of programs. It allows reuse of proven and debugged high-quality software; hence lowering problem once a system becomes functional.

Among the vast resource of questions, we have included a few of the most commonly asked ones.

With this, we conclude with our today’s blog on TCS interview questions. Hope this piece of information helps you. Keep looking into this space by career advice for more career guidance tips, news, and updates.

Leave your thoughts