Skip to content
VUBuddy

CS301 Solved Quiz 1 by VUBuddy

Data Structures PDF 475 KBUpdated 23 Oct 2026
Quiz CS301 Solved Quiz 1 by VUBuddy PDF 475 KB
vubuddy.com
Type
Quiz
Course
CS301 Data Structures
Size
PDF 475 KB
Updated
23 Oct 2026
Free download 0 of 3 used today
Download free · 475 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 1, 2, 3 of 8. Download the file for all 8 pages.

WMIg3Q

-- QUIZ 1 SOLVED

Q1. For a perfect binary tree of height 4, what will be the sum of highest of node

  1. 31
  2. 30
  3. 27
  4. 26

Correct answer: 26

Q2. If Ahmed is cousin of Ali and Ali is cousin of Asad then Ahmed is also cousin of Asad. This statement has the following property

  1. Reflexivity
  2. Symmetry
  3. Transitivity
  4. All of the above

Correct answer: Transitivity

Q3. Which one of the following is NOT the property of equivalence relation?

  1. Reflexive
  2. Symmetric
  3. Transitive

WMIg3Q

d) Associative

Q4. The main reason of using heap in priority queue is

  1. Improve performance
  2. Code readable
  3. Less code
  4. Heap can’t be used in priority queues

Correct answer: Improve performance

Q5. The total number of nodes on 10th level of perfect binary tree are

  1. 256
  2. 512
  3. 1024
  4. Can’t be determined

Correct answer: 1024

Q6. Suppose there are 100 elements in an equivalence class, so initially there will be 100 trees, the collection of these trees is called

  1. Cluster
  2. Class
  3. Forest
  4. Bunch

Correct answer: Forest

WMIg3Q

  1. The percolate Down procedure will move the smaller value and bigger value.

a) Left, right b) Right, left c) Down, up

d) Up, down

Q8. For a perfect binary tree of height h, having N nodes, the Sum of height of nodes is

  1. N - h -1
  2. N - 1
  3. N - 1 + h
  4. N - (h - 1)

Correct answer: N - h -1

Q10. Which of the following method is helpful in creating the heap at once?

  1. Insert
  2. Add
  3. Update
  4. percolateDown

Correct answer: percolateDown

Q11. If ahmad is boss of ehsan and ehsan is boss of umer then ahmad is also boss of umer, the above-mentioned relation is

  1. Reflexive
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.