Data Structure and Algorithm - Viva Questions


1. 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 each other. Advance knowledge about the relationship between data items allows
designing of efficient algorithms for the manipulation of data.

2. List out the areas in which data structures are applied extensively?
1. Compiler Design,
2. Operating System,
3. Database Management System,
4. Statistical analysis package,
5. Numerical Analysis,
6. Graphics,
7. Artificial Intelligence,
8. Simulation

3. What are the major data structures used in the following areas : RDBMS, Network data
model and Hierarchical data model.
1. RDBMS = Array (i.e. Array of structures)
2. Network data model = Graph
3. Hierarchical data model = Trees

4. If you are using C language to implement the heterogeneous linked list, what pointer
type will you use?
The heterogeneous linked list contains different data types in its nodes and we need a link, pointer to
connect them. It is not possible to use ordinary pointers for this. So we go for void pointer. Void
pointer is capable of storing pointer to any type as it is a generic pointer type.

5. Minimum number of queues needed to implement the priority queue?
Two. One queue is used for actual storing of data and another for storing priorities.

6. What is the data structures used to perform recursion?
Stack. Because of its LIFO (Last In First Out) property it remembers its 'caller' so knows whom to
return when the function has to return. Recursion makes use of system stack for storing the return
addresses of the function calls.
Every recursive function has its equivalent iterative (non-recursive) function. Even when such
equivalent iterative procedures are written, explicit stack is to be used.

7. What are the notations used in Evaluation of Arithmetic Expressions using prefix and
postfix forms?
Polish and Reverse Polish notations.

8. Convert the expression ((A + B) * C - (D - E) ^ (F + G)) to equivalent Prefix and Postfix
notations.
1. Prefix Notation: ^ - * +ABC - DE + FG
2. Postfix Notation: AB + C * DE - - FG + ^

9. Sorting is not possible by using which of the following methods? (Insertion, Selection,
Exchange, Deletion)
Sorting is not possible in Deletion. Using insertion we can perform insertion sort, using selection
we can perform selection sort, using exchange we can perform the bubble sort (and other similar
sorting methods). But no sorting method can be done just using deletion.

10. What are the methods available in storing sequential files ?
1. Straight merging,
2. Natural merging,
3. Polyphase sort,
4. Distribution of Initial runs.

11. List out few of the Application of tree data-structure?
1. The manipulation of Arithmetic expression,
2. Symbol Table construction,
3. Syntax analysis.

12. List out few of the applications that make use of Multilinked Structures?
1. Sparse matrix,
2. Index generation.

13. In tree construction which is the suitable efficient data structure? (Array, Linked list,
Stack, Queue)
Linked list is the suitable efficient data structure.

14. What is the type of the algorithm used in solving the 8 Queens problem?
Backtracking.

15. In an AVL tree, at what condition the balancing is to be done?
If the 'pivotal value' (or the 'Height factor') is greater than 1 or less than -1.

16. What is the bucket size, when the overlapping and collision occur at same time?
One. If there is only one entry possible in the bucket, when the collision occurs, there is no way to
accommodate the colliding value. This results in the overlapping of values.

17. Classify the Hashing Functions based on the various methods by which the key value is
found.
1. Direct method,
2. Subtraction method,
3. Modulo-Division method,
4. Digit-Extraction method,
5. Mid-Square method,
6. Folding method,
7. Pseudo-random method.

18. What are the types of Collision Resolution Techniques and the methods used in each of
the type?
1. Open addressing (closed hashing), The methods used include: Overflow block.
2. Closed addressing (open hashing), The methods used include: Linked list, Binary tree.

19. In RDBMS, what is the efficient data structure used in the internal storage
representation?
B+ tree. Because in B+ tree, all the data is stored only in leaf nodes, that makes searching
easier. This corresponds to the records that shall be stored in leaf nodes.

 20. 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.

 21. Does the minimum spanning tree of a graph give the shortest distance between
any 2 specified nodes?
The Minimal spanning tree assures that the total weight of the tree is kept at its minimum.
But it doesn't mean that the distance between any two nodes involved in the minimumspanning
tree is minimum.

