[Updated] Goldman Sachs Aptitude Test Questions and Answers
Practice List of TCS Digital Coding Questions !!!
Take 50+ FREE!! Online Data Interpretation Mock test to crack any Exams.

# Technical Interview Questions and Answers :: Data Structure

21 / 72

What are the differences between graphs and spanning tree?

No Discussion on this question yet!

22 / 72

How can u swap two numbers without using a temporary variable?

No Discussion on this question yet!

23 / 72

Logic to attach one string infront of another string without using built-in functions?

No Discussion on this question yet!

24 / 72

What are basic search algorithms?

No Discussion on this question yet!

25 / 72

Explain any sorting algorithm with example?

No Discussion on this question yet!

26 / 72

Difference between Linear and Binary search?

No Discussion on this question yet!

27 / 72

What is a Data Structure?

No Discussion on this question yet!

28 / 72

What is a Graph?

No Discussion on this question yet!

29 / 72

Write a program to Sort the given unsorted list.

#include
using namespace std;
void selectionSort(int a[], int n) {
int i, j, min, temp;
for (i = 0; i < n - 1; i ) {
min = i;
for (j = i 1; j < n; j )
if (a[j] < a[min])
min = j;
temp = a[i];
a[i] = a[min];
a[min] = temp;
}
}
int main() {
int a[] = { 22, 91, 35, 78, 10, 8, 75, 99, 1, 67 };
int n = sizeof(a)/ sizeof(a[0]);
int i;
cout<<"Given array is:"< for (i = 0; i < n; i )
cout<< a[i] <<" ";
cout< selectionSort(a, n);
printf("\nSorted array is: \n");
for (i = 0; i < n; i )
cout<< a[i] <<" ";
return 0;
}

30 / 72

Can you explain Binary sort in detail?

No Discussion on this question yet!

Operating System, Data Structure are some of the topics which will find the place in almost every interview, as they serve as the base and are a must especially for freshers. Also, a good subject to learn algorithms, storing methodologies, maintaining the quality and optimal time of the code and much more for college students.

The collection of Data Structure Interview Questions and Answers for Freshers questions here helps you to do that and much more. Learn and test your knowledge through the mock tests. Giving an interview, need some quick questions to review, WE HAVE GOT YOUR BACK!!, just save the questions to your personalized reading list using TO READING LIST and see through them anytime anywhere you want.
All questions here are based on the real time experience of previous candidates and have been asked in various IT Companies interviews at freshers and Experience level.