Sumita Arora Solution

What is queue

– Queue is a linear data structure– It stores data in FIFO (First In First Out) manner– Data elements are added at rear end and deleted from front endQueue allow following operation:– Enqueue : a new data element is added at the rear end– Dequeue: data element is removed from front end– Peek : viewing

What is queue Read More »

What is stack

– Stack is a linear data structure.– It stores data in LIFO (Last in First Out) manner.– Insertion and Deletion take place at one end.Stack allows following operations:– Push- new data element is added at the top of stack– Pop- data element is removed from the top of the stack– Peek- displaying topmost element of

What is stack Read More »

What is data structure? Name some common data structure

– Data structure is way of organizing, managing, process data in efficient manner.– Data Structure is physical implementation of data.– Data structure helps processor to process and handle large and complex data without any failure.– Data structure allows running a program or implementing operation at minimum time.– Data structure allows to minimum memory space to

What is data structure? Name some common data structure Read More »

What role is played by modes in file operations? Describe the various file mode constants and their meanings.

Mode determines the type of operation (such as reading data from file, writing data from file, closing file )to be done on data file. It tells how the data file will be used after opening it. File Mode Description Purpose “r” Read only Open file in read only mode. “w” Write only Existing data of

What role is played by modes in file operations? Describe the various file mode constants and their meanings. Read More »

error: Content is protected !!
Scroll to Top