Advanced C Programming and Introduction to Data Structures

Similar documents
V.S.B ENGINEERING COLLEGE DEPARTMENT OF INFORMATION TECHNOLOGY I IT-II Semester. Sl.No Subject Name Page No. 1 Programming & Data Structures-I 2

CS PROGRAMMING & ATA STRUCTURES I. UNIT I Part - A

DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING UNIT-1

CSCI 171 Chapter Outlines

DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING B.E SECOND SEMESTER CS 6202 PROGRAMMING AND DATA STRUCTURES I TWO MARKS UNIT I- 2 MARKS

B.V. Patel Institute of Business Management, Computer & Information Technology, Uka Tarsadia University

1 P a g e A r y a n C o l l e g e \ B S c _ I T \ C \

Scheme G. Sample Test Paper-I. Course Name : Computer Engineering Group Course Code : CO/CD/CM/CW/IF Semester : Second Subject Tile : Programming in C

CS PROGRAMMING & DATA STRUCTURES. UNIT I Part - A. 2. What is the difference between if and while statement?

Code No: R Set No. 1

For Solved Question Papers of UGC-NET/GATE/SET/PGCET in Computer Science, visit

Unit IV & V Previous Papers 1 mark Answers

CHARUTAR VIDYA MANDAL S SEMCOM Vallabh Vidyanagar

MULTIMEDIA COLLEGE JALAN GURNEY KIRI KUALA LUMPUR

Subject: PROBLEM SOLVING THROUGH C Time: 3 Hours Max. Marks: 100

MCA SEM-II Data Structure

Introduction to Computer Science Midterm 3 Fall, Points

MODULE 5: Pointers, Preprocessor Directives and Data Structures

Standard File Pointers

Linked List. April 2, 2007 Programming and Data Structure 1

Reg. No. : Question Paper Code : 27157

Contents. A Review of C language. Visual C Visual C++ 6.0

Quick review of previous lecture Ch6 Structure Ch7 I/O. EECS2031 Software Tools. C - Structures, Unions, Enums & Typedef (K&R Ch.

UNIT IV-2. The I/O library functions can be classified into two broad categories:

PERIYAR CENTENARY POLYTECHNIC COLLEGE Periyar Nagar- Vallam Thanjavur

I BCA[ ] SEMESTER I CORE: C PROGRAMMING - 106A Multiple Choice Questions.

List of Practical for Class XII Computer Science

IMPORTANT QUESTIONS IN C FOR THE INTERVIEW

Questions Bank. 14) State any four advantages of using flow-chart

C programming basics T3-1 -

Euclid s algorithm, 133

SAURASHTRA UNIVERSITY

1. Two main measures for the efficiency of an algorithm are a. Processor and memory b. Complexity and capacity c. Time and space d.

Functions BCA-105. Few Facts About Functions:

Unit 6 Files. putchar(ch); ch = getc (fp); //Reads single character from file and advances position to next character

Kurt Schmidt. October 30, 2018

Computer Programming Unit v

Lectures 5-6: Introduction to C

C: Pointers. C: Pointers. Department of Computer Science College of Engineering Boise State University. September 11, /21

A. Year / Module Semester Subject Topic 2016 / V 2 PCD Pointers, Preprocessors, DS

Pointers and File Handling

VALLIAMMAI ENGINEERING COLLEGE SRM NAGAR, KATTANGULATHUR

IV Unit Second Part STRUCTURES

17CS33:Data Structures Using C QUESTION BANK

3.3 Structures. Department of CSE

1 P age DS & OOPS / UNIT II

Mode Meaning r Opens the file for reading. If the file doesn't exist, fopen() returns NULL.

C Syntax Arrays and Loops Math Strings Structures Pointers File I/O. Final Review CS Prof. Jonathan Ventura. Prof. Jonathan Ventura Final Review

CS6202 PROGRAMING AND DATASTRUCTURE-I

Introduction to C Language (M3-R )

M1-R4: Programing and Problem Solving using C (JULY 2018)

DC54 DATA STRUCTURES DEC 2014

Darshan Institute of Engineering & Technology for Diploma Studies Unit 6

CP2 Revision. theme: dynamic datatypes & data structures

Lists (Section 5) Lists, linked lists Implementation of lists in C Other list structures List implementation of stacks, queues, priority queues

