TCS PLACEMENT PAPER ( DATA STRUCTURE QUESTIONS)
PAPER: TCS PLACEMENT PAPER ( DATA STRUCTURE QUESTIONS)
DATA STRUCTURE QUESTIONS:
1.What is a data structure?
2.What does abstract data type means?
3.Evaluate the following prefix expression " ++ 26 + - 1324" (Similar types can be asked)
4.Convert the following infix expression to post fix notation ((a+2)*(b+4)) -1 (Similar types can be asked)
5.How is it possible to insert different type of elements in stack?
6.Stack can be described as a pointer. Explain.
7.Write a Binary Search program
8.Write programs for Bubble Sort, Quick sort
9.Explain about the types of linked lists
10.How would you sort a linked list?
11.Write the programs for Linked List (Insertion and Deletion) operations
12.What data structure would you mostly likely see in a non recursive implementation of a recursive algorithm?
13.What do you mean by Base case, Recursive case, Binding Time, Run-Time Stack and Tail Recursion?
14.Explain quick sort and merge sort algorithms and derive the time-constraint relation for these.
15.Explain binary searching, Fibinocci search.
16.What is the maximum total number of nodes in a tree that has N levels? Note that the root is level (zero)
17.How many different binary trees and binary search trees can be made from three nodes that contain the key values 1, 2 & 3?
18.A list is ordered from smaller to largest when a sort is called. Which sort would take the longest time to execute?
19.A list is ordered from smaller to largest when a sort is called. Which sort would take the shortest time to execute?
20When will you sort an array of pointers to list elements, rather than sorting the elements themselves?
21.The element being searched for is not found in an array of 100 elements. What is the average number of comparisons needed in a sequential 22.search to determine that the element is not there, if the elements are completely unordered?
23.What is the average number of comparisons needed in a sequential search to determine the position of an element in an array of 100 elements, if 24.the elements are ordered from largest to smallest?
25.Which sort show the best average behavior?
26.What is the average number of comparisons in a sequential search?
27.Which data structure is needed to convert infix notations to post fix notations?
28.What do you mean by:
29.How can you correct these errors?
30.In which data structure, elements can be added or removed at either end, but not in the middle?
31.How will in order, preorder and post order traversals print the elements of a tree?
32.Parenthesis are never needed in prefix or postfix expressions. Why?
33.Which one is faster? A binary search of an ordered set of elements in an array or a sequential search of the elements.
3i Infotech - AAI - ABACUS - ABB - Accel Frontline - Accenture - Aditi - Adobe - ADP - Agreeya - Akamai - Alcatel Lucent - Allfon - Alumnus - Amazon - Amdocs - AMI - Andhra Bank - AppLabs - Apps Associates - Aricent - Ashok Leyland - Aspire - Atos Origin - Axes - Bajaj - Bank of Maharashtra - BEL - BEML - BHEL - BirlaSoft - Blue Dart - Blue Star - BOB - BPCL - BPL - Brakes - BSNL - C-DOT - Cadence - Calsoft - Canara Bank - Canarys - Capgemini - Caritor - Caterpillar - CDAC - CGI - Changepond - Ciena - Cisco - Citicorp - CMC - Consagous - Convergys - CORDYS - Crompton - CSC - CTS - Cummins - Dell - Deloitte - Delphi-TVS - DeShaw - Deutsche - Dotcom - DRDO - EDS - EIL - ELGI - ELICO - ERICSSON - Essar - Fidelity - Flextronics - Freescale - FXLabs - GAIL - GE - Genpact - Geodesic - Geometric - Globaledge - GlobalLogic - Godrej - Google - Grapecity - HAL - HCL - Hexaware - Honeywell - HP - HPCL - HSBC - Huawei - Hughes - IBM - IBS - ICICI - iGate - Impetus - iNautix - Indian Airforce - Indian Airlines - Infosys - Infotech - Intec - Integra - Intergraph - IOCL - iSOFT - ISRO - Ittiam - JSW - Keane - Kenexa - L & T - L & T Infotech - LG Soft - Lifetree - LionBridge - Mahindra Satyam - Mastek - Maveric - McAfee - MECON - Microsoft - MindTree - Miraclesoft - Mistral - Motorola - Mphasis - MTNL - NIC - Nokia Siemens - Novell - NTPC - Nucleus - ORACLE - Patni - Perot - Polaris - Ramco - Robert Bosch - Samsung - SAP - Sapient - Sasken - SBI - Sierra Atlantic - Sonata - Sony India - Sutherland - Syntel - TCS - Tech Mahindra - VeriFone - Virtusa - Wipro - Zensar.