- Type
- Midterm past paper
- Course
- CS301 Data Structures
- Size
- PDF 4.1 MB
- Updated
- 23 Oct 2026
You get 3 free files a day on the website. Add the Chrome extension for 30 a day.
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().)
Related CS301 files
All CS301 files →- CS301 Midterm Highlighted Notes Midterm PDF 1.8 MB
- CS301 Midterm MCQs by Waqar Siddhu Midterm PDF 4.4 MB
- CS301 Midterm Solved Subjective Midterm PDF 247 KB
- CS301 Midterm Past Papers Collection by Sweet Soul Midterm PDF 400 KB
- CS301 Highlighted Handouts by Qalb-e-Momin Highlighted PDF 7.1 MB
- CS301 Solved Quiz by Riz Mughal Quiz PDF 2.9 MB
Get more out of VUBuddy, for free
- Unlimited downloads
- The explanation behind every MCQ answer
- Study offline on slow data
- 30 downloads a day instead of 3
- Sign in and buy Pro Semester here
One Pro Semester membership works in both the extension and the app.