E.G.S. PILLAY ENGINEERING COLLEGE (An Autonomous Institution, Affiliated to Anna University, Chennai) Nagore Post, Nagapattinam , Tamilnadu.

MPATE-GE 2618: C Programming for Music Technology. Syllabus

HIGH LEVEL FILE PROCESSING

Advanced C Programming Topics

Dynamic Data Structures

M3-R4: PROGRAMMING AND PROBLEM SOLVING THROUGH C LANGUAGE

C-LANGUAGE CURRICULAM

C Programming. Course Outline. C Programming. Code: MBD101. Duration: 10 Hours. Prerequisites:

FORTH SEMESTER DIPLOMA EXAMINATION IN ENGINEERING/ TECHNOLIGY- OCTOBER, 2012 DATA STRUCTURE

Procedural programming with C

Lectures 5-6: Introduction to C

UNIT I : OVERVIEW OF COMPUTERS AND C-PROGRAMMING

SAE1A Programming in C. Unit : I - V

Systems Programming. 08. Standard I/O Library. Alexander Holupirek

Content. Input Output Devices File access Function of File I/O Redirection Command-line arguments

MODULE V: POINTERS & PREPROCESSORS

Computer Systems and Networks


advanced data types (2) typedef. today advanced data types (3) enum. mon 23 sep 2002 defining your own types using typedef

Objective Questions for Online Practical Exams under CBCS Scheme Subject: Data Structure-I (CS-113)

THE C STANDARD LIBRARY & MAKING YOUR OWN LIBRARY. ISA 563: Fundamentals of Systems Programming

ENG120. Misc. Topics

The Waite Group's. New. Primer Plus. Second Edition. Mitchell Waite and Stephen Prata SAMS

C Refresher, Advance C, Coding Standard, Misra C Compliance & Real-time Programming

COMPUTER APPLICATION

MARKS: Q1 /20 /15 /15 /15 / 5 /30 TOTAL: /100

Guide for The C Programming Language Chapter 5

M4.1-R3: PROGRAMMING AND PROBLEM SOLVING THROUGH C LANGUAGE

The Foundation of C++: The C Subset An Overview of C p. 3 The Origins and History of C p. 4 C Is a Middle-Level Language p. 5 C Is a Structured

Darshan Institute of Engineering & Technology for Diploma studies Unit 4

[0569] p 0318 garbage

EC8393FUNDAMENTALS OF DATA STRUCTURES IN C Unit 3

Preface... (vii) CHAPTER 1 INTRODUCTION TO COMPUTERS

A3-R3: PROGRAMMING AND PROBLEM SOLVING THROUGH 'C' LANGUAGE

PESIT Bangalore South Campus Department of MCA Course Information for

Lab # 4. Files & Queues in C

POINTERS, STRUCTURES AND INTRODUCTION TO DATA STRUCTURES

VALLIAMMAI ENGINEERING COLLEGE

FORM 1 (Please put your name and section number (001/10am or 002/2pm) on the scantron!!!!) CS 161 Exam II: True (A)/False(B) (2 pts each):

Bharati Vidyapeeth s College Of Engineering for Women Pune-43 Department E & TC. SE- Unit Test I Subject-DS

Writing an ANSI C Program Getting Ready to Program A First Program Variables, Expressions, and Assignments Initialization The Use of #define and

Chapter 10. File Processing 248 FILE PROCESSING

Aryan College. Fundamental of C Programming. Unit I: Q1. What will be the value of the following expression? (2017) A + 9

Input / Output Functions

The time and space are the two measure for efficiency of an algorithm.

Transcription:

