- Type
- Midterm past paper
- Course
- CS301 Data Structures
- Size
- PDF 386 KB
- 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 1, 2, 3 of 13. Download the file for all 13 pages.
Q1. Data Structure?
Lecture 1-22.
Answer: A data structure is a
- Data organization
- Data management
- Data storage format
- Collection of Data values relationship among them Note: Data Security is not include Data Structure
Basic three things associated with data structure
- Space for each data items stores
- Time to perform each basic operation
- Programming effort
Q2. An Array ?
Answer: 1. Array is a special type.
- Collection of data same type
- Identical data types are store
- Cells are contiguous
Note : Size Of Array : int x[6];
x[0],x[1],x[2],x[3],x[4],x[5]
First Address of Array start from “0”
Q3. Ans: A list is the collection of items of same data type
Like : grocery items, integers, names
Most generic of data structure
Moves the “current” pointer to the very first elements
Tail ( )
Moves the “ current” pointer to the very last elements
Next ( )
Move the current position forward one elements
Back ( )
Move the current position backward one element
createList (
Create New List
Copy
Copy List
Clear ( )
Clear all elements of List
Get ( )
Get element of List
Length ( )
Return elements of list
Q4. Double link List ?
Answer: 1. Difficult to move backward
2. Programmer uses two pointers in node ( one point to next and other pint to previous
3. Both pointer ha NULL values
Related CS301 files
All CS301 files →- CS301 Midterm MCQs by Waqar Siddhu Midterm PDF 4.4 MB
- CS301 Midterm Subjective by Talha Sajid Midterm PDF 817 KB
- CS301 Midterm Short Notes by VU Topper RM Midterm PDF 1.3 MB
- CS301 Midterm MCQs by VU Stars Midterm PDF 7.4 MB
- CS301 Highlighted Notes Set 2 Highlighted PDF 1.1 MB
- CS301 Quiz 3 by VU Topper RM Quiz PDF 1 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.