Skip to content
VUBuddy

CS301 Grand Quiz by Junaid

Data Structures PDF 369 KBUpdated 23 Oct 2026
Quiz CS301 Grand Quiz by Junaid PDF 369 KB
vubuddy.com
Type
Quiz
Course
CS301 Data Structures
Size
PDF 369 KB
Updated
23 Oct 2026
Free download 0 of 3 used today
Download free · 369 KB

You get 3 free files a day on the website. Add the Chrome extension for 30 a day.

Unlimited downloads in the Android app Get it free on Google Play

Preview text

Text from pages 2, 3, 4 of 23. Download the file for all 23 pages.

CS301 GRAND QUIZ

1. Consider the following infix expression. 7/8+9 If one converts the above expression into postfix, what would be the resultant expression? a. 789/+ b. 78/+9 c. /78+9 d. 78/9+ 2. Suppose there are 100 elements in an equivalence classes so initially there will be 100 tree. The collection of tree is called_ a. Cluster b. Class c. Forest d. Bunch 3. For a perfect binary tree of height h, having N nodes the sum of height of nodes is a. N-h-1 b. N-1 c. N-1+h d. -(h-1) 4. Sorting procedure normally takes ______time a. N log N b. 2 N c. N*N*N d. N 5. there are 100 elements in an equivalence classes then will have ______state initially a. b. c. d. 6. ________ objects (objects accessed by pointers) are called anonymous objects. a. Private b. Nameless c. Friend d. Public 7. ___________ is a self-balancing tree. a. AVL b. Binary Tree c. d. ALV 8. Which of the following operation returns but do not removes top value of the stack? a. Push b. Pop

c. Top d. First 9. Int htdiff = height(root->getLeft()) __________ height(root->getRight()); The above line of code is taken from AVL insert method. Complete it by selecting an appropriate symbol. a. b. c. d.

  1. Which operation of the queue data structure is used to insert an element into the Queue? a. Enqueue() b. Dequeue() c. Fornt() d. Remove()
  2. For making binary search tree for strings we need, ________ data type. a. Char b. Int c. Float d. Double
  3. Local variables defined inside function body are ________ automatically at the end of function execution. a. Created b. Destroyed c. Incremented d. Decremented

9. If a node has three fields, then this node will be related to a. Linked list b. Doubly linked list c. Circular linked list d.

  1. ________ is an area in computer memory that is allocated dynamically. a. Heap b. Stack c. Queue d. Linked list
  2. Linked list use _______ to store data. a. Array b. 2-D Array c. Variables

d. Linked Memory

  1. The lifetime of a transient object cannot exceed that of the application. a. True b. False c. d.
  2. To represent hierarchical relationship between elements, which data structure is suitable? a. Dequeue b. Priority c. Stack d. Tree
  3. Local variables of a function are stored in, a. b. Stack c. Queue d. AVL tree
  4. In-order traversal method traverses tha data in a. Non sorted order b. Random order c. Sorted order d.
  5. Dequeue() operation of queue data structure is used to _________ a. Get an element from the front of the queue b. Remove an element from the front and return it c. Insert an element at the front d. Insert an element at the back
  6. In a tree, we link the nodes in such a way that it _________ a linear structure. a. Does not remain b. Forms c. Reverses d. Remains
  7. Factorial is an example of ________ function. a. Recursive b. Non-recursive c. Cube d. Log
  8. All the objects created using _________ operator have to be explicitly destroyed using delete operator. a. New
All CS301 files →
CS301 Data Structures All CS301 handouts, past papers, quizzes and MCQs in one place. Open course page

Get more out of VUBuddy, for free

Android app Free on Google Play
  • Unlimited downloads
  • The explanation behind every MCQ answer
  • Study offline on slow data
Get the Android app
Chrome extension Free on the Chrome Web Store
  • 30 downloads a day instead of 3
  • Sign in and buy Pro Semester here
Add to Chrome

One Pro Semester membership works in both the extension and the app.