FYBCA Semester II (Advanced C Programming and Introduction to Data Structures) Question Bank Multiple Choice Questions Unit-1 1. Which operator is used with a pointer to access the value of the variable whose address is contained in the pointer? A. Address (&) C. Indirection (*) B. Assignment (=) D. Selection (->) 2. int a, *p = &a; Which of the following statement will not add 1 to a variable? A. a++; C. *p = *p + 1; B. a += 1; D. *p++; 3. Given the following declarations: int x; double d; int *p; double *q; Which of the following expression is allowed? A. p = &x; C. q = &x; B. p = &d; D. p = x; 4. Which of the following defines a pointer variable to an integer? A. int &ptr; C. int **ptr; B. int *ptr; D. int &&ptr; 5. Which of the following defines and initializes a pointer to the address of x? A. int *ptr = *x; C. int *ptr = &x; B. int &ptr = *x; D. int *ptr = ^x; 6. Pointers to pointers is a term used to describe A. Any two pointers that point to the same variable B. Any two pointers that point to variables of the same type C. Pointers used as formal parameters in a function header D. Pointers whose contents are the address of another pointer 7. Given the definitions shown below, which answer is not valid? int i; float f; int *pd; float *pf; A. pd = pf; C. i = 5; B. pd = &i; D. pf = &f; 8. If a is declared as integer, which of the following statement is false? A. The expression *&a and a are the same. B. The expression *&a and &*a are the same. C. The expression int *p = &a is valid. D. printf( %d,*&a); will print value of a. Page: 1 of 13

9. Which of the following statements about pointers and arrays is true? A. The only way to reference data in array is with index operator. B. The name of the array is a pointer variable. C. The following expressions are identical when ary is an array: ary and &ary[0] D. The following expressions are identical when ary is an array: *ary and &ary[0] 10. Which of the following is not a C memory allocation function? A. malloc() C. calloc() B. realloc() D. alloc() 11. Which of the following statements about releasing memory allocation is false? A. To ensure that allocated memory is released, it should be freed before the program ends. B. It is an error to dereference a pointer to allocated memory after the memory has been released. C. Memory should be freed as soon as it is no longer needed. D. Only one call to free is necessary to release an entire array allocated with calloc. 12. If ary is name of an integer array with 10 elements then which of the following statement is false? A. The two expressions *(ary + 5) and ary[5] are same B. Name of array ary is a pointer constant to the first element of array. C. The two expressions ary and &ary[0] are same. D. If p is an integer pointer variable then p=ary; is invalid statement. 13. Which of the following statements about pointer arithmetic is not true? A. A pointer variable can not be pre-fixed or post-fixed with increment or decrement operators. B. An integer value may be added or subtracted from a pointer variable. C. When two pointers point to the same array, one pointer variable can be subtracted from another. D. Comparison is valid with two pointers that point to the same array. 14. Given the following prototype for sum function and the definitions shown below: int sum (int *, int *); int i = 2; int j = 4; int *pi = &i; int *pj = &j; Indicate which of the following function call to sum is not valid? A. j = sum (&i, &j); C. i = sum (2, 10); B. i = sum (pi, &j); D. J = sum (pi, pj); Page: 2 of 13

15. Which of the following pointer expression is not wrong? A. y = *p1 * * p2; B. Comparison like: p1>p2, p1==p2, and p1! =p2 C. sum+=*p2; D. z =5* - *p2 / *p1; Unit-2 16. Given a structure variable named stu which is of type struct STU and contains a field named major, which of the following statements correctly refers to major? A. major C. stu.major B. stu-major D. STU.major 17. Which of the following statement is not true about structure? A. A field in a structure can itself be a structure. B. Individual members of a structure can be passed to the function. C. Structure definition is just a template which is used to declare variables of type struct. D. A structure can not have two fields with same type. 18. Given a pointer ptr to a structure stu containing a field called name which of the following statements correctly refer name? A. ptr->name C. ptr->stu.name B. ptr.name D. ptr->stu->name 19. Which of the following is not a derived data type? A. Arrays C. Pointers B. Float D. Structure 20. Which of the following allows a portion of memory to be shared by different types of data? A. Array C. Union B. Structure D. File Answer: 21. Determine which of the following statement is true? A. A union can have another union as one of the fields. B. When accessing the fields of a structure through a pointer p, (*p).field_name and p->field_name both are same. C. A structure can have another structure as one of the fileds. D. A structure can not have an array as one of its elements. Page: 3 of 13

