Skip to content
VUBuddy

CS301 Midterm Past Papers by Iqra Azhar

Data Structures PDF 4.1 MBUpdated 23 Oct 2026
Midterm past paper CS301 Midterm Past Papers by Iqra Azhar PDF 4.1 MB
vubuddy.com
Type
Midterm past paper
Course
CS301 Data Structures
Size
PDF 4.1 MB
Updated
23 Oct 2026
Free download 0 of 3 used today
Download free · 4.1 MB

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 7, 8 of 41. Download the file for all 41 pages.

void Student(int& Marks, float& CGPA);

Explanation:

void: Specifies that the function does not return any value. Student: This is the name of the function. int& Marks: Declares Marks as a reference parameter of type int. The & symbol indicates it's a reference, meaning changes to Marks inside the function will affect the original variable passed from the caller. float& CGPA: Declares CGPA as a reference parameter of type float. Similar to Marks, changes to CGPA inside the function will reflect in the original variable. Enqueue (or push/add/insert): Adds an element to the rear (back) of the queue. Dequeue (or pop/remove/delete): Removes and returns the element from the front of the queue. Peek (or front/top): Returns the element at the front of the queue without removing it. (Other valid operations include isEmpty() and size()/length().)

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.