





Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Computer Science – Class 12 – Sample Paper – 1 2 3 4 & 5 Marks Questions - 9 Pages - Very Helpful for Students and Teachers
Typology: Exams
1 / 9
This page cannot be seen from the preview
Don't miss anything!






General instructions:
c) ('My ', ' is program for you') d) ('My ', ' is ', ' for you')
(i) Select BRAND_NAME, FLAVOUR from CHIPS where PRICE <> 10; (ii) Select * from CHIPS where FLAVOUR=”TOMATO” and PRICE > 20; (iii) Select BRAND_NAME from CHIPS where price > 15 and QUANTITY < 15; (iv) Select count( distinct (BRAND_NAME)) from CHIPS;
whose destination is KOL.
is present in the given example.
function. The function returns another list named ‘indexList’ that stores the indices of all Non- Zero Elements of L. [3] For example: If L contains [12,4,0,11,0,56] The indexList will have - [0,1,3,5]
[Customer_name, Phone_number, City] Write the following user defined functions to perform given operations on the stack named ‘status’: (i) Push_element() - To Push an object containing name and Phone number of customers who live in Goa to the stack (ii) Pop_element() - To Pop the objects from the stack and display them. Also, display “Stack Empty” when there are no elements in the stack. For example: If the lists of customer details are: [“Ashok”, “9999999999”,”Goa”] [“Avinash”, “8888888888”,”Mumbai”] [“Mahesh”,”77777777777”,”Cochin”] [“Rakesh”, “66666666666”,”Goa”] The stack should contain: [“Rakesh”,”66666666666”] [“Ashok”,” 99999999999”] The output should be: [“Ashok”,”99999999999”] Stack Empty OR Vedika has created a dictionary containing names and marks as key-value pairsof 5 students. Write a program, with separate user-defined functions to perform the following operations: (i) Push the keys (name of the student) of the dictionary into a stack, where the corresponding value (marks) is greater than 70. (ii) Pop and display the content of the stack. The dictionary should be as follows: d={“Ramesh”:58, “Umesh”:78, “Vishal”:90, “Khushi”:60, “Ishika”:95} Then the output will be: Umesh Vishal Ishika SECTION D
students in sub1, sub2, sub3 and their GRADE. After creation of the table, he has entered data of 7 students in the table. [4] Table : RESULT ROLL_ NO SNAME sub1 sub2 sub3 GRAD E 101 KIRAN 366 410 402 I 102 NAYAN 300 350 325 I 103 ISHIKA 400 410 415 I 104 RENU 350 357 415 I 105 ARPITA 100 75 178 IV 106 SABRINA 100 205 217 II 107 NEELIMA 470 450 471 I 103 ISHIKA 400 410 415 I Based on the data given above answer the following questions: (i) Identify the most appropriate column, which can be considered as Primary key. (ii) If two columns are added and 2 rows are deleted from the table result, what will be the new degree and cardinality of the above table? (iii) Write the statements to: a. Insert the following record into the table Roll No- 108, Name- Aaditi, sub1- 470, sub2-444, sub3- 475, Grade– I. b. Increase the sub2 marks of the students by 3% whose name begins with ‘N’. OR (Option for part iii only) (iii) Write the statements to: a. Delete the record of students securing Grade-IV. b. Add a column REMARKS in the table with datatype as varcharwith 50 characters.