Login


Lost your password?

Don't have an account ?
Register (It's FREE) ×
  


Shop
CPP All : Queues


Exam Paper Problems

03C #5665

( As In Exam - CBSE12A-2016 )

Write the definition of a member function DELETE() for a class QUEUE in C++,

Write the definition of a member function DELETE() for a class QUEUE in C++, to remove a product from a dynamically allocated Queue of products considering the following code is already written as a part of the program.

struct PRODUCT
{
  int PID; char PNAME[20];
  PRODUCT *Next;
};
class QUEUE
{
  PRODUCT *R,*F;
public:
  QUEUE(){R=NULL;F=NULL;}
  void INSERT();
  void DELETE();
  ~QUEUE();
};

03D #5714

( As In Exam - CBSE12A-2018 )

Write the definition of a member function AddPacket() for a class QUEUE in C+

Write the definition of a member function AddPacket() for a class QUEUE in C++, to remove/delete a Packet from a dynamically allocated QUEUE of Packets considering the following code is already written as a part of the program.

struct Packet
{
  int PID;
  char Address[20];
  Packet *LINK;
};
class QUEUE
{
  Packet *Front, *Rear;
public:
  QUEUE(){Front=NULL;Rear=NULL;}
  void AddPacket();
  void DeletePacket();
  ~QUEUE();
};

03D #6041

( As In Exam - CBSE12D-2017 )

Write the definition of a member function ADDMEM() for a class QUEUE in C++,

Write the definition of a member function ADDMEM() for a class QUEUE in C++, to add a MEMBER in a dynamically allocated Queue of Members considering the following code is already written as a part of the program.

struct Member
{
  int MNO;
  char MNAME[20];
  Member *Next;
};
class QUEUE
{
  Member *Rear,*Front;
public:
  QUEUE(){Rear=NULL;Front=NULL;}
  void ADDMEM();
  void REMOVEMEM();
  ~QUEUE();
};

03C-2016 #6170

( As In Exam - CBSE12D-2016 )

Write the definition of a member function INSERT() for a class QUEUE in C++,

Write the definition of a member function INSERT() for a class QUEUE in C++, to insert an ITEM in a dynamically allocated Queue of items considering the following code is already written as a part of the program.

struct ITEM
{
  int INO; char INAME[20];
  ITEM *Link;
};
class QUEUE
{
  ITEM *R,*F;
public:
  QUEUE(){R=NULL;F=NULL;}
  void INSERT();
  void DELETE();
  ~QUEUE();
};



Exam Paper Problems:4 
×
Introductory Sessions Beginning to Program Tokens Keyword and Identifiers Data Types Variables and Constants Operators Simple User Input Building Expressions and Formulas Simple Real World Problems Simple If and If Else Multiple-Nested-Ladder of If Else Switch case selection Simple Loops Tricks in Loops - break continue scope Loop Applications - Handling numerals Series printing loops Nested Loops Pattern printing loops Number Varieties and Crunches String Handling (Null Terminated) Strings - string class type Functions (Built-in) Functions - user defined Functions Reference Passing/Returning Arrays Concepts and 1-D Arrays Array Data Management Two dimensional arrays and Matrices Structures Basics Structures passing/returning 2D Array Memory Addressing Display Using IO Manipulation Display Using C Formatting Tricks User Defined Data Types Enumerated Types Preprocessor Directives And Macros Exception Handling Programming Paradigms and OOPs Advantages Abstraction and Encapsulation Polymorphism Inheritance Function Overloading Concepts Function Overloading Varieties Function Overloading Special Cases Defining Classes Creating and Using Class Objects Class Members Accessibility Class Function Types Inline Functions Constant Functions Nesting of Functions Class Members Scope Resolution Static Members in a Class Array of Objects Constructor Concepts Default Constructor Parameterized Constructor Copy Constructor Constructor Overloading Destructors Inheritance Fundamentals Public Derivations Private and Protected Derivations Multiple Inheritance Multi-Level Inheritance Class Nesting Data File Concepts Handling Text Files Handling Binary Files Pointer Concepts Pointer and Arrays Pointers and Functions Object Pointers This Pointer Linked Lists Stacks Queues


Back