CS301 – Data Structures: Midterm Important MCQs (342 Solved Questions)

Computer Science • Read every solved MCQ with its verified answer key directly on this page. Free, no login required.

All 664 Midterm Packs · CS301 Course Page · CS301 Subjective Pack (34 Q&As)

  1. Which one of the following statement is NOT correct .
    Topic: Arrays, Lists & Linked Lists
    1. In linked list the elements may locate at far positions in the memory
    2. In an array the elements are contiguous
    3. In linked list the elements are necessarily to be contiguous ✓ Correct answer
    4. In linked list each element also has the next to it
  2. Which one of the following statements is NOT correct?
    Topic: Arrays, Lists & Linked Lists
    1. Binary Search Tree size can be changed after its creation
    2. AVL Tree size can be changed after its creation
    3. Array size can be changed after its creation. ✓ Correct answer
    4. Link List size can be changed after its creation
  3. Which one of the following statements is correct?
    Topic: Arrays, Lists & Linked Lists
    1. Link List size is fixed once it is created.
    2. AVL Tree size is fixed once it is created
    3. Array size is fixed once it is created ✓ Correct answer
    4. Binary Search Tree size is fixed once it is created
  4. In which data structure does a programmer use two pointers in the node, i.e. one to point to the next node and the other to point to the previous node?
    Topic: Arrays, Lists & Linked Lists
    1. Doubly-linked list ✓ Correct answer
    2. Stack
    3. Queue
    4. Linked list
  5. In a singly linked list, the 'next' field of a node contains:
    Topic: Arrays, Lists & Linked Lists
    1. The address of the next node ✓ Correct answer
    2. NULL in every node
    3. The address of the previous node
    4. The data of the next node
  6. If we use an array to implement a list, then there is an issue that it gives difficulty when we:
    Topic: Arrays, Lists & Linked Lists
    1. Access a value randomly
    2. Want to increase its size ✓ Correct answer
    3. Read the last element
    4. Traverse it from the start
  7. If we use a singly linked list to implement a list, then there is an issue that it gives difficulty when we:
    Topic: Arrays, Lists & Linked Lists
    1. Access a value randomly (random access) ✓ Correct answer
    2. Delete the head node
    3. Increase its size
    4. Insert a node at the head
  8. An array is a group of consecutive related memory locations.
    Topic: Arrays, Lists & Linked Lists
    1. True ✓ Correct answer
    2. False
  9. A Linear Data Structure is the data structure in which data elements are arranged in a sequence or a linear list. Which of the following is Non Linear Data Structure?
    Topic: Arrays, Lists & Linked Lists
    1. Binary Search Trees ✓ Correct answer
    2. LinkLists
    3. Arrays
    4. None of these
  10. Each Node in singly link list,
    Topic: Arrays, Lists & Linked Lists
    1. 3 pointers
    2. 4 pointers
    3. 1 pointer ✓ Correct answer
    4. 2 pointers
  11. The Bag ADT is like the List ADT; it does not store items in any particular order and allows duplicates. The Bag class is efficiently implemented with a fixed array. Insert appends the new item at the end of the array. After executing: Bag b; b.insert(5); b.insert(4); b.insert(6); What will be the values of b.size and b.data?
    Topic: Arrays, Lists & Linked Lists
    1. b.size is 3, b.data[0] is 6, b.data[1] is 4, b.data[2] is 5
    2. b.size is 3, b.data[0] is 5, b.data[1] is 4, b.data[2] is 6 ✓ Correct answer
    3. b.size is 3, b.data[0] is 4, b.data[1] is 5, b.data[2] is 6
    4. b.size is 3, b.data[0] is 6, b.data[1] is 5, b.data[2] is 4
  12. In simple or singly linked list there is/are ________ pointer/s in each node.
    Topic: Arrays, Lists & Linked Lists
    1. Two
    2. One ✓ Correct answer
    3. Four
    4. Three
  13. The principal benefit of a linked list over a conventional array is that the order of the linked items may be_______ from the order that the data items are stored in memory.
    Topic: Arrays, Lists & Linked Lists
    1. Different ✓ Correct answer
    2. Same
    3. Both
    4. None of these
  14. In singly linked list a node comprises of __________ field/s.
    Topic: Arrays, Lists & Linked Lists
    1. Five
    2. One
    3. Two ✓ Correct answer
    4. Six
  15. The _______ method of list will position the currentNode and lastCurrentNode at the start of the list.
    Topic: Arrays, Lists & Linked Lists
    1. End
    2. Start ✓ Correct answer
    3. Middle
    4. None of these
  16. The back() method decreases the value of variable current by _____.
    Topic: Arrays, Lists & Linked Lists
    1. Three
    2. One ✓ Correct answer
    3. Four
    4. Two
  17. Each node in singly linked list contains_______
    Topic: Arrays, Lists & Linked Lists
    1. Five Pointers
    2. Two Pointers
    3. Six Pointers
    4. One Pointers ✓ Correct answer
  18. Which of the following is TRUE for search operations in a binary tree as compared to a linked list or an array?
    Topic: Arrays, Lists & Linked Lists
    1. It decreases the number of comparisons ✓ Correct answer
    2. It keeps the number of comparisons exactly the same
    3. It increases the number of comparisons
    4. It involves no comparisons
  19. The Josephus problem is resolved by the implementation of ____________.
    Topic: Arrays, Lists & Linked Lists
    1. Singly linked list
    2. Circular linked list ✓ Correct answer
    3. Queue
    4. Stack
  20. In a list, the tail() method of the 'current' pointer ____________.
    Topic: Arrays, Lists & Linked Lists
    1. Deletes the last element
    2. Moves the 'current' pointer to the very last element ✓ Correct answer
    3. Returns the last element without moving the pointer
    4. Moves the 'current' pointer to the first element
  21. When the add() operation of a linked list is called, the following action is done:
    Topic: Arrays, Lists & Linked Lists
    1. A new node is made ✓ Correct answer
    2. The list is sorted
    3. The 'current' pointer moves to the head
    4. An existing node is deleted
  22. In a tree, the search operation is _________ as compared to the linked list.
    Topic: Arrays, Lists & Linked Lists
    1. Very fast ✓ Correct answer
    2. Of the same speed
    3. Not possible
    4. Very slow
  23. In ___________, various cells of memory are not located continuously.
    Topic: Arrays, Lists & Linked Lists
    1. Static memory
    2. Array
    3. Linked list ✓ Correct answer
    4. Stack implemented with an array
  24. Array cells are _________ in computer memory.
    Topic: Arrays, Lists & Linked Lists
    1. Randomly placed
    2. Contiguous ✓ Correct answer
    3. Linked to each other
    4. Scattered
  25. In a doubly linked list, a node consists of three parts:
    Topic: Arrays, Lists & Linked Lists
    1. 1 pointer and 2 data items
    2. 3 pointers
    3. 2 pointers and 1 data (object) ✓ Correct answer
    4. 3 data items
  26. The last node in a circular linked list contains:
    Topic: Arrays, Lists & Linked Lists
    1. One null pointer
    2. Two null pointers
    3. No null pointer ✓ Correct answer
    4. The address of the last node itself
  27. The copy() method of the List data structure __________.
    Topic: Arrays, Lists & Linked Lists
    1. Merges two lists
    2. Sorts one list
    3. Sets one list to be a copy of another ✓ Correct answer
    4. Deletes one list
  28. The add(12) method of the linked list class will:
    Topic: Arrays, Lists & Linked Lists
    1. Multiply every element by 12
    2. Add 12 nodes to the linked list
    3. Insert 12 only at the tail
    4. Add 12 as a value in the linked list ✓ Correct answer
  29. A list is a collection of items of the ___________ type.
    Topic: Arrays, Lists & Linked Lists
    1. Same ✓ Correct answer
    2. Different
    3. Any
    4. Mixed
  30. The back() method of the List class is used to:
    Topic: Arrays, Lists & Linked Lists
    1. Move the 'current' pointer to the first element
    2. Return the last element
    3. Move the 'current' pointer backward by one element ✓ Correct answer
    4. Delete the last element
  31. The length() method of the List class is used to:
    Topic: Arrays, Lists & Linked Lists
    1. Return the length of the list ✓ Correct answer
    2. Delete the list
    3. Copy the list
    4. Sort the list
  32. Allocating and de-allocating memory for linked list nodes does take _________ time than a pre-allocated array.
    Topic: Arrays, Lists & Linked Lists
    1. No
    2. More ✓ Correct answer
    3. Equal
    4. Less
  33. In an array list, the worst case of removing an element is:
    Topic: Arrays, Lists & Linked Lists
    1. Removal is equally costly from every position
    2. To remove the item from the middle
    3. To remove the item from the start ✓ Correct answer
    4. To remove the item from the end
  34. Suppose currentNode refers to a node in a linked list (using the Node class with member variables called data and nextNode). What statement changes currentNode so that it refers to the next node?
    Topic: Arrays, Lists & Linked Lists
    1. currentNode += nextNode;
    2. currentNode = nextNode;
    3. currentNode ++;
    4. currentNode = currentNode->nextNode; ✓ Correct answer
  35. Which one is a self- referential data type?
    Topic: Arrays, Lists & Linked Lists
    1. Stack
    2. Link list
    3. Queue
    4. All of these ✓ Correct answer
  36. Each node in doubly link list has,
    Topic: Arrays, Lists & Linked Lists
    1. 2 pointers ✓ Correct answer
    2. 4 pointers
    3. 3 pointers
    4. 1 pointer
  37. Doubly Linked List always has one NULL pointer.
    Topic: Arrays, Lists & Linked Lists
    1. True
    2. False ✓ Correct answer
  38. In an array we can store data elements of different types.
    Topic: Arrays, Lists & Linked Lists
    1. True
    2. False ✓ Correct answer
  39. In an array list the current element is
    Topic: Arrays, Lists & Linked Lists
    1. The middle element
    2. The last element
    3. The element where the current pointer points to
    4. The first element ✓ Correct answer
  40. Which of the following is "TRUE" about arrays,
    Topic: Arrays, Lists & Linked Lists
    1. We can neither increase nor decrease the array size after their creation. ✓ Correct answer
    2. We can decrease the size of arrays after their creation.
    3. We can increase the size of arrays after their creation.
    4. We can increase but can't decrease the size of arrays after their creation.
  41. Is a data structure that can grow easily dynamically at run time without having to copy existing elements?
    Topic: Arrays, Lists & Linked Lists
    1. List ✓ Correct answer
    2. Array
    3. Both of these
    4. None of these
  42. Linked lists are collections of data items "lined up in a row" , insertions and deletions can be made only at the front and the back of a linked list.
    Topic: Arrays, Lists & Linked Lists
    1. True
    2. False ✓ Correct answer
  43. The ___________ method of list data structure removes the element residing at the current position.
    Topic: Arrays, Lists & Linked Lists
    1. Next
    2. Find
    3. Add
    4. Remove ✓ Correct answer
  44. Insertion in a linked list can be done at
    Topic: Arrays, Lists & Linked Lists
    1. Somewhere in middle only
    2. Front only
    3. Front, back and somewhere in the middle ✓ Correct answer
    4. Back only
  45. An array is a group of ---------------- memory locations.
    Topic: Arrays, Lists & Linked Lists
    1. Scattered
    2. Consecutive ✓ Correct answer
    3. Isolated
    4. Random(non-consecutive)
  46. Consider the following tree: 8 is the root; its left child is 5 and its right child is 3. Which of the following statements is correct about this tree?
    Topic: Arrays, Lists & Linked Lists
    1. 7 is the parent of 3
    2. 9 is the root of this tree
    3. 5 is one the second level
    4. 3 and 5 are on the same level ✓ Correct answer
  47. The next field in the last node of a singly-linked list is set to _________.
    Topic: Arrays, Lists & Linked Lists
    1. -1
    2. NAN
    3. NULL ✓ Correct answer
    4. 1
  48. Which of the following is the correct way to declare an array of 100 integers in C++?
    Topic: Arrays, Lists & Linked Lists
    1. float x[100];
    2. int x[100]; ✓ Correct answer
    3. int x(100);
    4. integer x[100];
  49. In a linked list, the elements are described as ______ elements.
    Topic: Arrays, Lists & Linked Lists
    1. Self-referential ✓ Correct answer
    2. Contiguous
    3. Sequential
    4. Static
  50. Which of the following is the time complexity of binary search in a sorted array?
    Topic: Arrays, Lists & Linked Lists
    1. O(n log n)
    2. O(1)
    3. O(log n) ✓ Correct answer
    4. O(n)
  51. Which of the following is true about a doubly linked list?
    Topic: Arrays, Lists & Linked Lists
    1. It doesn’t allow circular traversal
    2. It only allows traversal in one direction
    3. It is slower for insertion and deletion
    4. It requires more memory than a singly linked list ✓ Correct answer
  52. Which of the following operations can be done in O(1) time on a doubly linked list?
    Topic: Arrays, Lists & Linked Lists
    1. Insertion at the head ✓ Correct answer
    2. Deletion from the middle
    3. Searching for an element
    4. None of the above
  53. Which of the following is the time complexity of accessing an element in a linked list?
    Topic: Arrays, Lists & Linked Lists
    1. O(n) ✓ Correct answer
    2. O(n^2)
    3. O(1)
    4. O(log n)
  54. The operation for adding an entry to a stack is traditionally called :
    Topic: Stacks & Queues
    1. add
    2. append
    3. insert
    4. push ✓ Correct answer
  55. The operation for removing an entry from a stack is traditionally called:
    Topic: Stacks & Queues
    1. peek
    2. delete
    3. pop ✓ Correct answer
    4. remove
  56. In the linked list implementation of the queue class, where does the insert member function place the new entry on the linked list?
    Topic: Stacks & Queues
    1. After all other entries that are smaller than the new entry
    2. At the tail ✓ Correct answer
    3. At the head
    4. After all other entries that are greater than the new entry
  57. In the linked list implementation of the stack class, where does the push member function places the new entry on the linked list?
    Topic: Stacks & Queues
    1. After all other entries that are greater than the new entry.
    2. At the tail
    3. After all other entries that are smaller than the new entry.
    4. At the head ✓ Correct answer
  58. I have implemented the queue with a linked list, keeping track of a front pointer and a rear pointer. Which of these pointers will change during an insertion into an EMPTY queue?
    Topic: Stacks & Queues
    1. Both change. ✓ Correct answer
    2. Neither changes
    3. Only front pointer changes.
    4. Only rear pointer changes.
  59. I have implemented the queue with a linked list, keeping track of a front pointer and a rear pointer. Which of these pointers will change during an insertion into a NONEMPTY queue?
    Topic: Stacks & Queues
    1. Only front pointer changes.
    2. Both change.
    3. Only rear pointer changes. ✓ Correct answer
    4. Neither changes
  60. Stack and Queue can be implemented using __________.
    Topic: Stacks & Queues
    1. Binary Search Tree
    2. Binary Tree
    3. Singly Link List ✓ Correct answer
    4. AVL Tree
  61. A queue where the de-queue operation depends not on FIFO, is called a priority queue
    Topic: Stacks & Queues
    1. False
    2. True ✓ Correct answer
  62. Consider the following sequence of push operations in a stack: stack.push(’7’); stack.push(’8’); stack.push(’9’); stack.push(’10’); stack.push(’11’); stack.push(’12’);
    Topic: Stacks & Queues
    1. 9 8 11 10 7 12
    2. 7 8 9 10 11 12 ✓ Correct answer
    3. 9 10 8 12 7 11
    4. 9 10 8 11 12 7
  63. In simple implementation of stack, isFull() method is used due to …
    Topic: Stacks & Queues
    1. Complexity of linked list
    2. Limitation of array ✓ Correct answer
    3. Strength of array
    4. Linked list of connectivity
  64. Which of the following stack operations could result in stack underflow?
    Topic: Stacks & Queues
    1. Two or more of the above answers
    2. pop ✓ Correct answer
    3. push
    4. is empty
  65. Consider the following pseudo code: declare a stack of characters while (there are more characters in the word to read) { read a character; push the character on the stack } while (the stack is not empty) { pop a character off the stack; write the character to the screen } What is written to the screen for the input "carpets"?
    Topic: Stacks & Queues
    1. serc
    2. steprac ✓ Correct answer
    3. ccaarrppeettss
    4. carpets
  66. Given a stack of n items, how many POP and PUSH operations need to be performed to remove the item at its bottom?
    Topic: Stacks & Queues
    1. n POP operations and n-1 PUSH operations ✓ Correct answer
    2. n POP operations and n PUSH operations
    3. 0 POP operation and 0 PUSH operation
    4. 1 POP operation and 1 PUSH operation
  67. Which of the following is known as "Last-In, First-Out" or LIFO Data Structure?
    Topic: Stacks & Queues
    1. Heap
    2. Tree
    3. Pointer
    4. Stack ✓ Correct answer
  68. If numbers 5, 222, 4, 48 are inserted in a queue, which one will be removed first?
    Topic: Stacks & Queues
    1. 7
    2. 5 ✓ Correct answer
    3. 8
    4. 6
  69. Elements in a queue data structure are added from ______ and removed from ______.
    Topic: Stacks & Queues
    1. Rear end, front end ✓ Correct answer
    2. Both from the rear end
    3. Front end, rear end
    4. Both from the front end
  70. A queue is a data structure where elements are ___________.
    Topic: Stacks & Queues
    1. Inserted in the middle and removed from the ends
    2. Inserted at one end and removed from the other end ✓ Correct answer
    3. Inserted and removed from both ends
    4. Inserted and removed from the same end
  71. The stack implemented using an array causes worst-case behaviour when the insertion and deletion of an element are done from the ___________ of the array.
    Topic: Stacks & Queues
    1. Middle
    2. Any position - there is no worst case
    3. Beginning ✓ Correct answer
    4. End
  72. Stack.push(15) will push 15 on __________.
    Topic: Stacks & Queues
    1. Front of the queue
    2. Middle of the stack
    3. Top of the stack ✓ Correct answer
    4. Bottom of the stack
  73. Which operation of the queue data structure is used to get the front element from the queue and then remove it from the queue?
    Topic: Stacks & Queues
    1. Peek()
    2. Enqueue()
    3. Remove() ✓ Correct answer
    4. Front()
  74. Which operation of the queue data structure is used to insert an element into the queue?
    Topic: Stacks & Queues
    1. Dequeue()
    2. Remove()
    3. Front()
    4. Enqueue() ✓ Correct answer
  75. The dequeue() operation of a queue data structure is used to ____________.
    Topic: Stacks & Queues
    1. Remove an element from the rear of the queue
    2. Add an element at the rear of the queue
    3. Remove an element from the front and return it ✓ Correct answer
    4. Return the front element without removing it
  76. Which of the following functions does NOT belong to the Stack class?
    Topic: Stacks & Queues
    1. push()
    2. Crash() ✓ Correct answer
    3. pop()
    4. top()
  77. While implementing a stack with an array, and to achieve LIFO behaviour, we push and pop elements at the ___________ of the array.
    Topic: Stacks & Queues
    1. Start ✓ Correct answer
    2. Both ends
    3. Middle
    4. End
  78. Whenever we call a function, the compiler makes a stack; the top element of the stack is the _______ of the function.
    Topic: Stacks & Queues
    1. Local variables
    2. Parameters
    3. Return address ✓ Correct answer
    4. Name
  79. Suppose we have a circular array implementation of the queue class, with ten items in the queue stored at data[2] through data[11]. The CAPACITY is 42, i.e., the array has been declared to be of size 42. Where does the push member function place the new entry in the array?
    Topic: Stacks & Queues
    1. data[12] ✓ Correct answer
    2. data[11]
    3. data[2]
    4. data[1]
  80. ________ is the maximum number of nodes that you can have on a stack-linked list ?
    Topic: Stacks & Queues
    1. Any Number ✓ Correct answer
    2. Zero
    3. 2n (where n is the number of nodes in linked list)
    4. None of these
  81. Which of the following can be used to reverse a string value,
    Topic: Stacks & Queues
    1. Stack ✓ Correct answer
    2. Queue
    3. Both of these
    4. None of these
  82. The following are statements related to queues. (i) The last item to be added to a queue is the first item to be removed (ii) A queue is a structure in which both ends are not used (iii) The last element hasn’t to wait until all elements preceding it on the queue are removed (iv)A queue is said to be a last-in-first-out list or LIFO data structure. Which of the above is/are related to normal queues?
    Topic: Stacks & Queues
    1. (iii) and (ii) only
    2. (ii) and (iv) only
    3. (i), (ii) and (iv) only
    4. None of the given options ✓ Correct answer
  83. A queue is a----- data structure, whereas a stack is a -----data structure.
    Topic: Stacks & Queues
    1. both of these
    2. LIFO,FIFO
    3. FIFO, LIFO ✓ Correct answer
    4. none of these
  84. Queue follows,
    Topic: Stacks & Queues
    1. First in First out ✓ Correct answer
    2. Last in First out
    3. First in Last out
    4. None of these
  85. We can add elements in QUEUE From _________
    Topic: Stacks & Queues
    1. From Both Rare and Front
    2. Front
    3. Rear ✓ Correct answer
    4. None of these
  86. Which of the following applications may use a stack?
    Topic: Stacks & Queues
    1. Parentheses balancing program ✓ Correct answer
    2. Accessing shared resources
    3. Waiting list
    4. Buffering messages
  87. New items are added at the ______ of the stack.
    Topic: Stacks & Queues
    1. Top ✓ Correct answer
    2. Middle
    3. Center
    4. Bottom
  88. _________ is the stack characteristic but ________ was implemented because of the size limitation of the array.
    Topic: Stacks & Queues
    1. isEmpty(), isFull() ✓ Correct answer
    2. push(), pop()
    3. pop(), push()
    4. isFull(), isEmpty()
  89. In which data structure is the de-queue operation NOT performed in the traditional FIFO (First In First Out) order?
    Topic: Stacks & Queues
    1. Simple queue
    2. Priority queue ✓ Correct answer
    3. Linked list
    4. Queue
  90. Which of the following statements is correct about queues and stacks?
    Topic: Stacks & Queues
    1. Queues use one end; stacks use two ends
    2. Queues and stacks both use only one end
    3. Queues use two ends of the structure; stacks use only one ✓ Correct answer
    4. Queues and stacks both use two ends of the structure
  91. Which of the following operations returns “most recently entered value” from the stack?
    Topic: Stacks & Queues
    1. First
    2. Push
    3. Top ✓ Correct answer
    4. Recent
  92. Which of the following operations can be performed using a priority queue?
    Topic: Stacks & Queues
    1. Find the minimum element
    2. Find the maximum element
    3. Insert an element
    4. All of the above ✓ Correct answer
  93. What is the time complexity of performing a push operation in a stack?
    Topic: Stacks & Queues
    1. O(n^2)
    2. O(1) ✓ Correct answer
    3. O(log n)
    4. O(n)
  94. Which of the following operations can be performed in O(1) time on a stack?
    Topic: Stacks & Queues
    1. Peek
    2. Push
    3. Pop
    4. All of the above ✓ Correct answer
  95. Which of the following is a non-linear data structure?
    Topic: Trees & Binary Search Trees
    1. Binary Search Trees ✓ Correct answer
    2. Queue
    3. Linked List
    4. Stack
  96. The _________ of a node in a binary tree is defined as the height of its left subtree minus height of its right subtree.
    Topic: Trees & Binary Search Trees
    1. Balance ✓ Correct answer
    2. Width
    3. Level
    4. Height
  97. The balance of a node in a binary tree is defined as the height of its __________ sub tree minus height of its right sub tree.
    Topic: Trees & Binary Search Trees
    1. Lower
    2. Left ✓ Correct answer
    3. Right
    4. Upper
  98. If the root of a tree is at level two in case of a complete binary tree i.e nodes will be at ___________.
    Topic: Trees & Binary Search Trees
    1. 8
    2. 2
    3. 4 ✓ Correct answer
    4. 6
  99. If the root of a tree is at level three in case of a complete binary tree i.e nodes will be at ___________.
    Topic: Trees & Binary Search Trees
    1. 10
    2. 4
    3. 6
    4. 8 ✓ Correct answer
  100. In which of the traversal method, the recursive calls can be used to traverse a binary tree ?
    Topic: Trees & Binary Search Trees
    1. In inorder traversal only
    2. In preorder traversal only ✓ Correct answer
    3. In postorder traversal only
    4. All of the given options
  101. The tree data structure is a
    Topic: Trees & Binary Search Trees
    1. Data structure like queue
    2. Non-linear data structure ✓ Correct answer
    3. Graphical data structure
    4. Linear data structure
  102. _________ is a binary tree where every node has a value, every node's left subtree contains only values less than or equal to the node's value, and every node's right subtree contains only values that are greater then or equal?
    Topic: Trees & Binary Search Trees
    1. AVL tree
    2. Strictly Binary Tree
    3. Binary Search tree ✓ Correct answer
    4. All of these
  103. Consider the following statements. (i) A binary tree can contain at least 2L Nodes at level L. (ii) A complete binary tree of depth d is a binary tree that contains 2L Nodes at each level L between 0 and d, both inclusive. (iii) The total number of nodes (T ) in a complete binary tree of depth d is 2 d+1 - 1 . n (iv) The height of the complete binary tree can be written as h = log (T+1)-1 where T is Total number of 2nn Nodes. Which one of the following is correct in respect of the above statements regarding the Binary trees?
    Topic: Trees & Binary Search Trees
    1. (i) and (iii) only
    2. (ii), (iii) and (iv) only ✓ Correct answer
    3. (ii) and (iii) only
    4. (i), (ii) and (iii) only
  104. Four statements about trees are below. Three of them are correct. Which one is INCORRECT?
    Topic: Trees & Binary Search Trees
    1. The order of a tree indicates a maximum number of children allowed at each node of the
    2. If Tree1's size is greater than Tree2's size, then the height of Tree1 must also be greater than Tree2's height.
    3. Trees are recursively defined multi-dimensional data structures ✓ Correct answer
    4. A search tree is a special type of tree where all values (i.e. keys) are ordered
  105. In a complete binary tree, for 25000 nodes the depth will be-----
    Topic: Trees & Binary Search Trees
    1. 13
    2. 14 ✓ Correct answer
    3. 12
    4. 11
  106. In level-order traversal for Binary Search Tree, __________ data structure is used.
    Topic: Trees & Binary Search Trees
    1. Stack
    2. Queue ✓ Correct answer
    3. Heap
    4. Tree
  107. If both left and right nodes of a node are NULL then this type of node is called a ------node.
    Topic: Trees & Binary Search Trees
    1. Node
    2. Both
    3. Leaf ✓ Correct answer
    4. None of these
  108. For searching a particular number in Binary Search Tree (if it is not present), the maximum number of comparisons will be _______ comparison(s) at each level.
    Topic: Trees & Binary Search Trees
    1. 1 ✓ Correct answer
    2. 2
    3. 3
    4. 4
  109. In a complete binary tree the number of nodes at level 5 are
    Topic: Trees & Binary Search Trees
    1. 40
    2. 23
    3. 30
    4. 32 ✓ Correct answer
  110. While implementing non-recursive traversal for Binary Search Tree, we need to implement _________.
    Topic: Trees & Binary Search Trees
    1. Stack ✓ Correct answer
    2. Tree
    3. Pointer
    4. Heap
  111. Left, right, info, and parent are the operations of _________ data structure.
    Topic: Trees & Binary Search Trees
    1. Pointer
    2. Tree ✓ Correct answer
    3. Stack
    4. Heap
  112. The abstract data type refers to the basic mathematical concept that defines the
    Topic: Trees & Binary Search Trees
    1. Variable
    2. Functions
    3. Data type ✓ Correct answer
    4. Pointer
  113. If the root of a tree is at level zero, its two children (subtrees) i.e. nodes will be at ________
    Topic: Trees & Binary Search Trees
    1. Level 2
    2. Level 1 ✓ Correct answer
    3. Level 4
    4. Level 3
  114. For making Binary Search Tree for Strings we need, ________ data type.
    Topic: Trees & Binary Search Trees
    1. Int ✓ Correct answer
    2. Double
    3. Float
    4. Char
  115. A BST generated from the data in ascending order is ____________.
    Topic: Trees & Binary Search Trees
    1. Nonlinear
    2. Un sorted
    3. Balanced
    4. Linear ✓ Correct answer
  116. Which of the following is a nonlinear data structure?
    Topic: Trees & Binary Search Trees
    1. Pointer
    2. Tree ✓ Correct answer
    3. Stack
    4. Heap
  117. ~BinarySearchTree( ) is a _______________.
    Topic: Trees & Binary Search Trees
    1. Constructor
    2. Switch case
    3. Template method call
    4. Destructor ✓ Correct answer
  118. ____ tree has been named after two persons Adelson-Velskii and Landis.
    Topic: Trees & Binary Search Trees
    1. RED
    2. AVL ✓ Correct answer
    3. Binary search
    4. Tree
  119. The _________ of a binary tree is the maximum level of its leaves (also called the depth).
    Topic: Trees & Binary Search Trees
    1. Level
    2. Width
    3. Balance
    4. Height ✓ Correct answer
  120. After deletion of a node from a binary search tree, _______ traversal method should be maintained.
    Topic: Trees & Binary Search Trees
    1. Level order
    2. Post order
    3. Inorder ✓ Correct answer
    4. Preorder
  121. When a node to be deleted from a BST has both left and right child, after deletion its _______ node will replace this node.
    Topic: Trees & Binary Search Trees
    1. Successor
    2. Preorder successor
    3. inorder Successor ✓ Correct answer
    4. Predecessor
  122. In a strictly complete binary tree, the number of __________ at any level k will be 2k.
    Topic: Trees & Binary Search Trees
    1. Link
    2. Children
    3. Sets
    4. Nodes ✓ Correct answer
  123. At a particular node, the difference in heights of its left and right subtree gives the _________ of the
    Topic: Trees & Binary Search Trees
    1. Height
    2. Left subtree
    3. Balance ✓ Correct answer
    4. Right subtree
  124. Making the tree unbalanced, it violates the ________ rule.
    Topic: Trees & Binary Search Trees
    1. Queue
    2. Stack
    3. Linked list
    4. AVL ✓ Correct answer
  125. Which one of the following case is the most complicated case to delete a node from BST?
    Topic: Trees & Binary Search Trees
    1. Node to be deleted is the leaf node
    2. Node to be deleted has both the left and right children ✓ Correct answer
    3. No case is complicated
    4. Node to be deleted has either left child or right child
  126. Which of the following traversal methods traverses the binary tree in sorted order?
    Topic: Trees & Binary Search Trees
    1. postOrder() method
    2. inOrder() method ✓ Correct answer
    3. levelOrder() method
    4. preOrder() method
  127. In a tree, we link the nodes in such a way that it ___________ a linear structure.
    Topic: Trees & Binary Search Trees
    1. Always remains
    2. Does not remain ✓ Correct answer
    3. Becomes a sorted
    4. Becomes a circular
  128. A binary tree is said to be a _____ binary tree if every non-leaf node in it has non-empty left and right subtrees.
    Topic: Trees & Binary Search Trees
    1. Strictly ✓ Correct answer
    2. Complete
    3. Degenerate
    4. Perfect
  129. We can calculate the ___________ of a subtree by counting its levels from the bottom.
    Topic: Trees & Binary Search Trees
    1. Width
    2. Height ✓ Correct answer
    3. Degree
    4. Depth
  130. In which traversal method is the root node visited at the last step?
    Topic: Trees & Binary Search Trees
    1. Post-order traversal ✓ Correct answer
    2. Pre-order traversal
    3. In-order traversal
    4. Level-order traversal
  131. A __________ is a tree in which every level, except possibly the last, is completely filled.
    Topic: Trees & Binary Search Trees
    1. AVL tree
    2. Complete binary tree ✓ Correct answer
    3. Full binary tree
    4. Binary search tree
  132. A sub-tree of a binary search tree should be ________.
    Topic: Trees & Binary Search Trees
    1. A complete binary tree
    2. An array
    3. A binary search tree ✓ Correct answer
    4. A linked list
  133. In which of the following trees is the value of each node greater than its left child and smaller than its right child?
    Topic: Trees & Binary Search Trees
    1. Binary tree
    2. Binary search tree ✓ Correct answer
    3. Heap
    4. Complete binary tree
  134. Suppose there is a tree with three nodes having numbers 14, 4 and 15. Which of the following is NOT a permutation (possible output order) of these nodes?
    Topic: Trees & Binary Search Trees
    1. (14, 4, 15)
    2. (4, 4, 15) ✓ Correct answer
    3. (4, 14, 15)
    4. (15, 14, 4)
  135. A leaf node of a binary search tree contains ________ null pointer(s).
    Topic: Trees & Binary Search Trees
    1. No
    2. Three
    3. One
    4. Two ✓ Correct answer
  136. The depth of a binary tree is:
    Topic: Trees & Binary Search Trees
    1. The total number of nodes
    2. The level of the root node
    3. The maximum level of a leaf ✓ Correct answer
    4. The number of edges on the shortest root-to-leaf path
  137. In level-order traversal of a binary search tree, we visit the nodes at each level before proceeding to the next level, in __________ direction.
    Topic: Trees & Binary Search Trees
    1. Bottom-to-top
    2. Random
    3. Right-to-left
    4. Left-to-right ✓ Correct answer
  138. ___________ is a self-balancing tree.
    Topic: Trees & Binary Search Trees
    1. Binary Search Tree
    2. AVL tree ✓ Correct answer
    3. Binary tree
    4. Complete binary tree
  139. During in-order traversal using recursive calls, if we find that a node is NULL, it means this node will satisfy the condition that:
    Topic: Trees & Binary Search Trees
    1. It is the root node
    2. It will not have a left child ✓ Correct answer
    3. It is a leaf node containing data
    4. It will have two children
  140. Consider the following binary search tree (BST): A is the root; B and C are its left and right children; B has children D and E; C has children F and G; D has right child H; E has right child I; F has children J and K; G has children L and M. If node A in the BST is deleted, which two nodes are the candidates to take its place?
    Topic: Trees & Binary Search Trees
    1. J and I ✓ Correct answer
    2. L and M
    3. H and E
    4. D and E
  141. Let's call the node 'a' that requires re-balancing. Consider the two cases given below: 1) An insertion into left sub tree of the left child of a. 2) An insertion into right sub tree of the right child of a. Which of the following statement is correct about these two cases?
    Topic: Trees & Binary Search Trees
    1. 1) The insertion occurs outside (i.e., left-left or right-right) in cases 1 and 2; single rotation can fix the balance in these two cases. ✓ Correct answer
    2. 2) The insertion occurs inside (i.e., left-left or right-right) in cases 1 and 2; single rotation cannot fix the balance in these two cases.
  142. Consider the following tree: 14 is the root; its children are 2 and 11; 2 has children 1 and 3; 11 has children 10 and 30; 10 has left child 7; 30 has right child 40. How many of the nodes have at least one sibling?
    Topic: Trees & Binary Search Trees
    1. 5
    2. 8
    3. 7
    4. 6 ✓ Correct answer
  143. The nodes with no successor are called _________
    Topic: Trees & Binary Search Trees
    1. Both of these
    2. Root Nodes
    3. Leaf Nodes ✓ Correct answer
    4. None of these
  144. Which of the following abstract data types are NOT used by Integer Abstract Data type group?
    Topic: Trees & Binary Search Trees
    1. Int
    2. float ✓ Correct answer
    3. long
    4. short
  145. The difference between a binary tree and a binary search tree is that, a binary search tree has
    Topic: Trees & Binary Search Trees
    1. in binary search tree nodes are inserted based on the values they contain ✓ Correct answer
    2. in binary tree nodes are inserted based on the values they contain
    3. two children per node whereas a binary tree can have none, one, or two children per node
    4. none of these
  146. The following is a segment of a C program. int pqr(BinaryNode t) { if (t == null ) return -1; else return 1+max(pqr(t.left),pqr(t.right)) } Identify, what the above program intend(s) to do?
    Topic: Trees & Binary Search Trees
    1. Compute the height of a binary tree using an in-order traversal
    2. Compute the depth of a binary tree using a post-order traversal ✓ Correct answer
    3. Compute the depth of a binary tree using a pre-order traversal
    4. Compute the height of a binary tree using a pre-order traversal
  147. A node cannot be deleted when the node to be deleted has both left and right subtrees. (True / False)
    Topic: Trees & Binary Search Trees
    1. True
    2. False ✓ Correct answer
  148. Deleting a leaf node in binary search tree involves setting ______ pointer/s of that node's parent as null.
    Topic: Trees & Binary Search Trees
    1. 4
    2. 2
    3. 1 ✓ Correct answer
    4. 3
  149. The difference between a “Binary Tree (BT)” and a “Binary Search Tree (BST)” is that,
    Topic: Trees & Binary Search Trees
    1. There is no difference
    2. In BT, nodes are inserted based on the value they contain
    3. A BST has two children per node whereas a BT can have none, one, or two children per node
    4. In BST, nodes are inserted based on the value they contain ✓ Correct answer
  150. The worst case of searching in binary search tree (BST) is:
    Topic: Trees & Binary Search Trees
    1. When the tree is balanced
    2. When the height of right sub-tree is greater than left sub-tree
    3. When the height of left sub-tree is greater than right sub-tree
    4. When the data inserted in BST is sorted ✓ Correct answer
  151. Suppose n is the number of nodes in a complete Binary Tree then maximum steps required for a search operation are,
    Topic: Trees & Binary Search Trees
    1. Log2 (n)
    2. Log2(n+1) - 1 ✓ Correct answer
    3. Log (n) – 1 2
    4. Log2 (n+1)
  152. Which of the following is the correct order for post-order traversal of a binary tree?
    Topic: Trees & Binary Search Trees
    1. Root, Left-subtree, Right-subtree
    2. Left-subtree, Right-subtree, Root ✓ Correct answer
    3. Left-subtree, Root, Right-subtree
    4. Right-subtree, Left-subtree, Root
  153. Each node of a binary search tree (BST) contains:
    Topic: Trees & Binary Search Trees
    1. Two pointers ✓ Correct answer
    2. Single pointer
    3. No pointers
    4. Four pointers
  154. The balance of a node in the result of “height of left subtree” “height of right subtree.
    Topic: Trees & Binary Search Trees
    1. Minus ✓ Correct answer
    2. Divided by
    3. Plus
    4. Multiply
  155. The simplest case in a BST to delete a node is:
    Topic: Trees & Binary Search Trees
    1. When the node, that is to be deleted is root node
    2. When the node, that is to be deleted has only one child
    3. When the node, that is to be deleted has both left and right child
    4. When the node, that is to be deleted is a leaf node… ✓ Correct answer
  156. A complete binary tree having “N” nodes consists of ….. Levels.
    Topic: Trees & Binary Search Trees
    1. Log2 (N-1) + 1
    2. Log2 (N-1) – 1
    3. Log2 (N+1) + 1
    4. Log2 (N+1) – 1 ✓ Correct answer
  157. Which of the following is NOT a property of a binary search tree (BST)?
    Topic: Trees & Binary Search Trees
    1. The right subtree of a node contains only nodes with values greater than the node’s value
    2. The height of the tree must always be balanced ✓ Correct answer
    3. It allows fast searching
    4. The left subtree of a node contains only nodes with values less than the node’s value
  158. Which of the following is true about a tree data structure?
    Topic: Trees & Binary Search Trees
    1. It is a linear data structure
    2. Each node has only one child
    3. It is a hierarchical data structure ✓ Correct answer
    4. It does not support recursive functions
  159. What is the worst-case time complexity of a binary search tree (BST) when it is unbalanced?
    Topic: Trees & Binary Search Trees
    1. O(n) ✓ Correct answer
    2. O(n log n)
    3. O(n^2)
    4. O(log n)
  160. There are four cases of rotation in an __________ tree.
    Topic: AVL Trees
    1. Binary
    2. AVL ✓ Correct answer
    3. Tree
    4. Heap
  161. There is/are case/s for rotation in an AVL tree,
    Topic: AVL Trees
    1. 3
    2. 4 ✓ Correct answer
    3. 1
    4. 2
  162. What is the main use of an AVL tree?
    Topic: AVL Trees
    1. Searching of data ✓ Correct answer
    2. Deletion of data
    3. Sorting of data
    4. Insertion of data
  163. AVL Tree is,
    Topic: AVL Trees
    1. Linear data structure
    2. Hybrid data structure (Mixture of Linear and Non Linear)
    3. Non Linear data structure ✓ Correct answer
    4. None of the given options.
  164. An AVL tree is a linear data structure. (True / False)
    Topic: AVL Trees
    1. True
    2. False ✓ Correct answer
  165. An AVL tree is a non-linear data structure. (True / False)
    Topic: AVL Trees
    1. True ✓ Correct answer
    2. False
  166. We access elements in AVL Tree in,
    Topic: AVL Trees
    1. Non Linear way only ✓ Correct answer
    2. Linear way only
    3. Both linear and non linear ways
    4. None of the given options.
  167. A tree is an AVL tree if
    Topic: AVL Trees
    1. All the nodes fulfill the AVL condition ✓ Correct answer
    2. At least half of the nodes fulfill the AVL condition
    3. Any one node fulfills the AVL condition
    4. None of the given options
  168. Suppose we have the following values to be inserted in constructing AVL tree,10,13,15,5,7,8 Tell when first rotation will take place,
    Topic: AVL Trees
    1. After inserting the node 25
    2. After inserting the node 10
    3. After inserting the node 15 ✓ Correct answer
    4. After inserting the node 20
  169. To search an element in an AVL tree, it takes maximum 1.88 Log2n time. (True / False)
    Topic: AVL Trees
    1. True
    2. False ✓ Correct answer
  170. In Left-Right case of rotation in ________ tree. A double rotation is performed.
    Topic: AVL Trees
    1. EVL
    2. VLA
    3. LVA
    4. AVL ✓ Correct answer
  171. The _______of every node should be 1, 0 or -1 otherwise, it will not be an AVL tree.
    Topic: AVL Trees
    1. AVL
    2. Tree
    3. Balance ✓ Correct answer
    4. Pointer
  172. A node in AVL tree can become imbalanced due to
    Topic: AVL Trees
    1. node does not imbalance due to insertion and deletion
    2. deletion operation
    3. both insertion and deletion operations ✓ Correct answer
    4. insertion operation
  173. The insertion operation in AVL tree, generally takes more time than insertion operation in simple binary search tree"
    Topic: AVL Trees
    1. Can be correct in some cases only
    2. Is always incorrect
    3. Insertion time is same in AVL and BST
    4. Always correct ✓ Correct answer
  174. _________ of an empty AVL tree is defined to be -1.
    Topic: AVL Trees
    1. Width
    2. Length
    3. Size
    4. Height ✓ Correct answer
  175. The maximum height of an AVL tree with n nodes is approximately __________.
    Topic: AVL Trees
    1. 4.44 log2 n
    2. log2 n
    3. 1.44
    4. 1.44 log2 n ✓ Correct answer
  176. If a node is inserted on the outer side of a node in a binary search tree, then to make it an AVL tree, we:
    Topic: AVL Trees
    1. May have to apply a single rotation ✓ Correct answer
    2. Must delete the inserted node
    3. Must apply a double rotation
    4. Never need any rotation
  177. In case of insertion of a right inner node in a BST, we apply ___________ to make it an AVL tree.
    Topic: AVL Trees
    1. Left rotation then right rotation ✓ Correct answer
    2. Right rotation then left rotation
    3. Single right rotation
    4. Single left rotation
  178. In which case of insertion do we require a double rotation to make the AVL tree balanced?
    Topic: AVL Trees
    1. Right-Right case
    2. Left-Right and Right-Left (inside) cases ✓ Correct answer
    3. Left-Left case
    4. None of the cases
  179. Which one of the following is closest to an AVL tree (choose the best option)?
    Topic: AVL Trees
    1. Binary tree
    2. Binary Search Tree ✓ Correct answer
    3. Heap
    4. Complete binary tree
  180. A zigzag rotation is performed in the Left-Left case of rotation in an AVL tree. (True / False)
    Topic: AVL Trees
    1. True
    2. False ✓ Correct answer
  181. An AVL tree is a binary search tree. (True / False)
    Topic: AVL Trees
    1. True ✓ Correct answer
    2. False
  182. Every AVL is _________________.
    Topic: AVL Trees
    1. Temary Tree
    2. Heap
    3. Binary Search Tree ✓ Correct answer
    4. Complete Binary Tree
  183. Which of the following is the correct statement about an AVL tree?
    Topic: AVL Trees
    1. It is identical to BCS except height of the left and right subtrees can be differ by at most 1 ✓ Correct answer
    2. It is identical to BCS except height of the left and right subtrees must be differ by at least 1
    3. It is not identical to BST, its totally different kind of tree.
    4. It is identical to BCS except height of the left and right subtrees can differ by at least 1.
  184. Searching an element in an AVL tree takes maximum _______ time (when n is number of nodes in AVL tree)
    Topic: AVL Trees
    1. Log 2 (n+1)-1
    2. 1.44 Log 2 n ✓ Correct answer
    3. Log 2 (n+1)
    4. 1.66 Log 2 n
  185. Which of the following is true for an AVL tree?
    Topic: AVL Trees
    1. It has a fixed height for all nodes.
    2. It is an unbalanced binary search tree.
    3. It is a type of binary search tree where the balance factor of each node is either 0, 1, or -1. ✓ Correct answer
    4. It is a type of binary tree that does not allow duplicates.
  186. Each operator in a postfix expression refers to the previous ________ operand(s).
    Topic: Expressions & Expression Conversion
    1. Two ✓ Correct answer
    2. Three
    3. Four
    4. One
  187. a*(b+c)-d is an example of which type of expression?
    Topic: Expressions & Expression Conversion
    1. Prefix expression
    2. Postfix expression
    3. Infix expression ✓ Correct answer
    4. None of the given options
  188. AB+C* is an example of which type of expression?
    Topic: Expressions & Expression Conversion
    1. Postfix expression ✓ Correct answer
    2. Prefix expression
    3. Infix expression
    4. None of these
  189. What will be postfix expression of the following infix expression? Infix Expression: a+b*c-d
    Topic: Expressions & Expression Conversion
    1. abc*+d- ✓ Correct answer
    2. ab+c*d-
    3. abcd+*-
    4. abc+*d-
  190. What will be the postfix expression of the infix expression A + B + C / D - E?
    Topic: Expressions & Expression Conversion
    1. A B + C D / + E - ✓ Correct answer
    2. A B + C D + / E -
    3. A B C D / + E - +
    4. A B C / D + + E -
  191. The expression AB+C* is called?
    Topic: Expressions & Expression Conversion
    1. Prefix expression
    2. Postfix expression ✓ Correct answer
    3. Infix expression
    4. None of these
  192. Which data structure is needed to convert infix expression to postfix expression?
    Topic: Expressions & Expression Conversion
    1. Stack ✓ Correct answer
    2. Pointer
    3. Tree
    4. Heap
  193. Convert the following infix expression into postfix: 7/8 + 9
    Topic: Expressions & Expression Conversion
    1. +78/*
    2. 9/78+
    3. 78/9+ ✓ Correct answer
    4. 87/9+
  194. The -- is a decrement operator in C++ that decreases the value of the operand by _______.
    Topic: Expressions & Expression Conversion
    1. One ✓ Correct answer
    2. Six
    3. Two
    4. Five
  195. What will be the result of evaluating following expression? 5+3*2/(6-3)
    Topic: Expressions & Expression Conversion
    1. 3
    2. 5
    3. 1
    4. 7 ✓ Correct answer
  196. Which of the following is the correct postfix conversion of the infix expression Z + B - (D - H) / K?
    Topic: Expressions & Expression Conversion
    1. Z+B-(D-H)
    2. ZB+DH-K/- ✓ Correct answer
    3. Z+B-(D-H)/K
    4. Z+B-(H-D)/K
  197. The type of expression in which the operator succeeds (comes after) its operands is a ___________ expression.
    Topic: Expressions & Expression Conversion
    1. Prefix
    2. Infix
    3. Postfix ✓ Correct answer
    4. Binary
  198. The __________ rule applies for evaluating operators of the same precedence in an expression.
    Topic: Expressions & Expression Conversion
    1. Associativity ✓ Correct answer
    2. Distributive
    3. Commutativity
    4. Precedence
  199. The postfix forms of the expressions A + B * C and (A + B) * C will be ___________.
    Topic: Expressions & Expression Conversion
    1. Different ✓ Correct answer
    2. Same
    3. Prefix forms
    4. Always identical
  200. A subscript of an array may be an integer or an integer expression.
    Topic: Expressions & Expression Conversion
    1. True ✓ Correct answer
    2. False
  201. Suppose currentNode refers to a node in a linked list (using the Node class with member variables called data and nextNode). What boolean expression will be true when cursor refers to the tail node of the list?
    Topic: Expressions & Expression Conversion
    1. (currentNode.data == 0.0)
    2. (currentNode->nextNode == null)
    3. (currentNode == null) ✓ Correct answer
    4. (nextNode.data == null)
  202. Consider the following infix expression. 5 + 6/2 If one converts the above expression into postfix, what would be the resultant expression?
    Topic: Expressions & Expression Conversion
    1. /62 + 5
    2. 5 6 2 / + ✓ Correct answer
    3. 56/ + 2
    4. 5 6 / 2 +
  203. Which one of the following is a valid postfix expression?
    Topic: Expressions & Expression Conversion
    1. abc+*d-
    2. (abc*)+d-
    3. abc*+d- ✓ Correct answer
    4. ab+c*d-
  204. Consider the following infix expression: 3 + 5 * 6 – 7 * (8 + 5) Which of the following is a correct equivalent expression(s) for the above?
    Topic: Expressions & Expression Conversion
    1. 3 5 6 + * 7 8 5 + - *
    2. 3 5 6 * + 7 8 5 + * - ✓ Correct answer
    3. 3 6 5 7 5 8 + * + - *
    4. 3 6 5 + * 7 5 8 + - *
  205. Consider the following infix expression: x–y*a+b/c Which of the following is a correct equivalent expression for the above?
    Topic: Expressions & Expression Conversion
    1. x *y a - b c / +
    2. x y a * - b/ + c
    3. xy-a*b+c/
    4. x y a * - b c / + ✓ Correct answer
  206. Write in postfix form: 5 * (9 – 7)
    Topic: Expressions & Expression Conversion
    1. 59*7-
    2. 5(97-)*
    3. 5(97-)
    4. 5 9 7 - * ✓ Correct answer
  207. What will be result of following postfix expression? 123*+2–
    Topic: Expressions & Expression Conversion
    1. 10
    2. 3
    3. 4 ✓ Correct answer
    4. 5
  208. Which one of the following calling methods does not change the original value of the argument in the calling function?
    Topic: Recursion, C++ Basics & Memory
    1. Call by passing the value of the argument ✓ Correct answer
    2. Call by passing the address of the argument
    3. Call by passing reference of the argument
    4. None of the given options
  209. What is the maximum depth of recursive calls a function may make?
    Topic: Recursion, C++ Basics & Memory
    1. n (where n is the argument)
    2. 2
    3. 1
    4. There is no fixed maximum ✓ Correct answer
  210. Suppose that the class declaration of SomeClass includes the following function prototype: bool LessThan( SomeClass anotherObject ); Which of the following tests in the client code correctly compares two class objects alpha and beta?
    Topic: Recursion, C++ Basics & Memory
    1. if (alpha.LessThan(beta)) ✓ Correct answer
    2. if (alpha.LessThan.beta)
    3. if (alpha < beta)
    4. if (LessThan(alpha, beta))
  211. When should you use a const reference parameter?
    Topic: Recursion, C++ Basics & Memory
    1. Whenever the data type might be many bytes, the function changes the parameter within its body, and you do NOT want these changes to alter the actual argument.
    2. Whenever the data type might be many bytes, the function changes the parameter within its body, and you DO want these changes to alter the actual argument.
    3. Whenever the data type might be many bytes.
    4. Whenever the data type might be many bytes, and the function does not change the parameter within its body. ✓ Correct answer
  212. Which of the following is NOT true for a reference variable?
    Topic: Recursion, C++ Basics & Memory
    1. Reference variables are declared with the '&' operator.
    2. References can be uninitialized. ✓ Correct answer
    3. A reference variable is an alias for a variable.
    4. Reference variables must be initialized when they are declared.
  213. In the perspective of memory organization every process executing, the second part of the memory is for the ___________ of the program.
    Topic: Recursion, C++ Basics & Memory
    1. Static code ✓ Correct answer
    2. Stack
    3. Data
    4. None of these
  214. In the perspective of memory organization every process executing, the last part of the memory is for the ___________ of the program.
    Topic: Recursion, C++ Basics & Memory
    1. Heap ✓ Correct answer
    2. Stack
    3. Code
    4. Data
  215. In a program a reference variable, say x, can be declared as
    Topic: Recursion, C++ Basics & Memory
    1. int *x ;
    2. int x ;
    3. int &x ; ✓ Correct answer
    4. None of the given options
  216. Consider the function X as under int X (int& Value) { return Value; } Now a and b are integers in a calling function. Which one of the following is a valid call to the above function X.
    Topic: Recursion, C++ Basics & Memory
    1. a = X (&b) ;
    2. a = X (b) ; ✓ Correct answer
    3. a = X (*b) ;
    4. None of the given options
  217. In the call by .. methodology, a copy of the object is passed to the called function.
    Topic: Recursion, C++ Basics & Memory
    1. Reference
    2. Reference & Value
    3. Value ✓ Correct answer
    4. Copy of the object can not be passed
  218. Here is the start of a C++ class declaration: class foo { public: void x(foo f); void y(const foo f); void z(foo f) const; ... Which of the three member functions can alter the PRIVATE member variables of the foo object that activates the function?
    Topic: Recursion, C++ Basics & Memory
    1. Only y can alter the private member variables of the object that activates the function.
    2. Only z can alter the private member variables of the object that activates the function.
    3. Only x can alter the private member variables of the object that activates the function.
    4. Two of the functions can alter the private member variables of the object that activates the function. ✓ Correct answer
  219. “+” is a _________operator.
    Topic: Recursion, C++ Basics & Memory
    1. Unary
    2. Ternary
    3. Binary ✓ Correct answer
    4. None of the above
  220. Parameters in function call are passed using,
    Topic: Recursion, C++ Basics & Memory
    1. Stack ✓ Correct answer
    2. AVL Tree
    3. Binary Search Tree
    4. Queue
  221. In the statement int& a=b;
    Topic: Recursion, C++ Basics & Memory
    1. a and b are two different variables names
    2. b hold the address of variable a
    3. a and b are two different names of the same memory location ✓ Correct answer
    4. a and b pointing to two different memory location
  222. Given the class declaration: class MyClass { public: ... void Func(); private: int n; }; What notation does the body of Func use to assign the value 3 to n?
    Topic: Recursion, C++ Basics & Memory
    1. MyClass.n = 3;
    2. It can't be done - n is private
    3. MyClass::n = 3;
    4. n = 3; ✓ Correct answer
  223. Consider the following function: int& X(int& i) { i++; return i; } If b is an integer variable, which of the following is the valid function call?
    Topic: Recursion, C++ Basics & Memory
    1. a = X(b); ✓ Correct answer
    2. a = X(*b);
    3. a = X(&b);
    4. None of the given options
  224. Which one is the correct function call for the following function of calculating cube?
    Topic: Recursion, C++ Basics & Memory
    1. cube(*num)
    2. cube(num) ✓ Correct answer
    3. cube(&&num)
    4. cube(&num)
  225. ------- is used for Reference variables in C++.
    Topic: Recursion, C++ Basics & Memory
    1. @
    2. & ✓ Correct answer
    3. *
    4. #
  226. If a function has recursive call as the last statement, it is known as ___.
    Topic: Recursion, C++ Basics & Memory
    1. Local
    2. Tail recursive ✓ Correct answer
    3. Last
    4. Function
  227. When a function calls another function, the parameters and return address of the calling function are put in ________.
    Topic: Recursion, C++ Basics & Memory
    1. Pointer
    2. Tree
    3. Heap
    4. Stack ✓ Correct answer
  228. Function signatures are also called :
    Topic: Recursion, C++ Basics & Memory
    1. Function prototype ✓ Correct answer
    2. Function overloading
    3. Function overriding
    4. Function definition
  229. If we return the reference of a local variable from a function it will cause:
    Topic: Recursion, C++ Basics & Memory
    1. Dangling reference ✓ Correct answer
    2. deletion of local variable from memory
    3. duplication of local variable
    4. reference overloading
  230. In the perspective of memory organization each process is divided into ________ sections.
    Topic: Recursion, C++ Basics & Memory
    1. 4 ✓ Correct answer
    2. 6
    3. 2
    4. 8
  231. The process of getting the value of a variable using pointers is called:
    Topic: Recursion, C++ Basics & Memory
    1. Referencing
    2. Memory deallocation
    3. Memory allocation
    4. Dereferencing ✓ Correct answer
  232. We allocate memory dynamically by using _______ operator.
    Topic: Recursion, C++ Basics & Memory
    1. Decrement
    2. Increment
    3. New ✓ Correct answer
    4. This
  233. _______________ parameter passing (by value or by reference) is similar to PASCAL.
    Topic: Recursion, C++ Basics & Memory
    1. C++ ✓ Correct answer
    2. COBOL
    3. JAVA
    4. FORTRAN
  234. Following is a keyword of C++ ____________
    Topic: Recursion, C++ Basics & Memory
    1. Delete ✓ Correct answer
    2. Update
    3. Eliminate
    4. Remove
  235. Local variables of a function are stored in,
    Topic: Recursion, C++ Basics & Memory
    1. Stack ✓ Correct answer
    2. Heap
    3. Tree
    4. Pointer
  236. We can make a lexicographic order of characters based on their ___.
    Topic: Recursion, C++ Basics & Memory
    1. Binary digits
    2. Random choice
    3. ASCII values ✓ Correct answer
    4. Memory addresses
  237. All the objects created using ___________ operator have to be explicitly destroyed using the delete operator.
    Topic: Recursion, C++ Basics & Memory
    1. New ✓ Correct answer
    2. Construct
    3. Build
    4. Create
  238. The computer memory can be thought of as a/an
    Topic: Recursion, C++ Basics & Memory
    1. Heap
    2. Array ✓ Correct answer
    3. Tree
    4. Pointer
  239. ________ is utilized at the time of memory allocation in dynamic manner.
    Topic: Recursion, C++ Basics & Memory
    1. Heap ✓ Correct answer
    2. Function
    3. Array
    4. Stack
  240. Memory address is stored in
    Topic: Recursion, C++ Basics & Memory
    1. Int
    2. Function
    3. Pointer ✓ Correct answer
    4. Array
  241. _______ is the major factor to see the efficiency of a program.
    Topic: Recursion, C++ Basics & Memory
    1. Time ✓ Correct answer
    2. Cost
    3. Maintance
    4. None of these
  242. The _____ symbol is used when we want to get the value of a variable using pointer
    Topic: Recursion, C++ Basics & Memory
    1. * ✓ Correct answer
    2. &
    3. #
    4. @
  243. In which of the following function signatures, the value of variable “num” cannot be changed in function body?
    Topic: Recursion, C++ Basics & Memory
    1. int cube(int *num)
    2. int &cube(int num)
    3. int cube(int num) ✓ Correct answer
    4. int cube(int &num)
  244. The __________ sign before the name of the variable means that the address of the variable is being
    Topic: Recursion, C++ Basics & Memory
    1. II
    2. #
    3. & ✓ Correct answer
    4. ::
  245. __________ objects (objects accessed by pointers) are called anonymous objects.
    Topic: Recursion, C++ Basics & Memory
    1. Nameless ✓ Correct answer
    2. Friend
    3. Public
    4. Private
  246. The first statement in the given code is called as:
    Topic: Recursion, C++ Basics & Memory
    1. Pre Class Declaration
    2. Forward Declaration ✓ Correct answer
    3. Binary Declaration
    4. Post Class Declaration
  247. What will be output of the given C++ code? Char lhs[]= “Army”; Char rhs[]= “Army”; cout<<strcmp(lhs,rhs);
    Topic: Recursion, C++ Basics & Memory
    1. Positive number
    2. 0 ✓ Correct answer
    3. Negative number
    4. Syntax Eroor
  248. One should be careful about transient __________ that are stored by reference in data structures.
    Topic: Recursion, C++ Basics & Memory
    1. Stack
    2. Tree
    3. Function
    4. Objects ✓ Correct answer
  249. Which of the following is correct syntax to pass a constant variable by reference to a function?
    Topic: Recursion, C++ Basics & Memory
    1. Int display (const int& val) ✓ Correct answer
    2. int display(const &int val)
    3. int display(int const val)
    4. int display(const int val)
  250. What will be the return type of the findMin method in the statement given below? Int& findMin()const;
    Topic: Recursion, C++ Basics & Memory
    1. constant integer
    2. integer pointer
    3. Integer reference ✓ Correct answer
    4. integer variable
  251. To create a reference variable, we need to use _________ sign.
    Topic: Recursion, C++ Basics & Memory
    1. Asterisk
    2. Dollar
    3. Sigma
    4. Ampersand ✓ Correct answer
  252. Which of the following function(s) is/are used for function call by using pointers? void func1(int& num) { num++; } void func2(int* num){ num++; }
    Topic: Recursion, C++ Basics & Memory
    1. Func2 ✓ Correct answer
    2. Func1
    3. Both
    4. None of these
  253. In C++, we place the class interface in __________ file.
    Topic: Recursion, C++ Basics & Memory
    1. .h ✓ Correct answer
    2. .hhh
    3. .cpp
    4. .ccp
  254. Local variables defined inside a function body are ____ automatically at the end of function execution.
    Topic: Recursion, C++ Basics & Memory
    1. Converted to global variables
    2. Moved to the heap
    3. Destroyed ✓ Correct answer
    4. Saved permanently
  255. Two common models of simulation are _______ and __________.
    Topic: Recursion, C++ Basics & Memory
    1. Discrete simulation and Analogue simulation
    2. Manual simulation and Computer simulation
    3. Static simulation and Dynamic simulation
    4. Time-based simulation and Event-based simulation ✓ Correct answer
  256. During the execution of a process, the operating system constructs four sections for that process. Which of the following is NOT one of those sections?
    Topic: Recursion, C++ Basics & Memory
    1. Linked list ✓ Correct answer
    2. Heap
    3. Code (text)
    4. Stack
  257. A _________ model attempts to model a real-world phenomenon.
    Topic: Recursion, C++ Basics & Memory
    1. Simulation ✓ Correct answer
    2. Traversal
    3. Sorting
    4. Searching
  258. Factorial is an example of a __________ function.
    Topic: Recursion, C++ Basics & Memory
    1. Static
    2. Inline
    3. Iterative
    4. Recursive ✓ Correct answer
  259. _________ is when a function is calling itself.
    Topic: Recursion, C++ Basics & Memory
    1. Function overloading
    2. Recursion ✓ Correct answer
    3. Looping
    4. Iteration
  260. Which of the following is true in case of using recursive method calls?
    Topic: Recursion, C++ Basics & Memory
    1. The code becomes very short ✓ Correct answer
    2. Execution is always faster than iteration
    3. No stack is used by recursion
    4. The code becomes very long
  261. Generalized (generic) code written for a class is called a ___________.
    Topic: Recursion, C++ Basics & Memory
    1. Structure
    2. Macro
    3. Function
    4. Template ✓ Correct answer
  262. Which of the following statements is FALSE?
    Topic: Recursion, C++ Basics & Memory
    1. Pointers store the address of a data element
    2. A stack follows LIFO order
    3. Pointers store the next data element of a list ✓ Correct answer
    4. A queue follows FIFO order
  263. Suppose you are writing a class for a Node class and forgot to write the constructor of the class, then:
    Topic: Recursion, C++ Basics & Memory
    1. A run-time error will occur
    2. The compiler will automatically generate a default constructor ✓ Correct answer
    3. Objects of the class cannot be created
    4. The program will not compile
  264. In the internal memory organization of a process, there is some area of memory for static data that holds ____________ variables.
    Topic: Recursion, C++ Basics & Memory
    1. Both static and global ✓ Correct answer
    2. Only global
    3. Only local
    4. Only static
  265. What's wrong with the following loop? while( (i < 10) && (i > 24) ) { }
    Topic: Recursion, C++ Basics & Memory
    1. There is a syntax error in the loop
    2. The loop runs exactly 10 times
    3. The condition is always true
    4. The condition is always false ✓ Correct answer
  266. The lifetime of a transient object cannot exceed that of the application which is accessing it. (True / False)
    Topic: Recursion, C++ Basics & Memory
    1. True ✓ Correct answer
    2. False
  267. The data of the problem is of 2GB and the hard disk is of 1GB capacity, to solve this problem we should
    Topic: Recursion, C++ Basics & Memory
    1. Use as much data as we can store on the hard disk
    2. Increase the hard disk space ✓ Correct answer
    3. Use the better algorithm
    4. Use better data structures
  268. In C what is the operation that you can not do with primitive types?
    Topic: Recursion, C++ Basics & Memory
    1. Assign a value to primitive type using a literal
    2. Create a new instance of primitive type with New keyword ✓ Correct answer
    3. Declare primitive types to be constant using the Const keyword
    4. None of these
  269. Which one of the following operators has higher priority than all of others?
    Topic: Recursion, C++ Basics & Memory
    1. Multiplication operator ✓ Correct answer
    2. Exponentiation operator
    3. Plus operator
    4. Minus operator
  270. A Compound Data Structure is the data structure which can have multiple data items of same type or of different types.Which of the following can be considered compound data structure?
    Topic: Recursion, C++ Basics & Memory
    1. LinkLists
    2. Binary Search Trees
    3. Arrays ✓ Correct answer
    4. All of the given options
  271. Suppose a pointer has been declared in main but has not assigned any variable address then
    Topic: Recursion, C++ Basics & Memory
    1. That pointer contains a NULL value
    2. That pointer points to First byte in main function
    3. That pointer points to any memory address ✓ Correct answer
    4. None of these
  272. Which statement of the following statements is incorrect?
    Topic: Recursion, C++ Basics & Memory
    1. Stack is a special kind of list in which all insertions and deletions take place at one end
    2. A list is a sequence of one or more data items
    3. Stacks are easier to implement than lists ✓ Correct answer
    4. Lists can be implemented by using arrays or linked lists
  273. Which one of the following is correct about pointers?
    Topic: Recursion, C++ Basics & Memory
    1. They may point to a singlememory location ✓ Correct answer
    2. The address of two pointer variables is same
    3. They always point todifferent memory locations
    4. None of these
  274. Non-recursive calls are faster than which of the following calls?
    Topic: Recursion, C++ Basics & Memory
    1. Non-Function
    2. Function
    3. Parameterized
    4. Recursive ✓ Correct answer
  275. If class A defines class B as its friend, then:
    Topic: Recursion, C++ Basics & Memory
    1. Class A can access private members of class B
    2. Class A can access only the public members of class B
    3. Class B can access only the public members of class A
    4. Class B can access private members as class A ✓ Correct answer
  276. The variable which are destroyed automatically when a function’s execution ends are:
    Topic: Recursion, C++ Basics & Memory
    1. Variable (objects) defined inside function body dynamically
    2. Variable (objects) defines inside function body statically
    3. Local variables defined inside function body ✓ Correct answer
    4. Global variables
  277. The new operation in C++ for dynamically allocating memory returns.
    Topic: Recursion, C++ Basics & Memory
    1. Both size and pointer to the memory it has allocated
    2. Pointer to the memory it has allocated ✓ Correct answer
    3. Value of the memory it has allocated
    4. Size of the memory it has allocated
  278. Whenever we call a function, the compiler makes a _________ that it uses to fulfil this function call.
    Topic: Recursion, C++ Basics & Memory
    1. Stack ✓ Correct answer
    2. Queue
    3. Linked list
    4. Heap
  279. Recursive call of a function use data structure
    Topic: Recursion, C++ Basics & Memory
    1. Linked List
    2. Stack ✓ Correct answer
    3. Table
    4. Queue
  280. Consider the following function: void test_a(int n) { cout << n << " "; if (n>0) test_a(n-2); } What is printed by the call test_a(4)?
    Topic: Recursion, C++ Basics & Memory
    1. 0 2 4
    2. 2 4
    3. 4 2 0 ✓ Correct answer
    4. 0 2
  281. Which of the following is the best description of an algorithm?
    Topic: Recursion, C++ Basics & Memory
    1. A well-defined computational procedure ✓ Correct answer
    2. A process that always terminates
    3. A mathematical model
    4. A set of instructions executed in parallel
  282. In the calling function, after the execution of the function called, the program continues its execution from the _______ after the function call.
    Topic: Arrays, Lists & Linked Lists
    1. Previous line
    2. Next line ✓ Correct answer
    3. Beginning
    4. None of the above
  283. If there are 100,0000 unique members (nodes) stored in a complete binary tree, the tree will have ______ levels.
    Topic: Arrays, Lists & Linked Lists
    1. 10
    2. 20 ✓ Correct answer
    3. 30
    4. 40
  284. Consider we have performed the following operations on a stack of size 5. Push(10); Push(20); Push(30); Pop(); Pop(); Pop(); Push(40); Push(50); Pop(); After the completion of all operation, the top element in stack is _______.
    Topic: Arrays, Lists & Linked Lists
    1. 10
    2. 20
    3. 40 ✓ Correct answer
    4. 50
  285. STL is a _______ that is a part of the official standard of C++.
    Topic: Arrays, Lists & Linked Lists
    1. C program file
    2. .h file
    3. .cpp file
    4. Library ✓ Correct answer
  286. In AVL tree insertion occurs on the inside in case ____ and 3 which a single rotation cannot fix.
    Topic: Arrays, Lists & Linked Lists
    1. 1
    2. 2 ✓ Correct answer
    3. 4
    4. 5
  287. A template is a function or class that is written with a ________
    Topic: Arrays, Lists & Linked Lists
    1. Specific
    2. Definite
    3. Generic ✓ Correct answer
    4. None of the above
  288. Consider the following infix expression.
    Topic: Stacks & Queues
    1. 7/8 + 9 ✓ Correct answer
    2. 8/7+9
    3. -7/8+9
    4. 78/+9
  289. For a perfect binary tree of height h, having N nodes the sum of height of nodes is
    Topic: Stacks & Queues
    1. N-h-1 ✓ Correct answer
    2. N-1
    3. N-1+h
    4. -(h-1)
  290. Which of the following statement is correct for the variable “current- -“?
    Topic: Stacks & Queues
    1. Current = current + 1
    2. Current = current - 1 ✓ Correct answer
    3. Current = current - 2
    4. Current – 1 = current
  291. A software solution is said to be efficient if it solves the problem __________.
    Topic: Stacks & Queues
    1. By using some extra resources
    2. Within no time
    3. By consuming more hardware resources
    4. Within its resources constraints ✓ Correct answer
  292. Each node in a singly linked list contains two fields, one field called data field while other field contains:
    Topic: Stacks & Queues
    1. Pointer to an integer
    2. Pointer to character
    3. Pointer to next node ✓ Correct answer
    4. Pointer to class
  293. A _______ is a tree in which every level, except possibly the last, is completely filled, and all nodes are as far left as possible.
    Topic: Stacks & Queues
    1. Strict binary tree
    2. Full binary tree
    3. Perfect binary tree
    4. Complete binary tree ✓ Correct answer
  294. Binary search algorithm cannot be applied to ___
    Topic: Stacks & Queues
    1. Sorted linked list ✓ Correct answer
    2. sorted binary trees
    3. sorted linear array
    4. None of given option
  295. NULL is an invalid address and ________.
    Topic: Stacks & Queues
    1. Accessible
    2. Inaccessible ✓ Correct answer
    3. Points to the start point of the list
    4. Points to the last point of the list
  296. Can we store elements with different data types in a single array?
    Topic: Stacks & Queues
    1. Yes
    2. No ✓ Correct answer
    3. In some cases
    4. None of given
  297. Consider the following push operations of a stack: Stack.push(4); Stack.push(6); Stack.push(5); Stack.push(8); If a user calls a pop() operation, then which value will be returned?
    Topic: Stacks & Queues
    1. 8 ✓ Correct answer
    2. 5
    3. 6
    4. 4
  298. Binary search tree violates the condition of AVL tree when any node has balance equal to
    Topic: Recursion, C++ Basics & Memory
    1. 2 or -2
    2. 1 or -1 ✓ Correct answer
    3. 0
    4. None of the options
  299. In case of insertion of left outer node in BST,
    Topic: Recursion, C++ Basics & Memory
    1. We apply single right rotation to make it AVL tree.
    2. We apply single left rotation to make it AVL tree.
    3. We first apply right rotation and then left rotation to make it AVL tree.
    4. We first apply left rotation and then right rotation to make it AVL tree. ✓ Correct answer
  300. Int * i = new int[10]; Above given code will:
    Topic: Recursion, C++ Basics & Memory
    1. Create an integer having value 10
    2. Allocate memory for 9 integers
    3. Allocate memory for 10 integers ✓ Correct answer
    4. Create 10 pointers of integer type
  301. Which of the following data structure is linear type?
    Topic: Recursion, C++ Basics & Memory
    1. Stack
    2. List
    3. Queue
    4. All of the above ✓ Correct answer
  302. When an executable program runs, it is loaded in the computer memory and becomes a _______.
    Topic: Recursion, C++ Basics & Memory
    1. Thread
    2. .h file
    3. Process ✓ Correct answer
    4. None of the above
  303. There are ____ cases for deleting a node from binary search tree.
    Topic: Recursion, C++ Basics & Memory
    1. 1
    2. 2
    3. 3 ✓ Correct answer
    4. 4
  304. Suppose we have been given the following data set for a queue: 37524 What will be the resultant queue if we call a front() method?
    Topic: Recursion, C++ Basics & Memory
    1. 7524
    2. 37524 ✓ Correct answer
    3. 75243
    4. 5 2 4
  305. Suppose we have been given the following data set for a queue: 7524 What will be the resultant queue if we call enqueue(3) method? Note that 7 is the front element whereas 4 is rear element of queue.
    Topic: Recursion, C++ Basics & Memory
    1. 7524
    2. 37524
    3. 75243 ✓ Correct answer
    4. 5243
  306. What are the basic things associated with data structures?
    Topic: Recursion, C++ Basics & Memory
    1. Space for each data item it stores
    2. Time to perform each basic operation
    3. Programming effort
    4. All of the above ✓ Correct answer
  307. Which data structure allows deleting data elements from front anf inserting at rear?
    Topic: Recursion, C++ Basics & Memory
    1. Stacks
    2. Queues ✓ Correct answer
    3. Deques
    4. Binary search tree
  308. For a complete binary tree, the depth is calculated as____
    Topic: Recursion, C++ Basics & Memory
    1. log2(number of nodes+1)-1 ✓ Correct answer
    2. log2(number of nodes*1)+1
    3. log2(number of nodes-1)-1
    4. log2(number of nodes-1)+1
  309. Consider the linked list having data [6, 72, 35, 65,25] stored in it. While current pointer is pointing memory location having 72 stored in it. After calling remove() function on the following linked list current point will point to memory location having value?
    Topic: Recursion, C++ Basics & Memory
    1. 6 ✓ Correct answer
    2. 35
    3. 65
    4. 25
  310. Deleting a ______ node in BST is a ______ case.
    Topic: Recursion, C++ Basics & Memory
    1. Root, simplest
    2. Left child, simplest
    3. Right child, simplest
    4. Leaf, simplest ✓ Correct answer
  311. A stack carries _______ behavior.
    Topic: Recursion, C++ Basics & Memory
    1. FIFO
    2. LIFO ✓ Correct answer
    3. AVCO
    4. FEFO
  312. The smallest value element in a binary search tree(Each node with left and right pointer) lies at
    Topic: Recursion, C++ Basics & Memory
    1. Root Node
    2. Left Child of Root
    3. Right Most Node
    4. Left Most Node ✓ Correct answer
  313. y = &x[0]; In the above statement, we get the address of the fist location of the array x and store it in y. Here “y” is:
    Topic: Recursion, C++ Basics & Memory
    1. rvalue
    2. xvalue
    3. lvalue ✓ Correct answer
    4. zvalue
  314. Linked list use _______ to store data.
    Topic: Trees & Binary Search Trees
    1. Array
    2. 2-D Array
    3. Variables ✓ Correct answer
    4. Linked Memory
  315. A binary tree whose every node has either zero or two children is called _________.
    Topic: Trees & Binary Search Trees
    1. Complete binary tree ✓ Correct answer
    2. Binary search tree
    3. Strictly binary tree
    4. None of above
  316. If we use doubly linked list to implement list then there is an issue of
    Topic: Trees & Binary Search Trees
    1. Next pointer of first node and pre pointer of last node are NULL
    2. Next pointer of first node and next pointer of last node are NULL
    3. Pre pointer of first node and next pointer of last node are NULL ✓ Correct answer
    4. Pre pointer of first node and pre pointer of last node are NULL
  317. In node class one field is an integer data and other field will be _______
    Topic: Trees & Binary Search Trees
    1. Pointer to class
    2. Pointer to node ✓ Correct answer
    3. Pointer to integer
    4. None of given options
  318. For reference variables, ________ sign is used.
    Topic: Trees & Binary Search Trees
    1. Ampersand ✓ Correct answer
    2. Asterisk
    3. Sigma
    4. Dollar
  319. Maximum time that an insertion operation can take in AVL tree is _______. Here log stands for log to the base of 2.
    Topic: Trees & Binary Search Trees
    1. Log (n) ✓ Correct answer
    2. 1.44 log (n)
    3. 1.66 log (n)
    4. Log (n+1)
  320. The function calls are made with the help of ________.
    Topic: Trees & Binary Search Trees
    1. Stack ✓ Correct answer
    2. Heap
    3. Dynamic memory
    4. External memory
  321. An efficient program execute faster and helps in _____ the usage of resources like memory and disk
    Topic: Trees & Binary Search Trees
    1. Maximizing
    2. Minimizing ✓ Correct answer
    3. Equalizing
    4. None of the given
  322. ___ only removes items in reverse order as they were entered
    Topic: Trees & Binary Search Trees
    1. Queue
    2. Stack ✓ Correct answer
    3. Both of these
    4. None of these
  323. We can not remove items randomly from ________
    Topic: Trees & Binary Search Trees
    1. Stack
    2. Queue
    3. Both of these ✓ Correct answer
    4. None of these
  324. if there are ___ nodes in an avl tree its levels will be roughly as log2(10 million)
    Topic: Trees & Binary Search Trees
    1. 100 million
    2. 10 million ✓ Correct answer
    3. 5 million
    4. 2 million
  325. For String-based Binary Search Tree, We use ASCII values of characters for comparing among letters. This method is known as ___
    Topic: Trees & Binary Search Trees
    1. Lexicographic order ✓ Correct answer
    2. Alphabet coding procedure
    3. Asymmetric technique
    4. heap-based approach
  326. During deletion of node from BST. if we found this node don't have in- order successor and predecessor. it means this node is____
    Topic: Trees & Binary Search Trees
    1. Left Most node in the binary search tree
    2. Right most node in the binary search tree
    3. Root node ✓ Correct answer
    4. None of the given option
  327. Which of the following a nonlinear tree
    Topic: Trees & Binary Search Trees
    1. Stack
    2. Que
    3. Tree ✓ Correct answer
    4. Linked List
  328. If a tree has a 50 Node then the total linked in the tree will be
    Topic: Trees & Binary Search Trees
    1. 55
    2. 51
    3. 50
    4. 49 ✓ Correct answer
  329. In which of the following trees is the value of each node greater than the values in its left subtree and smaller than the values in its right subtree?
    Topic: Trees & Binary Search Trees
    1. Binary search tree ✓ Correct answer
    2. Heap
    3. Complete binary tree
    4. Expression tree
  330. The postorder traversal of a binary tree is DEBFCA. What is the preorder traversal of the same tree?
    Topic: Trees & Binary Search Trees
    1. ABDCEF ✓ Correct answer
    2. ABCDEF
    3. ABDECF
    4. ACBFED
  331. In AVL tree during insertion, a single rotation can fix the balance in cases _________ and.
    Topic: AVL Trees
    1. 1 ✓ Correct answer
    2. 2
    3. 3
    4. 4
  332. Consider the following push operations of a Stack:
    Topic: AVL Trees
    1. Stack.push(4);
    2. Stack.push(6);
    3. Stack.push(5);
    4. Stack.push(8); ✓ Correct answer
  333. In case of insertion of a node at the left outer position in a binary search tree, which rotation is applied to make it an AVL tree?
    Topic: AVL Trees
    1. 2 ✓ Correct answer
    2. 4
    3. 6
    4. 8
  334. If there is a strictly complete binary tree of depth 3, the total number of nodes in it will be?
    Topic: AVL Trees
    1. 2K ✓ Correct answer
    2. 0k
    3. 1k
    4. 3k
  335. Suppose there are 100 elements in an equivalence classes so initially there will be 100 tree.The collection of tree is called_
    Topic: AVL Trees
    1. Cluster ✓ Correct answer
    2. Class
    3. Forest
    4. Bunch
  336. Every _____ tree is a binary search tree.
    Topic: AVL Trees
    1. AVL ✓ Correct answer
    2. binary
    3. big
    4. small
  337. In an AVL tree, insertion occurs on the inside in cases ______ and 3, which a single rotation cannot fix.
    Topic: AVL Trees
    1. Infix ✓ Correct answer
    2. Postfix
    3. Prefix
    4. None of the above
  338. Which of the following is the correct option for priority Queue?
    Topic: AVL Trees
    1. The type of Queue that is not FIFO i.e the person who comes first may not leave first
    2. The type of Queue that is not FIFO i.e the person who comes first should leave first ✓ Correct answer
    3. The type of Queue that is not FIFO i.e the person who comes first should leave first
    4. The type of Queue that is not FIFO i.e the person who comes first may not leave first
  339. The main use of AVL tree is:
    Topic: AVL Trees
    1. Searching of data ✓ Correct answer
    2. Storing of data
    3. Insertion of data
    4. Security of data
  340. What is the maximum height of an AVL tree with n nodes?
    Topic: AVL Trees
    1. 1.44 log2 n ✓ Correct answer
    2. log2 n
    3. 2 log2 n
    4. n
  341. Longest path from root node to farthest leaf node is called _______ of tree.
    Topic: Expressions & Expression Conversion
    1. Level
    2. Length
    3. Depth ✓ Correct answer
    4. Node level
  342. To represent hierarchical relationship between elements, which data structure is suitable?
    Topic: Sorting
    1. Dequeue
    2. Priority
    3. Stack
    4. Tree ✓ Correct answer

MIHORA VU – Virtual University Assignment Solutions 2026, Solved Past Papers & All 455+ Courses

Official MIHORA TECH academic repository offering 28,328+ verified study documents for all 455+ Virtual University of Pakistan courses. Access VU Assignment Solution 2026 (Latest Session), Moaaz & Waqar Siddhu solved midterm & final papers, lecture handouts, and quizzes with 100% direct high-speed links.

SPRING 2026 / FALL 2026 ACTIVE SESSION

VU Assignment Solution 2026 (Latest Solved Assignments, GDBs & Quizzes)

Get high-scoring solutions for Assignment 1, Assignment 2, and Graded Discussion Boards across Computer Science, Mathematics, Management, English, and Economics. Compliant with Turnitin similarity limits (< 19%) and official 24-hour grace periods.

Open VU Assignment Solution 2026 Hub →

Popular Virtual University Courses (2026 Solved Papers & Solutions):

CS101 – Introduction to Computing CS201 – Introduction to Programming CS301 – Data Structures CS302 – Digital Logic Design CS401 – Computer Architecture & Assembly Language CS402 – Theory of Automata CS403 – Database Management Systems CS501 – Advance Computer Architecture CS502 – Fundamentals of Algorithms CS504 – Software Engineering - I CS506 – Enterprise Application Development CS601 – Data Communication CS602 – Computer Graphics CS604 – Operating Systems CS605 – Software Engineering - II CS607 – Artificial Intelligence CS610 – Computer Networks CS619 – Final Year Project MTH101 – Calculus & Analytical Geometry MTH202 – Discrete Mathematics MTH301 – Calculus II (Multivariable Calculus) MTH302 – Business Mathematics & Statistics MTH501 – Linear Algebra ENG101 – English Comprehension ENG201 – Business and Technical English Writing MGT101 – Financial Accounting MGT211 – Introduction to Business MGT301 – Principles of Marketing MGT501 – Human Resource Management ACC311 – Fundamentals of Auditing ACC501 – Business Finance STA301 – Statistics and Probability ECO401 – Economics (Micro & Macro) ISL202 – Islamic Studies / Ethics PAK301 – Pakistan Studies PHY101 – Physics - Mechanics & Waves

Complete Directory of All 455 Virtual University Courses & Codes

Browse the complete curriculum of all 455 accredited courses across 27 faculties of Virtual University of Pakistan. Every course includes verified lecture handouts, Moaaz & Waqar Siddhu solved papers, and 2026 assignment solution templates.

Accounting & Finance (16 Courses)

ACC301 – Financial Accounting ACC311 – Fundamentals of Auditing ACC501 – Business Finance BNK601 – Banking Laws & Practices BNK603 – Consumer Banking BNK604 – Commercial Banking BNK610 – Credit & Risk Management in Banking EFIN623 – Economics of Financial Markets FIN611 – Advanced Financial Accounting FIN621 – Financial Statement Analysis FIN622 – Corporate Finance FIN623 – Taxation Management FIN624 – Islamic Banking & Finance FIN625 – Credit & Risk Management FIN630 – Investment Analysis & Portfolio Management FIN722 – Advanced Corporate Finance

Bioinformatics (7 Courses)

BIF101 – Basic Bioinformatics BIF401 – Introduction to Bioinformatics BIF402 – Computational Biology Methods BIF501 – Genomics & Proteomics BIF601 – Bioinformatics Algorithms BIF602 – Structural Bioinformatics BIF604 – Systems Biology

Biological Sciences (16 Courses)

BIO101 – Basic Biology BIO102 – Introductory Biology & Diversity BIO201 – Cell Biology BIO202 – Biochemistry BIO203 – General Genetics BIO204 – Biochemical Techniques BIO301 – Molecular Biology BIO302 – Animal Physiology BIO303 – Developmental Biology BIO401 – Ecology & Evolutionary Biology BIO502 – Immunology & Pathology BIO503 – Pharmacology & Toxicology BIO504 – Applied Microbiology BIO505 – Environmental Biotechnology BIO506 – Forensic Biology BIO731 – Advanced Molecular Genetics

Virtual University of Pakistan (43 Courses)

BNK611 – Economic Ideology in Islam BT613T – Agricultural Biotechnology CS306 – Introduction to Python CS441 – Big Data Concepts CS442 – Introduction to Data Science CS620 – Modeling & Simulation CS701 – Theory of Computation CS703 – Operating Systems CS704 – Advanced Computer Architecture ECO302 – Microeconomics EDU407 – EDU407 ENG401 – Introduction to Literature: Short Story and Poetry GSC201 – Teaching of General Science MCM516 – TV News Reporting and Production MGMT611 – Human Relations MGMT629 – Crisis Management MGT201 – Financial Management MGT401 – Financial Accounting II MGT404 – MGT404 MGT504 – Organization Theory & Design MGT520 – International Business MGT522 – MGT522 MGT601 – SME Management MGT603 – Strategic Management MGT613 – Production and Operations Management MGT703 – Strategic Management MGT705 – Advanced Cost and Management Accounting MGT713 – Production / Operations Management MTH102 – Basic Algebra and Trigonometry MTH201 – Multivariable Calculus MTH304 – Mechanics MTH403 – MTH403 MTH404 – MTH404 MTH405 – MTH405 MTH621 – Real Analysis I MTH633 – Group Theory MTH642 – Fluid Mechanics MTH643 – MTH643 PAK303 – PAK303 PSC401 – Public International Law PSY409 – Positive Psychology SE601 – Software Construction & Development SE602 – Software Re—engineering

Bio-Technology (34 Courses)

BT101 – Ecology, Biodiversity & Evolution BT102 – Microbiology BT201 – Biotechnology Fundamentals BT301 – Recombinant DNA Technology BT302 – Cell and Tissue Culture BT401 – Genetic Engineering BT402 – Fermentation Technology BT403 – Agricultural Biotechnology BT404 – Medical Biotechnology BT405 – Industrial Biotechnology BT406 – Nanobiotechnology BT501 – Biochemical Engineering BT502 – Biosafety & Bioethics BT503 – Molecular Diagnostics BT504 – Stem Cell Technology BT505 – Food Biotechnology BT511 – Vaccine Technology BT512 – Drug Design & Development BT513 – Genomics & Functional Proteomics BT514 – Enzyme Technology BT601 – Advanced Genetic Engineering BT602 – Bioinformatics in Biotechnology BT603 – Bioprocess Engineering BT604 – Aquatic Biotechnology BT605 – Environmental Bioremediation BT611 – Synthetic Biology BT612 – Metabolic Engineering BT613 – Biofuels and Bioenergy BT614 – Clinical Research in Biotechnology BT693 – Research Project in Biotechnology BT732 – Advanced Molecular Biology Seminar BT734 – Advanced Cellular Biotechnology BT735 – Current Topics in Biotechnology NTBT301 – Nanotechnology in Biotechnology

Chemistry (2 Courses)

CHE201 – General Chemistry CHE301 – Organic Chemistry

Computer Science (55 Courses)

CS000 – Introduction to Computer Fundamentals CS001 – Computer Proficiency License CS101 – Introduction to Computing CS201 – Introduction to Programming CS202 – Web Design & Development CS204 – Cyber Law & Intellectual Property CS205 – Information Security Management CS206 – Ethical Hacking & Defense CS301 – Data Structures CS302 – Digital Logic Design CS304 – Object Oriented Programming CS310 – Introduction to Programming (Python) CS311 – Introduction to Web Services Development CS312 – Mobile Application Development CS314 – Embedded Systems & IoT CS315 – Web Engineering CS401 – Computer Architecture & Assembly Language CS402 – Theory of Automata CS403 – Database Management Systems CS405 – Mobile Computing CS407 – Cloud Computing Fundamentals CS408 – Human Computer Interaction CS409 – Ethical & Legal Issues in Computing CS410 – Design & Analysis of Algorithms CS411 – Visual Programming CS420 – Game Design and Development CS432 – Network Security CS435 – Cloud Computing Infrastructure CS501 – Advance Computer Architecture CS502 – Fundamentals of Algorithms CS505 – Agile Software Development CS506 – Enterprise Application Development CS507 – Information Systems CS508 – Modern Programming Languages CS510 – Compiler Construction CS511 – Distributed Systems CS521 – Data Science Principles CS601 – Data Communication CS602 – Computer Graphics CS603 – Software Architecture CS604 – Operating Systems CS606 – Compiler Design & Construction CS607 – Artificial Intelligence CS608 – Digital Signal Processing CS609 – System Programming CS610 – Computer Networks CS614 – Data Warehousing CS619 – Final Year Project CS621 – Information Retrieval Techniques CS625 – Formal Methods in Software Engineering CS627 – Computer Vision & Pattern Recognition CS636 – Big Data Analytics CS708 – Advanced Computer Graphics CS713 – Advanced Software Architecture CS718 – Advanced Artificial Intelligence

Software Engineering (4 Courses)

CS504 – Software Engineering - I CS605 – Software Engineering - II CS611 – Software Quality Assurance CS615 – Software Project Management

Statistics (18 Courses)

DSTA630 – Data Science Research Methods STA000 – Basic Statistics Fundamentals STA100 – Foundations of Statistics STA301 – Statistics and Probability STA304 – Statistical Inference STA404 – Experimental Design STA406 – Sampling Techniques STA408 – Biostatistics and Epidemiology STA630 – Research Methods in Social Sciences STA631 – Advanced Statistical Methods STA632 – Multivariate Analysis STA641 – Non-Parametric Methods STA642 – Econometric Models STA730 – Advanced Research Methodology in Statistics STAT100 – Statistics Fundamentals STAT404 – Applied Statistical Modeling STAT408 – Statistical Computing STAT730 – Advanced Biostatistics

Education (44 Courses)

ECE101 – Introduction to Early Childhood Care & Education EDU101 – Foundations of Education EDU201 – Learning Theories & Applications EDU205 – Classroom Management EDU301 – General Methods of Teaching EDU302 – Human Development & Learning EDU303 – School, Community and Teacher EDU304 – Educational Assessment & Evaluation EDU305 – Curriculum Development & Instruction EDU306 – Contemporary Trends in Education EDU401 – Critical Thinking and Reflective Practices EDU402 – Educational Leadership & Management EDU403 – Art, Craft & Calligraphy in Education EDU404 – Teaching of English EDU405 – Teaching of Mathematics EDU406 – Teaching of General Science EDU410 – ICT in Education EDU411 – Teaching of Social Studies EDU430 – Information & Communication Technology in Teaching EDU431 – Test Development & Measurement EDU433 – Educational Statistics EDU501 – Educational Psychology EDU505 – Guidance and Counseling in Schools EDU510 – Qualitative Research in Education EDU512 – Comparative Education EDU514 – Special Education Principles EDU515 – Early Childhood Education Curriculum EDU516 – Educational Technology & Media EDU601 – Philosophy of Education EDU602 – Educational Planning and Policy EDU604 – Educational Administration & Supervision EDU630 – Research Methods in Education EDU654 – Teacher Education in Pakistan EDU702 – Advanced Seminar in Educational Leadership EDU705 – Advanced Educational Policy Analysis EDUA305 – Applied Curriculum Development EDUA403 – Elementary Arts Education EDUA405 – Pedagogy of Mathematics EDUA516 – Educational Media Design EDUA630 – Action Research in Educational Settings MEDU402 – Master Level Educational Leadership MEDU406 – Science Teaching Pedagogies MEDU430 – Advanced ICT in Education MEDU601 – Advanced Philosophy of Education

Economics (11 Courses)

ECO401 – Economics (Micro & Macro) ECO402 – Microeconomics Analysis ECO403 – Macroeconomics Analysis ECO404 – Managerial Economics ECO406 – Development Economics ECO501 – Monetary Economics ECO601 – International Economics ECO603 – Public Sector Economics ECO606 – Agricultural Economics ECO607 – Environmental & Resource Economics ECO610 – Econometrics Principles

Management Sciences (26 Courses)

EMG525 – Engineering Project Management MGMT614 – Leadership & Team Building MGMT615 – Project Management Practices MGMT617 – Project Management Methodologies MGMT622 – Operations Management MGMT623 – Supply Chain Management MGMT625 – Knowledge Management Systems MGMT627 – Global Business Strategy MGMT628 – Strategic Management MGMT630 – Business Strategy & Policy MGMT631 – Innovation Management MGT101 – Financial Accounting MGT111 – Introduction to Public Administration MGT211 – Introduction to Business MGT301 – Principles of Marketing MGT402 – Cost & Management Accounting MGT411 – Money & Banking MGT501 – Human Resource Management MGT502 – Organizational Behaviour MGT503 – Principles of Management MGT510 – Total Quality Management MGT602 – Entrepreneurship MGT604 – Management of Financial Institutions MGT610 – Business Ethics & Corporate Governance MGT611 – Business & Labor Law MGTE630 – Business Management Strategy

English (34 Courses)

ENG001 – Basic English Grammar & Composition ENG101 – English Comprehension ENG201 – Business and Technical English Writing ENG301 – Business Communication ENG501 – History of English Language ENG502 – Introduction to Linguistics ENG503 – English Morphology and Syntax ENG504 – Sociolinguistics ENG505 – Phonetics & Phonology ENG506 – World Englishes ENG507 – Psycholinguistics ENG508 – Semantics & Pragmatics ENG509 – English for Specific Purposes (ESP) ENG510 – Language Testing & Evaluation ENG511 – Syllabus Design & Materials Development ENG512 – Stylistics & Literary Analysis ENG513 – Second Language Acquisition (SLA) ENG514 – Classical Poetry ENG515 – Classical Drama ENG516 – Research Methodology in Linguistics ENG517 – Modern Poetry ENG518 – Modern Drama ENG519 – Classical Novel ENG520 – Modern Novel ENG521 – American Literature ENG522 – Postcolonial Literature ENG523 – Continental Literature & Criticism ENG524 – Literary Criticism & Theory ENG525 – Discourse Analysis ENG526 – Applied Linguistics in Education ENG527 – Creative Writing & Composition ENG528 – Corpus Linguistics ENG529 – Translation Studies & Theory FENG301 – Functional English for Professionals

Islamic Studies (4 Courses)

ETH100 – Ethics (For Non-Muslim Students) ETH201 – Ethics & Moral Philosophy (For Non-Muslims) ISL201 – Islamic Studies ISL202 – Islamic Studies / Ethics

General Guides (1 Courses)

GENERAL – General University Resources, Guides & Handbooks

General Sciences (1 Courses)

GSC101 – General Science

Human Resources (4 Courses)

HRM613 – Human Resource Development HRM617 – Compensation & Benefits Management HRM624 – Conflict & Negotiation Management HRM627 – Strategic Human Resource Management

Information Technology (4 Courses)

IT430 – E-Commerce & Digital Business IT601 – Network Administration IT602 – Database Administration ITU430 – E-Commerce Systems

Microbiology (4 Courses)

MB501 – General Microbiology & Microbial Diversity MB502 – Microbial Physiology & Metabolism MB504 – Medical Microbiology MIC501 – Applied Microbiology

Mass Communication (22 Courses)

MCD401 – Media Content Development MCD403 – Media Ethics & Professional Standards MCM000 – Introduction to Communication Fundamentals MCM101 – Introduction to Mass Communication MCM301 – Communication Skills MCM304 – Mass Media in Pakistan MCM310 – Radio Broadcasting & Audio Media MCM311 – Radio & Television Production MCM401 – Fundamentals of Public Relations MCM404 – Electronic Media Content Creation MCM411 – News Writing and Reporting MCM431 – Digital Media & Online Journalism MCM501 – Development Support Communication MCM511 – Media Ethics, Cyber Laws & Regulation MCM514 – Feature, Column & Editorial Writing MCM517 – Advertising Strategy & Campaigns MCM520 – Print Media Design & Layout MCM531 – International & Cross-Cultural Communication MCM601 – Theories of Mass Communication MCM604 – Communication Research Methodology MCM610 – Cyber Journalism & Web Publishing MCMP310 – Radio & Audio Production Practical

Marketing (5 Courses)

MKT501 – Marketing Management MKT530 – Consumer Behaviour MKT610 – Customer Relationship Management (CRM) MKT621 – Advertising & Brand Management MKT630 – International Marketing Strategy

Mathematics (20 Courses)

MTH001 – Elementary Mathematics MTH100 – General Mathematics MTH101 – Calculus & Analytical Geometry MTH104 – Sets & Logic MTH202 – Discrete Mathematics MTH301 – Calculus II (Multivariable Calculus) MTH302 – Business Mathematics & Statistics MTH401 – Differential Equations MTH501 – Linear Algebra MTH601 – Operations Research MTH603 – Numerical Analysis MTH622 – Vector & Tensor Analysis MTH631 – Real Analysis MTH632 – Complex Analysis MTH634 – Topology MTH641 – Functional Analysis MTH644 – Mathematical Methods MTH645 – Mechanics MTH646 – Differential Geometry MTH647 – Fluid Mechanics

Social Studies (3 Courses)

PAK301 – Pakistan Studies PAK302 – History of Pakistan PAK522 – Ideology & Constitution of Pakistan

Physics (3 Courses)

PHY000 – Foundational Physics PHY101 – Physics - Mechanics & Waves PHY301 – Circuit Theory

Psychology (23 Courses)

PSY101 – General Psychology PSY401 – Clinical Psychology Fundamentals PSY402 – Social Psychology PSY403 – Developmental Psychology PSY404 – Abnormal Psychology PSY405 – Personality Theories & Assessment PSY406 – Educational Psychology Applications PSY407 – Experimental Psychology & Lab Methods PSY408 – Health Psychology PSY502 – History and Systems of Psychology PSY504 – Cognitive Psychology PSY505 – Psychological Testing & Measurement PSY510 – Positive Psychology & Well-being PSY511 – Counseling Psychology Principles PSY512 – Organizational & Industrial Psychology PSY513 – Neuropsychology Fundamentals PSY515 – Forensic & Criminal Psychology PSY516 – Cross-Cultural Psychology PSY610 – Neurological Basis of Behavior PSY611 – Psychopathology & Diagnostics PSY631 – Psychological Assessment Practicum PSY632 – Research Methods in Psychology PSYP631 – Psychological Assessment Lab Practical

Sociology (14 Courses)

SOC101 – Introduction to Sociology SOC201 – Pakistani Society and Culture SOC301 – Social Psychology & Society SOC302 – Cultural Anthropology SOC401 – Social Research Methods SOC402 – Classical Sociological Theories SOC403 – Social Change & Modernization SOC404 – Urban Sociology SOC601 – Rural Sociology & Community Development SOC602 – Gender Studies & Society SOC605 – Criminology & Juvenile Delinquency SOC608 – Sociology of Development SOC609 – Sociology of Health & Medicine SOC610 – Demography & Population Dynamics

Urdu Literature (2 Courses)

URD101 – Functional Urdu (Urdu Zaban-o-Adab) URDU101 – Urdu Language & Literature

Zoology (35 Courses)

ZOO101 – Principles of Animal Life I ZOO102 – Principles of Animal Life II ZOO103 – Animal Diversity: Invertebrates ZOO111 – Fundamentals of Zoology ZOO201 – Animal Diversity: Chordates ZOO202 – Animal Form & Function I ZOO203 – Animal Form & Function II ZOO301 – Animal Physiology ZOO302 – Cell & Molecular Biology in Zoology ZOO307 – Principles of Ecology ZOO401 – Evolution & Principles of Systematics ZOO403 – Animal Behavior & Sociobiology ZOO404 – Biostatistics for Zoologists ZOO405 – General Developmental Biology ZOO501 – Developmental Biology ZOO502 – Environmental Biology ZOO503 – Biostatistics in Zoological Research ZOO504 – Zoogeography & Paleontology ZOO505 – Wildlife of Pakistan & Conservation ZOO506 – Endocrinology ZOO507 – Animal Diversity & Behavior ZOO509 – Fish Biology & Fisheries Science ZOO510 – General Microbiology & Immunology ZOO511 – Immunology & Serology ZOO512 – Parasitology & Vectors ZOO513 – Applied Entomology ZOO514 – Biochemistry of Animals ZOO515 – Genetics & Population Biology ZOO516 – Aquaculture & Fisheries Management ZOO517 – Toxicology & Environmental Health ZOO518 – Comparative Vertebrate Anatomy ZOO519 – Mammalogy ZOO520 – Ornithology (Bird Biology) ZOO603 – Applied Parasitology & Vector Biology ZOO630 – Research Methodology in Zoology

Core Student Calculators & Rules Handbooks

Frequently Asked Questions – MIHORA VU Study Library

Where can I download VU Assignment Solution 2026 for CS101, CS201, MTH101, and all subjects?

MIHORA VU (https://study.mihora.tech/vu-assignment-solution-2026) offers verified 2026 assignment solutions, GDB answers, quiz files, and Dev-C++ code templates for all 455 Virtual University courses with 100% free direct downloads.

What is the 24-hour assignment grace period in Virtual University?

Virtual University gives students an automatic 24-hour grace period after the official assignment deadline. Submissions during this grace window are awarded full credit with 0 marks deduction.

How to avoid zero marks in VU assignments due to Turnitin plagiarism?

Never copy-paste solutions directly from YouTube or public groups. Keep Turnitin similarity under 19% by renaming code variables, rearranging logical statements, and writing custom explanations.

Where can I get Moaaz and Waqar Siddhu solved midterm and final past papers?

MIHORA VU hosts over 28,328 verified documents including complete Moaaz and Waqar Siddhu past paper collections for all 455 VU subjects, available via direct download without registration.

What is the 20% Two-Half passing rule in Virtual University?

Students must score at least 20% in the First Half (Quizzes, Assignments, GDBs, and Midterms) AND independently at least 20% in the Final Term exam paper to pass any course.