22. Which is the simplest file stru
cture? (Sequential, Indexed, Random)
Sequential is the simplest file structure.

 23. Whether Linked List is linear or Non-linear data structure?
According to Access strategies Linked list is a linear one.
According to Storage Linked List is a Non-linear one.

42 comments:

  1. Different enterprises are likewise employing these enormous information, researchers like government organizations, huge retailers, long range interpersonal communication destinations and even guard powers. ExcelR Data Science Courses

    ReplyDelete
  2. Your texts on this subject are correct, see how I wrote this site is really very good. appraisal data entry services

    ReplyDelete
  3. The training is provided by popular online platforms, coaching classes and even some colleges provide certification course. The training will prove to be the most beneficial for students with an engineering or science background and also those with some basic coding knowledge. data science course in india

    ReplyDelete
  4. Interesting article. These multiple choice questions are really useful to find gaps in your knowledge. The knowledge of data structures and algorithms establishes the foundation with which learner solves a programming problem.

    ReplyDelete
  5. These viva questions are helpful for anyone preparing for interviews and for programming problems on Data structures and algorithms, checkout Logicmojo.com

    ReplyDelete
  6. Thankyou for this wondrous post, I am happy I watched this site on yippee. ExcelR Data Analytics Course

    ReplyDelete
  7. Damn! Best blog with good information thanks for sharing Data Scientist Course

    ReplyDelete
  8. I really enjoy reading and also appreciate your work.
    best data science course online

    ReplyDelete
  9. The data structures viva questions and answers are very useful and informative for all and students as well,Thanks for sharing.
    Data Science Training in Pune

    ReplyDelete
  10. All questions are very useful for preparation. Thank you
    Data science course in pune

    ReplyDelete
  11. Amazing Article! I would like to thank you for the efforts you had made for writing this awesome article. This article inspired me to read more. keep it up.If you are Searching for info click on given link
    Data science course in pune

    ReplyDelete
  12. If you're looking to get the in-depth method overriding in Python, we recommend you enroll in the six-month Data Science Program. AI Patasala offers Best Data Science Institute in Hyderabad. The course will teach you the basics of Statistics, Predictive Analytics, Python, Machine Learning, Data Visualization, Big Data Analytics, and many more.

    ReplyDelete

  13. I like your post. I appreciate your blogs because they are really good. Please go to this website for the Data Science Course: For Data Science Course Data Science course in Bangalore. These courses are wonderful for professionalism.

    ReplyDelete
  14. Become a data science expert by joining AI Patasala’s Data Science Course in Hyderabad, where you can learn data science concepts with practical knowledge.
    Data Science Course Training Institute in Hyderabad

    ReplyDelete
  15. Fantastic blog, really nice blog, and useful to all. Informative and knowledgeable content. Thanks for sharing this blog with us. Keep sharing more stuff like this.
    AI Patasala Data Science Training in Hyderabad

    ReplyDelete
  16. I feel extremely appreciative that I read this. It is extremely useful and exceptionally enlightening and I truly took in a ton from it.
    business analytics course in hyderabad

    ReplyDelete
  17. By using the most successful methods and practices, online businessmen and millionaires created growth hacking training.
    It will be taught to you how to apply these tactics, methods, and how to integrate them into your career and business.
    digital marketing course in Bangalore

    ReplyDelete
  18. Manage projects in your industry with online courses in digital marketing
    Digitally tracking the work done by each worker per day, i.e., managing construction projects digitally. It takes just a few minutes a day to learn this method, then you can practice what you've learned. It is advisable to arrange the program chronologically, since the sessions are held chronologically.
    digital marketing course in Bangalore

    ReplyDelete
  19. Manage projects in your industry with online courses in digital marketing
    Digitally tracking the work done by each worker per day, i.e., managing construction projects digitally. It takes just a few minutes a day to learn this method, then you can practice what you've learned. It is advisable to arrange the program chronologically, since the sessions are held chronologically.
    digital marketing training online

    ReplyDelete
  20. Really nice and interesting post. I was looking for this kind of information and enjoyed reading this one.
    data analytics training in hyderabad

    ReplyDelete
  21. Great details in this paper. Please make sure you check out our Instagram Reels Downloader, one of the greatest tools of its sort.

    ReplyDelete
  22. This is a truly fascinating and interesting post. This post was exactly what I was looking for. Continue posting. Thank you for sharing. 360DigiTMG Data Science Courses

    ReplyDelete
  23. Viably, the article is actually the best point on this library related issue. I fit in with your choices and will enthusiastically foresee your next updates. data science course in pune

    ReplyDelete
  24. I hate to say but those algorithms literally made me insane
    need Australia Service visit Registered Migration Agent Perth

    ReplyDelete
  25. I read your blog. I found it very informative. I am a big fan of your blogs. I feel the blog aligns perfectly with our services. We are providing data science courses with real-work experience which is ideal for those who wish to have a career transition or start a fresh career path in data science along with a 100% job assurance commitment visit our website Data Science Courses in Pune. These courses are wonderful for professionals.

    ReplyDelete
  26. The content is well acknowledged, so no one could allege that it is just one person's opinion yet it covers and justifies all the applicable points. I have read such a startling work after a long time!
    Data Science training in Mumbai
    Data Science course in Mumbai
    SAP training in Mumbai

    ReplyDelete
  27. A fascinating collection of Viva Questions! It is critical to prepare well for interviews, but don't overlook the practical execution component. Balance is essential!
    Data Analytics Courses in Delhi

    ReplyDelete
  28. This comprehensive list of viva questions on data structures and algorithms covers a wide range of topics and provides clear explanations. It's an invaluable resource for anyone preparing for interviews or exams in this field, offering both theoretical knowledge and practical insights. Great job in compiling this valuable information.
    Data Analytics Courses In Dubai

    ReplyDelete
  29. This exhaustive list of viva questions on algorithms and data structures covers a wide range of subjects and offers concise explanations. It provides both theoretical information and practical insights, making it an invaluable tool for anyone preparing for interviews or tests in this sector. You did a fantastic job of accumulating this useful information.
    Data Analytics Courses in Agra

    ReplyDelete
  30. The viva questions on data is really amazing and the important is data structures and algorithms are the backbone of computer science and programming. Thank you.
    Data Analytics Courses In Chennai

    ReplyDelete
  31. They're incredibly helpful for students and professionals preparing for interviews or exams. A great resource for honing our knowledge.
    Digital marketing courses in illinois

    ReplyDelete
  32. Thank you for sharing your content. I consistently derive immense joy from consuming such exceptional material that imparts valuable insights. The concepts presented are truly extraordinary and incredibly engaging, rendering the post a genuine source of delight. Please keep up your fantastic work.
    Visit- Financial Data Analysis and Risk Management

    ReplyDelete
  33. Thanks for sharing valuable and informative resource for preparing Data Structure and Algorithm Viva .
    data analyst courses in limerick

    ReplyDelete
  34. Clear and concise explanations of fundamental data structure concepts. Thanks for the insightful compilation

    Digital marketing tips for small businesses

    ReplyDelete
  35. Excellent list of practice questions. Good choices of questions too.

    ReplyDelete
  36. Very informative content! Understanding data structures is crucial for efficient data manipulation, and your explanation is clear and concise. It's fascinating to see the diverse applications of data structures in areas like Compiler Design, Operating Systems, and Artificial Intelligence. The breakdown of major data structures used in RDBMS, Network data model, and Hierarchical data model adds a practical touch to theoretical knowledge. Great job.

    ReplyDelete
  37. Ai techniques tool

    Design tools :-Runway Ml ,Adobe Sensei ,Lumen5 ,BOOTH AI coding tool :-PyTorch ,jupyter Notebooks ,10web ,Keras,replit

    WRITING TOOL:-OpenAI's GPT-3 ,Grammarly,Writesonic ,quillbot ,Spinbot

    CHATBOTX TOOLS :- cohere,typewise, kaizan, yatterplus, quickchat

    Marketing tool:-copy ai ,mutiny ,copy smith ,simplified ,content edge
    Digital marketing academy in kochi

    ReplyDelete
  38. Not enough time to spend a year learning
    no problem!

    BECOME AN ADVANCED DIGITAL MARKETER
    smm training ernakulam
    https://digitalacademy.actutechsolutions.com/

    ReplyDelete