Notice: Due to an ongoing migration of our storage and publishing system, material requested since last month will not be uploaded for the time being, and new requests are paused. All existing notes remain available.

Unit 3 MCQs Introduction to Linked Lists

INT322 — Computing System And Technologies 60 questions. Pick an option to check it.

Read the notes Subjective questions

0 of 60 answered 0 right 0 wrong , 60 left

  1. Question 1 of 60 Definition of linked list Easy

    What is a linked list?

  2. Question 2 of 60 Implementation of singly linked list Easy

    What does a node in a singly linked list usually contain?

  3. Question 3 of 60 Implementation of singly linked list Easy

    What does the head of a singly linked list refer to?

  4. Question 4 of 60 Singly linked list traversal Easy

    Where does traversal of a singly linked list normally begin?

  5. Question 5 of 60 Singly linked list traversal Easy

    Which value usually marks the end of a singly linked list?

  6. Question 6 of 60 Singly linked list insertion Easy

    When inserting a new node at the beginning of a singly linked list, what should the head reference afterward?

  7. Question 7 of 60 Singly linked list insertion Easy

    To insert a node after a given node, which link must be updated?

  8. Question 8 of 60 Singly linked list deletion Easy

    What happens to the head when the first node of a singly linked list is deleted?

  9. Question 9 of 60 Linked list underflow and overflow conditions Easy

    When does linked list underflow occur?

  10. Question 10 of 60 Linked list underflow and overflow conditions Easy

    When can linked list overflow occur?

  11. Question 11 of 60 Introduction to trees Easy

    Which description best matches a tree data structure?

  12. Question 12 of 60 Tree terminology: root, edge, parent, child, siblings, leaf, degree, level, height, depth, path and subtree Easy

    What is the topmost node of a tree called?

  13. Question 13 of 60 Tree terminology: root, edge, parent, child, siblings, leaf, degree, level, height, depth, path and subtree Easy

    What is a tree node with no children called?

  14. Question 14 of 60 Tree terminology: root, edge, parent, child, siblings, leaf, degree, level, height, depth, path and subtree Easy

    What are two nodes with the same parent called?

  15. Question 15 of 60 Tree terminology: root, edge, parent, child, siblings, leaf, degree, level, height, depth, path and subtree Easy

    What is an edge in a tree?

  16. Question 16 of 60 Conceptual understanding of binary trees Easy

    What is the maximum number of children that a node in a binary tree can have?

  17. Question 17 of 60 Conceptual understanding of binary search trees Easy

    In a binary search tree, where are values smaller than a node usually placed?

  18. Question 18 of 60 Preorder traversal Easy

    Which order is used in preorder traversal?

  19. Question 19 of 60 Inorder traversal Easy

    Which order is used in inorder traversal?

  20. Question 20 of 60 Postorder traversal Easy

    Which order is used in postorder traversal?

  21. Question 21 of 60 Definition of linked list Medium

    A program frequently inserts records after a known record. Why may a linked list be more suitable than an array?

  22. Question 22 of 60 Implementation of singly linked list Medium

    Which structure correctly represents a node in a singly linked list of integers?

  23. Question 23 of 60 Singly linked list traversal Medium

    For the list 8 → 3 → 6 → null, what is printed by a traversal that starts at head and prints each node before advancing to next?

  24. Question 24 of 60 Singly linked list traversal Medium

    In a nonempty singly linked list, the loop while (current.next != null) current = current.next; terminates with current pointing to which node?

  25. Question 25 of 60 Singly linked list insertion Medium

    Which sequence correctly inserts newNode at the beginning of a singly linked list?

  26. Question 26 of 60 Singly linked list insertion Medium

    Suppose p points to a node in a singly linked list. Which statements correctly insert newNode immediately after p without losing the remaining list?

  27. Question 27 of 60 Singly linked list deletion Medium

    Which operation correctly deletes the first node of a nonempty singly linked list while allowing its memory to be released?

  28. Question 28 of 60 Singly linked list deletion Medium

    If q = p.next and q is not null, which statements delete q from the list?

  29. Question 29 of 60 Linked list underflow and overflow conditions Medium

    A deletion is requested when head is null. Which condition has occurred?

  30. Question 30 of 60 Linked list underflow and overflow conditions Medium

    When does linked list overflow normally occur in a dynamically allocated implementation?

  31. Question 31 of 60 Introduction to trees Medium

    A valid tree contains nodes. How many edges does it contain?

  32. Question 32 of 60 Tree terminology: root, edge, parent, child, siblings, leaf, degree, level, height, depth, path and subtree Medium

    In a tree, root R has children A, B, and C; node A has children D and E. Which statement is correct?

  33. Question 33 of 60 Tree terminology: root, edge, parent, child, siblings, leaf, degree, level, height, depth, path and subtree Medium

    Using edges as the measure, a deepest leaf is reached from the root through three edges. What are the depth of that leaf and the height of the tree?

  34. Question 34 of 60 Tree terminology: root, edge, parent, child, siblings, leaf, degree, level, height, depth, path and subtree Medium

    If node X and all nodes descended from X are considered together, what do they form?

  35. Question 35 of 60 Conceptual understanding of binary trees Medium

    If the root is at level , what is the maximum number of nodes at level of a binary tree?

  36. Question 36 of 60 Conceptual understanding of binary trees Medium

    Which statement must be true for every binary tree?

  37. Question 37 of 60 Conceptual understanding of binary search trees Medium

    The keys 50, 30, 70, 20, 40, 60 are inserted into an empty binary search tree in that order. Where will key 65 be inserted?

  38. Question 38 of 60 Conceptual understanding of binary search trees Medium

    A binary search tree has root 40; its right child is 60, whose left child is 50. Which comparison path is followed when searching for 50?

  39. Question 39 of 60 Preorder traversal Medium

    A binary tree has root A; A has children B and C; B has children D and E; and C has right child F. What is its preorder traversal?

  40. Question 40 of 60 Inorder traversal Medium

    A binary tree has root A; A has children B and C; B has children D and E; and C has right child F. What is its inorder traversal?

  41. Question 41 of 60 Definition of linked list Hard

    A singly linked list is represented by head = 900, with nodes (900: A, 300), (300: B, 700), and (700: C, NULL), where each pair after the address stores (data, next). If the node at address 300 is relocated to address 500, which change preserves the same logical list?

  42. Question 42 of 60 Implementation of singly linked list Hard

    Assume n is a newly allocated node and head points to the first node of a possibly nonempty singly linked list. Which ordering correctly inserts n at the front without losing access to the original list?

  43. Question 43 of 60 Singly linked list traversal Hard

    A singly linked structure may end in NULL or may contain a cycle. Which traversal strategy guarantees that every reachable node is processed exactly once and that traversal terminates in both cases?

  44. Question 44 of 60 Singly linked list insertion Hard

    A sentinel-headed singly linked list is sorted in ascending order. A new value x must be inserted after all existing nodes equal to x. Starting with p at the sentinel, which loop finds the correct predecessor?

  45. Question 45 of 60 Singly linked list insertion Hard

    A singly linked list maintains both head and tail. Which operation correctly appends a new node n and preserves head == tail for a one-node list?

  46. Question 46 of 60 Singly linked list deletion Hard

    Only a pointer p to a non-tail node of a singly linked list is available; neither head nor the predecessor is available. Assuming node identity need not be preserved, how can the logical element at p be deleted in time?

  47. Question 47 of 60 Singly linked list deletion Hard

    The following pointer-to-pointer algorithm deletes every node whose data equals x: Node **link = &head; while (*link != NULL) { if ((*link)->data == x) { Node *t = *link; *link = t->next; free(t); } else { /* missing */ } }. Which statement correctly replaces the missing part?

  48. Question 48 of 60 Linked list underflow and overflow conditions Hard

    For a dynamically allocated linked-list stack with no imposed size limit, which pair most accurately describes underflow and overflow?

  49. Question 49 of 60 Introduction to trees Hard

    A connected undirected tree has vertices. One new edge is added between two distinct existing vertices. Which statement must then be true?

  50. Question 50 of 60 Tree terminology: root, edge, parent, child, siblings, leaf, degree, level, height, depth, path and subtree Hard

    A rooted tree has edges R-A, R-B, R-C, A-D, A-E, B-F, E-G, F-H, and F-I. Levels begin at , and height is measured in edges. Which description is correct?

  51. Question 51 of 60 Tree terminology: root, edge, parent, child, siblings, leaf, degree, level, height, depth, path and subtree Hard

    A rooted tree contains nodes and leaves. Every nonleaf node has either one child or three children. How many nodes have degree three?

  52. Question 52 of 60 Tree terminology: root, edge, parent, child, siblings, leaf, degree, level, height, depth, path and subtree Hard

    A rooted tree has edges R-A, R-B, A-C, A-D, D-E, B-F, F-G, and F-H. Which tuple correctly gives (number of nodes in the subtree rooted at D, length of the path from E to G, lowest common ancestor of E and G)?

  53. Question 53 of 60 Conceptual understanding of binary trees Hard

    The height of a binary tree is measured as the number of edges on its longest root-to-leaf path. What is the minimum possible height of a binary tree containing nodes?

  54. Question 54 of 60 Conceptual understanding of binary trees Hard

    A complete binary tree contains nodes numbered from in level order. How many leaves and how many nodes with exactly one child does it contain?

  55. Question 55 of 60 Conceptual understanding of binary search trees Hard

    Assume all keys are distinct. Which sequence can be the preorder traversal of a binary search tree?

  56. Question 56 of 60 Conceptual understanding of binary search trees Hard

    Keys 50, 30, 70, 20, 40, 60, 80, 65 are inserted in that order into an empty binary search tree. Node 70 is then deleted using its inorder successor. What is the resulting preorder traversal?

  57. Question 57 of 60 Preorder traversal Hard

    A binary tree has preorder A, B, D, E, C, F, G and inorder D, B, E, A, F, G, C. What is the preorder traversal of its mirror tree, obtained by swapping the left and right children of every node?

  58. Question 58 of 60 Inorder traversal Hard

    A full binary tree with distinct labels has preorder A, B, D, E, C, F, G and postorder D, E, B, F, G, C, A. What is its inorder traversal?

  59. Question 59 of 60 Postorder traversal Hard

    A binary tree has preorder K, D, B, F, E, H, M, L, P and inorder B, D, E, F, H, K, L, M, P. What is its postorder traversal?

  60. Question 60 of 60 Postorder traversal Hard

    Keys 45, 25, 65, 15, 35, 55, 75, 30, 40, 70 are inserted into an empty binary search tree in that order. Which sequence is its postorder traversal?

That's unit 3

Answer a few questions and your score shows up here.