Skip to content
VUBuddy

CS301P Final Term Quiz 9 July 2023 by Miss Mehwish

Data Structures (Practical) PDF 745 KBUpdated 23 Oct 2026
Final term past paper CS301P Final Term Quiz 9 July 2023 by Miss Mehwish PDF 745 KB
vubuddy.com
Type
Final term past paper
Course
CS301P Data Structures (Practical)
Size
PDF 745 KB
Updated
23 Oct 2026
Free download 0 of 3 used today
Download free · 745 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 of 3. Download the file for all 3 pages.

We also provide Past papers for Mids. and Finals

Cross Check your answers before submitting directly from the file. We are not responsible for 100% correction as human error exists

Q1. Binary Search Algorithm cannot be applied to:

  1. Array sorted in ascending order
  2. Array sorted in descending order
  3. Array sorted in any order
  4. Linked List

Correct option: d) Linked List

Q2. Which of the following formula gives the index position of the right child of "i"?

  1. 2*i + 1
  2. 2*i
  3. i/2
  4. 2*i + 2

Correct option: a) 2*i + 1

Q3. In Binary Search Algorithm, if the value being searched is greater than "mid", then the updated "low" for the right half of the array will be computed as:

  1. Low = mid - 1
  2. Low = mid + high
  3. Low = mid * 2
  4. Low = mid + 1

Correct option: d) Low = mid + 1

Q4. If we call the union function as union(5, 7), then the name of the new set will be:

  1. 5
  2. 7
  3. 5 + 7
  4. 5 & 7

Correct option: c) 5 + 7

Q5. Which of the following methods takes an array to make a heap out of it?

  1. traverse()
  2. percolatedown()
  3. Buildheap()
  4. Insert()

Correct option: c) Buildheap()

Q6. Which of the following methods takes one element at a time to make a heap?

  1. Insert()
  2. Buildheap()
  3. percolatedown()
  4. traverse()

Correct option: a) Insert()

Q7. Which of the following formulas gives the index position of the left child of "i"?

  1. 2 + i
  2. i/2
All CS301P files →
CS301P Data Structures (Practical) All CS301P 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.