TCS Interview Questions

-: TCS Interview Questions :-

What are header files and what are its uses in C programming?

Ans: Header files are a collection of functions. They also known as library files.These files help us by providing variety of functions without knowing the exact definations of the functions. The header files holds the definations and prototypes of some predefined functions and we just call them in our program where it is needed. Example- we use ‘printf()’ and ‘scanf()’ which are predefined in ‘stidio.h’


How can we sort the elements of the array in descending order?

Ans:We can sort elements of an array by calling Sort() and then calling Reverse().The Sort() will sort the elements in ascending order and then Reverse() will arrange it in descending order.


What is virtual memory?

Ans:basically a time shering techniques that allow hardware technique for a system to have more memory.This is compliting by time shering whene storgae part of memory not actively being used.


What is Public Key Encryption?

ANS:There may be two keys one is public Key encryption one private key and another pUblic key.The private key kept with the receiver and Public key is announced to be public .The sender use public Key to encrypt the Message.


what do you mean by super()?

Ans:It is a method basically used to invoke a constructor. of a super class.


What are linked list?

Ans:Linked list is used for utilize the memory for storage. In C, linked list are created using pointer where each node is connected with other nodes.


What is unboxing in C#?

Ans:Converting from object type to a value type is known as unboxing in C#.


What is a Database system?

Ans:when a databsae interact with a DBMS application  and work together that is called Database system.


What are the basic functions of an operating system?

Ans: Basiclly os has 3 type of operation

  1. mange resource for computers
  2. creating a user interface
  3. provied well service for application and software.


Explain the concept of the Distributed systems?

Ans: a system is called  distributed when it shere it’s all  resource to run all the process of a perticular system.


What is are packages?

Ans:collection of same object’s classs is called package.


Why ‘for’ loop is called a entry control loop?

Ans:In case of for loop, the condition is satisfied first then the statements get executed.Due to entry time checking, for loop is called entry control loop.


What is switching ?

Ans: It is an importent technique that can determine how connection in a network are made adn it describes how data movement are handled in WAN.


What are pointer types in C#?

Ans:Pointer type variable in C# stores the memory address of another variaable.Pointers in C# have the same capabilities as the pointers in C or C++.We can declare a pointer in C# like- char* cptr; where ‘char*’ represents a type i.e. character type pointer and ‘cptr’ represents the name of the pointer.


what is data abstraction?

Ans:sometime developer hide the complexcity from user.The need for efficiency has lead desingers to use complex data structure to represent data in database.that process is called data abstraction.


What are nullable types in C#?

Ans: C# provides a special data types, the nullable types, to which you can assign normal range of values as well as null values.


What is spars Matrix

Ans:The matrix with filled with most zero M*N matrics.That Type of matrix is called spars Matrix.


What is priority Queue

Ans:A priority Queue is a Data structure used for storing a set S of element,based on a Key value,which denotes the priority of the element.


What are virtual functions?

Ans:When you have a function defined in a class that you want to be implemented in an inherited classes, you use virtual functions. The virtual functions could be implemented differently in different inherited class and the call to these functions will be decided at runtime.


What is Normalization

Ans:It is an another method for desingning a relational database is to use a process commonly known as normalization.


What is a node?

Ans:two or more computer are connected through a connection that are serv by physical midea.The connected computers are calld Nodes.


What is Beta Testing?

Ans:A kind of testing where the testin is perfome by user on the product.


What is a foreign key?

Ans:In the term of relational database a foreign key is an another type pf primary key that is the unique key or uniquely identifies a row of another table or same table.


What is subnet?

Ans:a technique which separate a bridge or router.


What is a thread?

Ans: Thread is alight waight is basically describe cpu utilization sate.


How many types of approaches are used in Integration Testing?

Ans: Two type of testing are there .they are,

  1. Bottom up
  2. Top down.


Write a code for deletion Element from array

Ans: int delete(inta[],int n,int i)


Int j,x;


for(j=1; j<=n-1; j++)



return (x);



What are the two different Function of Stack

Ans:PUSH and POP.

More Technical Interview Questions: