TCS Possible Technical Interview Questions. 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. The Phone Interview. If. 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. He / she may also assess your technical ability. If the phone interview goes well, you will be asked to join us for an in- person interview. C Programs Asked In Tcs Interview ProcessWhat is your strongest programming language (Java, ASP, C, C++, VB, HTML, C#, etc.)? That is function prototypes exist in a header file,not function bodies. They are defined in library (lib). They are extern, register, auto and static. 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. Values will be persisted between successive? 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. 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. But C++ extended the structure to contain functions also. By default all the members inside the class are private. Important C Programs Asked in Interviews Angad Kumar Shukla's blog. Angad Kumar Shukla's blog. Simple C interview questions answers for TCS, CTS, Infosys. Such definitions are usually asked by companies such as TCS. Basic, medium,expert programs example in c,java,c/++ - Toggle navigation Scanftree.com. C Programming; Academic Tutorials. Total Programs in Frequently asked c programs in interview 11. 4 In C program, state the easiest. Common C Interview Questions For TCS Interview. The common C questions asked in TCS interview are given below. What is ponter? Pointer is a variable in a program is something with a name, the value of which can vary. The way the compiler and linker handles this is that it assigns. Generic pointer can hold the address of any data type. C Programs Asked In Tcs Interview ExperiencesThis capability is called function overloading. When an overloaded function is called, the C++ compiler selects the proper function by examining the number, types and order of the arguments in the call. Function overloading is commonly used to create several functions of the same name that perform similar tasks but on different data types. Operator overloading allows existing C++ operators to be redefined so that they work on objects of user- defined classes. C Programming interview questions and answers section for various interview, competitive examination and entrance test. You can easily solve all kind of C Programming questions by practicing the exercises given below. Learn 10 most asked C programs for technical interviews: Pattern, Series, Pointers & Sorting, String, Memory allocation, Structure. This section covers C programs often asked in campus interviews and freshers walk-in. BASIC C INTERVIEW QUESTIONS AND ANSWERS. Frequently Asked C Language Interview Questions and answers. This question is related to TCS Interview. Interview Candidate; Sep 15th, 2005; 14; 27551; C. C program to compare two text files. 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). 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. 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. 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. Undefined results occur if the Pointer parameter is not a valid pointer. List is collection of heterogeneous elements. For Array memory allocated is static and continuous. For List memory allocated is dynamic and Random. Array: User need not have to keep in track of next memory allocation. List: 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. Advance knowledge about the relationship between data items allows designing of efficient algorithms for the manipulation of data. Can you list out the areas in which data structures are applied extensively? Compiler Design,Operating System,Database Management System,Statistical analysis package,Numerical Analysis,Graphics,Artificial Intelligence,Simulation. 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 deadlock 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 by it are being used by other waiting process, then the system is said to be in a deadlock. Mutual Exclusion: At least one resource must be non- shareable. In general, there is a set of waiting processes, P = . 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? Each node contains two fields, called links, that are references to the previous and to the next node in the sequence of nodes. The beginning and ending nodes' previous and next links, respectively, point to some kind of terminator, typically a sentinel node or null, to facilitate traversal of the list. If there is only one sentinel node, then the list is circularly linked via the sentinel node. It can be conceptualized as two singly linked lists formed from the same data items, but in opposite sequential orders. What is data abstraction? The doctor is interested in name, height, weight, age, blood group, previous or existing diseases etc of a person. An employer sees (abstracts) a person as Employee. The employer is interested in name, age, health, degree of study, work experience etc of a person. Its through abstraction we define the essential aspects of a system. The process of identifying the abstractions for a given system is called as Modeling (or object modeling). Three levels of data abstraction are: 1. Physical level : how the data is stored physically and where it is stored in database. Logical level : what information or data is stored in the database. In c main function has three arguments. They are: Argument counter. Argument vector. Environment vector. Advantages of a macro over a function? Macro gets to see the Compilation environment, so it can expand #defines. It is expanded by the preprocessor. The cache is a smaller, faster memory. As long as most memory accesses are cached memory locations, the averagelatency of memory accesses will be closer to the cache latency than to the latency of main memory. What is debugger? A debugger or debugging tool is a computer program that is used to test and debug other programs 3. Const char *p , char const *p What is the difference between the above two? What is Memory Alignment? It consists of two separate but related issues: data alignment and data structure padding.? The new operator starts by using operator new to allocate memory, but then it invokes the constructor for the right type of object, so the result is a real live object created in that memory. If that object contains any other objects (either embedded or as base classes) those constructors as invoked as well. Difference between delete and delete? What is conversion constructor? The compiler uses conversion constructors to convert objects from the type of the first parameter to the type of the conversion constructor's class. To define implicit conversions, C++ uses conversion constructors, constructors that accept a single parameter and initialize an object to be a copy of that parameter. What is a spanning Tree? A spanning tree is a tree associated with a network. All the nodes of the graph appear on the tree once. A minimum spanning tree is a spanning tree organized so that the total edge weight between nodes is minimized. Why should we use data ware housing and how can you extract data for analysis with example? If you want to get information on all the techniques of designing, maintaining, building and retrieving data, Data warehousing is the ideal method. A data warehouse is premeditated and generated for supporting the decision making process within an organization. Here are some of the benefits of a data warehouse: o With data warehousing, you can provide a common data model for different interest areas regardless of data's source. In this way, it becomes easier to report and analyze information. Many inconsistencies are identified and resolved before loading of information in data warehousing. This makes the reporting and analyzing process simpler. The best part of data warehousing is that the information is under the control of users, so that in case the system gets purged over time, information can be easily and safely stored for longer time period. Because of being different from operational systems, a data warehouse helps in retrieving data without slowing down the operational system. Data warehousing enhances the value of operational business applications and customer relationship management systems. Data warehousing also leads to proper functioning of support system applications like trend reports, exception reports and the actual performance analyzing reports. Sample TCS Simple C Interview Questions. Below are few simple interview questions from C which you can expect on interviews by top companies like TCS. Though these questions are extremely simple, a miss in any of the below questions could hamper the impression you could leave on your interviewer. Hence it is very essential that you are very strong with the basics. Interview Question 1. What are macros and why they are used ? Answer : In programming terms, macros can be defined as short statements that are actually expanded into lengthier set of statements during execution. Macros in C save a lot of programming time (though there is no direct impact on execution time.)Interview Question 2. What is typecasting ? Answer : In C programs involving arithmetic expressions, often need arises to convert a variable/expression of one data type to another. This process is called typecasting. Interview Question 3. In C functions, what is the easiest way to pass arrays as arguments ? Answer : Passing by reference is the easiest way to pass arrays as arguments in C functions. Interview Question 4. What does void keyword implies when used to the left of function name in function definitions ? Answer : void to the left of function name in function definition indicates that function will not return a value.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2016
Categories |