2022Class 1235 marks13 questions
7 of its 13 questions are here. The rest have a figure or are still being checked, so for now they're only in the official PDF.
Sit this paper against the clock, marked by its official answers, or get a new paper like it. Sign in first; practising is part of Pro.
Source: CBSE Board Examination 2022, Class 12 Computer Science (083), published by CBSE. CBSE's ZIP of every set
“Stack is a linear data structure which follows a particular order in which the operations are performed.” What is the order in which the operations are performed in a Stack ? Name the List method/function available in Python which is used to remove the last element from a list implemented stack. Also write an example using Python statements for removing the last element of the list.
Differentiate between the terms Attribute and Domain in the context of Relational Data Model.
Write the definition of a user defined function PushNV (N) which accepts a list of strings in the parameter N and pushes all strings which have no vowels present in it, into a list named NoVowel. Write a program in Python to input 5 words and push them one by one into a list named All. The program should then use the function PushNV() to create a stack of words in the list NoVowel so that it stores only those words which do not have any vowel present in it, from the list All. Thereafter, pop each word from the list NoVowel and display the popped word. When the stack is empty display the message "EmptyStack". For example : If the Words accepted and pushed into the list All are ['DRY', 'LIKE', 'RHYTHM', 'WORK', 'GYM'] Then the stack NoVowel should store ['DRY', 'RHYTHM', 'GYM'] And the output should be displayed as GYM RHYTHM DRY EmptyStack OR Write the definition of a user defined function Push3_5 (N) which accepts a list of integers in a parameter N and pushes all those integers which are divisible by 3 or divisible by 5 from the list N into a list named Only3_5. Write a program in Python to input 5 integers into a list named NUM. The program should then use the function Push 3_5() to create the stack of the list Only3_5. Thereafter pop each integer from the list Only3_5 and display the popped value. When the list is empty, display the message "StackEmpty". For example : If the integers input into the list NUM are : [10, 6, 14, 18, 30] Then the stack Only3_5 should store [10, 6, 18, 30] And the output should be displayed as 30 18 6 10 StackEmpty
Rohan is learning to work upon Relational Database Management System (RDBMS) application. Help him to perform following tasks :