Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

COMSATS University Islamabad

Lahore Campus
Sessional II - Examination

Credit
Course Title: Data Structure and Algorithm Course Code: CSC211 4(3,1
Hours:
)
Course Programme
Dr. Farrukh Zeshan BS Software Engineering
Instructor/s: Name:
Semester: 4th Section: Date: Dec. , 2020
Time
75 Mins Maximum Marks: 20
Allowed:
BSE-
Student’s Name: Reg. No.
/LHR
Important Instructions / Guidelines:
● Attempt all questions.

Question-1: Implement the following class (10)

struct node
{
int num;
node * next;
};

class LinkList
{
private:
node * start;
public:
constructAnOrderedList (node *orderedList1, node * orderedList2);
};

Question-2: Implement the following class (10)

struct flightInfo
{
int flightId;
int fuel;
};

const int size = 100;

class PriorityQueue
{
private:
flightInfo FlightQueue[size];
int tail;
int front;
public:
DeQueueFlighFacingEmergency(int FlightNumber);
};

You might also like