22. Determine which of the following statement is false? A. A structure can be initialized when it is defined. B. The following two expressions are same if ptr is a pointer to structure: *p.x and p->x C. We can access the members of a structure using member operator. D. We can access the members of a structure through a pointer using member selection operator. 23. Which of the following statement is true for structures? A. A structure can be copied to another structure of same type using assignment operator. B. Structure definition that does not contain tag can be used in future to create variables of type structure. C. If ptr is a pointer to structure student then ptr->filed_name is used to refer a member of structure student. D. Definition of structure variable does not reserve space in memory. 24. Which of the following method is not valid to send information in a structure to a function? A. Pass each member of the structure as an actual argument B. Pass copy of entire structure C. Pass structure definition D. Pass address of structure 25. Which of the following can be used to create a new type that can be used anywhere a type is permitted? A. typedef C. struct B. array D. Both struct and typedef 26. Which of the following statement is false about structure? A. Structure can be nested. B. Structure can have many members of same or different data types. C. All elements of array of structure are not created in continuous memory locations. D. Array of structure ca be created. 27. Consider following declaration: struct employee { int eno; char enm[20]; struct { int bsal; float bonus; } salary, sal; }e1; Which of the following statement is false? Page: 4 of 13

A. Above declaration is wrong. It will give error. B. We can refer bonus with e1.salary.bonus as well as e1.sal.bonus. C. We can refer eno with e1.sal. D. salary and sal both can be used to refer members of inner structure. 28. Which of the following statement is true about union? A. We can initialize all members of union. B. If you fill in a member of one type and then try to use a different type, you can get unpredictable results. C. All union members can not be accessed at the same time. D. Size of a union is equal to total of size of all members. 29. Structures can not be initialized at A. Run time by taking input from user B. Run time by assignment statement C. Compile time at time of declaration of structure variable D. Compile time within structure definition using assignment statement 30. Which of the following statement is false? A. Each variable / data field within a structure is called a member of the structure OR structure elements. B. Definition of structure describes a format called template that can be used later in a program to declare structures. C. Individual structure members can be accessed like other variables because they are like variable. D. Structure variables are known as an instance. 31. What are two predefined FILE pointers in C? A. stdout and stderr C. stdout and stdio B. console and error D. stdio and stderr 32. Code: FILE *f = fopen( filename, "r" ); readdata( f ); if(???? ) { puts( "End of file was reached" ); } Which one of the following can replace the???? in the code above to determine if the end of a file has been reached? A. feof( f ) C. eof( f ) B. f == NULL D.!f 33. f = fopen( filename, "r" ); Referring to the code above, what is the proper definition for the variable f? A. FILE f; C. struct FILE f; B. FILE *f; D. int f; Page: 5 of 13

34. Which one of the following is valid for opening a file for only reading? A. fileopen (filenm, "r"); C. fopen (filenm, "r"); B. fileopen (filenm, "ra"); D. fopen (filenm, "read"); 35. What is a proper method of opening a file test.bin for writing as binary file? A. FILE *f = fwrite( "test.bin", "b" ); B. FILE *f = fopenb( "test.bin", "w" ); C. FILE *f = fopen( "test.bin", "wb" ); D. FILE *f = fopen( "test.bin", "write" ); 36. fputs function is used to i. write characters to a file ii. takes 2 parameters iii. returns a character iv. requires a file pointer A. all are true C. only i and ii are true B. all are false D. only i,ii and iv are true Unit-3 37. Files are a type of Data Structure. A. Linear C. Non-Primitive B. Primitive D. Non-Linear 38. Which of the following data structures are indexed structures? A. linear arrays C. Both A and B B. linked lists D. None of these 39. Two dimensional arrays are also called? A. tables arrays C. both A and B B. matrix arrays D. None of these 40. A variable P is called pointer if? A. P contain the value of element DATA B. P contains the address of an element DATA. C. P contain the value of element DATA and the address of DATA D. P can store only constant memory address and it can not be changed 41. Which of the following data structure store the homogeneous data elements?? A. Arrays C. Pointers B. Records D. None of these Page: 6 of 13

42. The difference between linear array and a record is? A. An array is suitable for homogeneous data but the data items in a record may have different data type B. In a record, there may not be a natural ordering in opposed to linear array. C. A record form a hierarchical structure but a linear array does not. D. All of above 43. When new data are to be inserted into a data structure, but there is no available space; this situation is usually called? A. underflow C. housefull B. overflow D. saturated 44. The term "push" and "pop" is related to the? A. array C. stacks B. queue D. All of these 45. A data structure where elements can be added or removed at either end but not in the middle? A. Linked lists C. Queues B. Stacks D. Deque 46. A stack is type of data structure A. Linear C. Both (A) and (B) B. Non-Linear D. None of the Above 47. Which of the following statement is FALSE for the Stack data structure? A. Its nature is LIFO C. It is a non- primitive data structure B. Its nature is FIFO D. It is a Linear data structure 48. A data structure in which insertion and deletion of an elements occurs at only one end is known as. A. Queue C. Tree B. Stack D. Graph 49. Which of the following is an operation of a Stack data structure? A. Top C. Peep B. Bottom D. None of the Above 50. Which of the following is an operation of a Stack data structure? A. Push C. Peep B. Change D. All of the Above Page: 7 of 13

