





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 - Question Paper – Multiple Choice Questions and Subjective Questions – 35 Questions – 1 2 3 4 & 5 marks Questions - 9 Pages – Helpful for Students appearing Board Examination and Teachers
Typology: Exams
1 / 9
This page cannot be seen from the preview
Don't miss anything!






General instructions:
The correct syntax of seek()is: [1] (a) file_object.seek(offset [, reference_point]) (b) seek(offset [,reference_point]) (c) seek(offset, file_object) (d)seek.file_object(offset)
What will be the output of the following python expression?print(232) [1] a) 64 b) 256 c) 512 d) 32
The statement which is used to get the numbers of rows fetched by execute() method of cursor [1] a)cursor.rowcount b) cursor.rowcount() c)cursor.allrows() d) cursor.countrows()
is a non-key attribute, whose values are derived from the primary key of some other table. [1] (A) Primary Key (B) Candidate Key (C) Foreign Key (D) Alternate Key
The SELECT statement when combined with clause, returns records without repetition. [1] (A) DISTINCT (B) DESCRIBE (C) UNIQUE (D) NULL 08 .which statement in SQL allows to change the definition of the table is [1] a) alter b) update c)create d) select
c) ('My ', ' is program for you') d) ('My ', ' is ', ' for you')
18. Consider the given expression: not ((True and False) or True) [1] Which of the following will be correct output if the given expression is evaluated? (A) True (B) False (C) NONE (D) NULL
(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]
mycon. #Statement 3 Write the missing statement: Statement1 , Statement2 and Statement OR (a) Predict the output of the code given below: (b) The code given below reads the following record from the tablenamed student and displays only those records who have marks greater than 80: RollNo – integer Name – string Clas – integer Marks – integer Note the following to establish connectivity between Python andMYSQL:
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.