All Saints School, Agra: General Instructions
All Saints School, Agra: General Instructions
Periodic Test-4
Session: 2021-22
Sub: Computer Science (083)
Class: XII
Date:
Time: 1 Hour M.M: 30
General instructions:
● All questions are compulsory.
12. Compare a data type with a data structure. Explain with examples.
14. Write Addnew(Book) and Remove(Book) functions in Python to add a new book and remove a book from the
stack of books, considering them to act as PUSH and POP operations of the stack data structure. Some instructions are
as follows:
Name of the stack is ‘BookData’ and ‘Book’ is the name of the element to be pushed and popped.
17. WAP in python using menu driven choices to perform push, pop and show operations to demonstrate stack
operations using list data type. Use user-defined functions for the same.