51. An operation that is used to insert an element on a stack is known as. A. Push C. Peep B. Pop D. Change 52. An operation that is used to delete an element from a stack is known as. A. Push C. Peep B. Pop D. Change 53. An operation that is used to give the value of an element at a particular position from a top of a stack is known as. A. Push C. Peep B. Pop D. Change 54. An operation that is used to change the value of an element at a particular position from a top of a stack is known as. A. Push C. Peep B. Pop D. Change 55. Which of the following is TRUE for a Stack data structure? A. Linear C. Both (A) and (B) B. Non-primitive D. None of the Above 56. Which of the following is NOT an application of a Stack data structure? A. Stack Machine C. Evaluation of an Expressions B. Recursion D. Creates a folder Unit-4 57. A linked list is type of data structure? A. Linear C. Both (A) and (B) B. Non-Linear D. None of the Above 58. Which of the following is NOT the type of Singly linked list? A. Two-way list C. Three-way list B. Doubly Linked list D. Circular linked list 59. Which of the following is the type of Singly linked list? A. One-way list C. Three-way list B. Two-way list D. Four-way list 60. A data structure that contains not only a data field but also contains pointer field is known as. A. Queue C. Tree B. Stack D. Linked List Page: 8 of 13

61. A linked list in which last node pointing to the first node is known as. A. Singly linked list C. Circular linked list B. Doubly linked list D. None of the above 62. A storage representation of a linked list in a memory is A. Linear C. Both (A) and (B) B. Non-linear D. Either (A) or (B) 63. Which of the following statement is FALSE for the Queue data structure? A. Its nature is LIFO C. It is a non- primitive data structure B. Its nature is FIFO D. It is a Linear data structure 64. A data structure in which insertion of an element occurs at one end and and deletion of an element occurs at other end is known as. A. Tree C. Queue B. Graph D. Stack 65. A data structure in which insertion and deletion of an elements occurs at both the end is known as. A. Stack C. Priority Queue B. Queue D. Deque 66. Which of the following is TRUE for a Queue data structure? A. Linear C. Both (A) and (B) B. Non-primitive D. None of the Above Page: 9 of 13

Short Questions Unit-1 1. Define: indirection operator, pointer variable 2. Give the concept of pointers to array. 3. Differentiate between * and & operators in pointers. 4. main() { int x = 7; int *y = &x; int *z = &y; *y = 51; (*y)++; (*z)--; } What will be the value of y and z, if any, for the above program segment? 5. Explain realloc function. 6. Differentiate malloc() and calloc(). 7. Explain how compile time and runtime memory allocation process differ? 8. Differentiate: a pointer and a pointer variable 9. List out benefits of pointers. 10. List different pointer declaration style. Which one is preferable? 11. What is scale factor? Explain with example in brief. 12. List out operations that can be performed on pointers. Unit-2 13. Define: structure, member operator 14. Differentiate: structure and union 15. Can entire structure variable be assigned to another structure variable, provided both variables having same structure? Answer with example. 16. Can entire structure variable be passed to a function as an argument? Answer with example. 17. Define a structure called college which contains an integer quantity called college_code and a string called c_name with length 20. Create structure called courses within structure college which contains integer quantity called course_no and a float quantity called class_result. Create one variable called college1 along with definition. 18. Define a union called item consisting of an integer called code, character string called nm and float value called price. Declare union variable called product along with definition. 19. Explain typedef in brief with suitable example. 20. Differentiate. and -> operators. 21. Consider ptr is a pointer pointing to struct stud and rollno is a member of struct stud. Mention two methods of accessing member rollno of struct stud through pointer ptr. 22. Consider ptr is a pointer pointing to struct stud and rollno is a member of struct stud. We can access member rollno of struct stud through pointer ptr using (*ptr).rollno Why we need to use parenthesis around *ptr? 23. What we mean by structure definition? What is the importance of tag in structure definition? 24. List file modes available to manage the file in C. 25. Explain the Append mode with example. 26. Write down the syntax to open the text file both in read and write mode. 27. Explain the fclose() function with example. 28. What do you mean by file pointer? 29. Which functions are used to read the character from the file and write character to the file? 30. Explain function(s) used to read the integer number from the file. 31. Differentiate: append mode and right mode Page: 10 of 13

