C, while object codes are saved with the file 10) In C programming, how do you insert quote characters (‘ and “) into the output. C is a programming language developed at AT & T’s Bell Laboratories of USA in The C programming language is a standardized. Answered Sep 25, · Author has answers and m answer views What are the current technical questions asked during TCS interviews? Views.

Author: Kazradal Gardagar
Country: Georgia
Language: English (Spanish)
Genre: Medical
Published (Last): 9 September 2007
Pages: 338
PDF File Size: 14.17 Mb
ePub File Size: 8.80 Mb
ISBN: 668-8-68204-288-6
Downloads: 42199
Price: Free* [*Free Regsitration Required]
Uploader: Akisida

This interview usually takes 45 minutes to an hour and may have one or two interviewers. One interviewer may focus on your communication skills, self-management skills and background by asking behavioral questions. The other will focus on your technical capabilities.

You look great on paper and they would like to have an employment discussion with candidate. They will set up a mutually-convenient date and time for your phone interview. Your interviewer will assess your communication skills, self-management skills and background by asking behavioral questions.

If the phone interview goes well, you will be asked to join us for an in-person interview. TCS Technical interview Questions.

Before interview You should decide your Favorite programming language and be imterview based on that question. Differences between C and Java?

TCS technical questions with answers for past 5 years?

Filteype is an Interpreted language while C is a compiled language. C is a low-level language while JAVA is a high-level language. C uses the top-down approach while JAVA uses the bottom-up approach. In header files whether functions are declared or defined? Functions are declared within header file. That is function prototypes exist in a header file,not function bodies. They are defined in library lib.

What are the different storage classes in C? There are four types of filetjpe classes in C. They are extern, register, auto and static. What does static variable mean? Static is an access qualifier. If a variable is declared as static inside a function, the scope is limited to the function,but it will exists for the life time of the program. How do you print an address? Macros are processor directive which will be replaced at compile time. The disadvantage with macros is that they just replace the code they are not function calls.

Difference between pass by reference and pass by value?

Pass by value just passes the value from caller to calling function so the called function cannot modify the values in caller function. But Pass by reference will pass the address to the caller function instead of value if called function requires to modify any value it can directly modify. What is an object? Object is a software bundle of variables and related methods. Objects have state and behavior.

What is a class? It can be created to solve a particular kind of problem. After creation the user need not know the specifics of the working of a class. What is the difference between class and structure? Initially in C a structure was used to bundle different type of data types together to perform a particular functionality. The major difference is that all declarations inside a structure are by default public.


Class is a successor of Structure. By default all the members inside the class are private. Pointer is a variable in a program is something with a name, the value of which can vary. What is the difference between null and void pointer? A Null pointer has the value 0. Generic pointer can hold the address of any data type. Consider the following function: What is function overloading and operator overloading?

This capability is called function overloading. Function overloading is commonly used to create several functions of the same name that perform similar tasks but on different data types. Overloaded operators are syntactic sugar for equivalent function calls.

They form a pleasant facade that doesn’t add anything fundamental to the language but they can improve understandability and reduce maintenance costs. A friend function for a class is used in object-oriented programming to allow access to public, private, or protected data in the class from the outside. Normally, a function that is not a member of a class cannot access such information; neither can an external class.

Occasionally, such access will be advantageous for the programmer. Under these circumstances, the function or external class can be declared as a friend of the class using the friend keyword.

What do you mean by inline function? The idea behind inline functions is to insert the code of a called function at the point where the function is called. If done carefully, this can improve the application’s performance in exchange for increased compile time and possibly but not always an increase in the size of the generated binary executables.

Tell me something about abstract classes? An abstract class is a class which does not fully represent an object. Instead, it represents a broad range of different classes of objects. However, this representation extends only to the features that those classes of objects have in common.

Thus, an abstract class provides only a partial description of its objects. What is the difference between realloc and free? The free subroutine frees a block of memory previously allocated by the malloc subroutine. Undefined results occur if the Pointer parameter is not a valid pointer.

If the Pointer parameter is a null value, no action will occur. The realloc subroutine changes the size of the block of memory pointed to by the Pointer parameter to the number of bytes specified by the Size parameter and returns a new pointer to the block. The pointer specified by the Pointer parameter must have been created with the malloc, calloc, or realloc subroutines and not been deallocated with the free or realloc subroutines.


What is the difference between an array and a list? Array is collection of homogeneous elements. List is collection of heterogeneous elements. For Array memory allocated is static and continuous.

For List memory allocated is dynamic and Random. User need not have to keep in track of next memory allocation. User has to keep in Track of next location where memory is allocated. Array uses direct access of stored members, list uses sequential access for members.

What are the differences between structures and arrays? Arrays is a group of similar data types but Structures can be group of different data types. What is data structure? A data structure is a way of organizing data that considers not only the items stored, but also their relationship to viletype other. Advance knowledge about the relationship between data items allows designing of efficient algorithms for the manipulation of data.

Can you anzwers out the areas in which data structures are applied extensively? What are the advantages of inheritance? It permits code reusability. Reusability saves time in program development.

It encourages the reuse of proven and debugged high-quality software, thus reducing problem after a system becomes functional. Referential integrity rules dictate that a database does not contain orphan foreign key values.

Entity integrity dictates that the primary key value cannot be Null. Tell something about filetypr and how can we prevent dead lock?

In an operating system, a deadlock is a situation which occurs when a process enters a waiting state because a resource requested by it is being held by another waiting process, which in turn is waiting for another resource. If a process is unable to change its state indefinitely because the resources requested auestions it are being used by other waiting process, then the system is said to be fo a deadlock.

At least one resource must be non-shareable.

Electronics and Communications Engineering Interview Questions & Answers

Hold and Wait or Resource Holding: A process is currently holding at least one resource and requesting additional resources which are being held by other processes. The operating system must not de-allocate resources once they have been allocated; they must be released by the holding process voluntarily.

A process must be waiting for a resource which is being held by another process, which in turn is waiting for the first process to release the resource. What is Insertion sort, selection sort, bubble sort basic differences among the functionality of the three sorts and not the exact algorithms. What is Doubly link list? A doubly linked list is a linked data structure that consists of a set of sequentially linked records called nodes.