32. Differentiate: printf and fprintf 33. Differentiate: scanf and fscanf 34. Differentiate: getc and getchar Unit-3 35. Define: Data Structure, Stack 36. Define and explain in brief: Primitive Data Structure 37. What is non-primitive Data Structure? 38. Give the Example of Primitive Data Structure. 39. Give the Example of Non-Primitive Data Structure. 40. What do you mean Linear Data Structure? 41. What do you mean by Non-Linear Data Structure? 42. Draw the Hierarchical Structure of Data Structure. 43. List out different applications of data Structure. 44. Which are the main operations that can be performed on Data Structure? 45. Differentiate: primitive and non primitive data structure 46. What is a Stack? Give examples. 47. State various Applications of Stack. 48. List operations on a Stack. Define ANY ONE of them. 49. Give representation of a Stack data structure. 50. What do you mean by Top and Bottom of a Stack? Unit-4 51. What is a Linked List? How is it represented? 52. State various Applications of Linked List. 53. Describes the different types of Linked List. 54. What is a Singly Linked list? 55. What is a Circular Linked list? 56. What is a doubly Linked list? 57. Differentiate between singly linked list and doubly linked list. 58. What is a Queue? Give examples. 59. State various types of queue. 60. Define: Queue and Deque. 61. Give representation of a Queue data structure. 62. Define : Circular Queue and Priority Queue. 63. Differentiate between stack and queue data structure. Page: 11 of 13

Long Questions Unit-1 1. Define pointer variable. How can we declare and initialize pointer variable? How can we access value of variable through pointer type variable? 2. Define: Pointer. How is it declared? Also explain how arithmetic operations can be performed on the pointer variable by taking example. 3. What are pointers? How can they be used with arrays? Explain pointer to an array using appropriate examples. 4. Explain the importance of pointers in functions by taking suitable example. How pointers can be used to return multiple values to functions? 5. Explain pointer to structure using suitable example. 6. Write a note on Dynamic memory allocation. 7. Explain pointer arithmetic with example. 8. Write note on: pointer to pointer Unit-2 9. What is structure? Explain its definition, declaration and assigning values to members of structure. Also mention advantages of structure over other data types. 10. Explain array of structures using suitable examples. 11. What is union? Explain its definition, declaration and assigning values to members of union. 12. What is union? Explain its storage representation. How a member of union is assigned an initial value? Explain in brief with example. 13. Write note on: structure within structure 14. Explain array within structure using suitable example. 15. Write note on: pointer to structure 16. Explain pointer to structure array using appropriate example. 17. Describe the usage and limitation of function getc and putc. 18. Explain fprintf and fscanf function with example. 19. Explain the all the modes of file management with example. 20. Explain the getw and putw function with example. Unit-3 21. Explain the data structure with c briefly. 22. Write down advantages of data structure. 23. Write a short note on primitive data structure operations. 24. Write a short note on linear data structure. 25. Write a short note on non linear data structure. 26. Explain the linear and non linear data structure briefly. 27. Write an algorithm to insert an element into a Stack. 28. Write an algorithm to delete an element from a Stack. 29. Write an algorithm for Peep operation of a Stack. 30. Write an algorithm for Change operation of a Stack. 31. Explain a STACK with an example. Write along with for various operations performed over a stack. Unit-4 32. Write an algorithm to insert an element at the beginning of a Singly linked list. 33. Write an algorithm to delete an element from a Singly linked list. 34. Write an algorithm to insert an element at the ending of a Singly linked list. 35. Write an algorithm to insert an element into a Singly linked list that maintains ascending order of elements. 36. Write a short note on Singly linked List. 37. Write an algorithm to insert an element into a simple queue. Page: 12 of 13

38. Write an algorithm to delete an element from a simple queue. 39. Explain a Queue with an example. Write along with for various operations performed over a queue. Page: 13 of 13