Class Xii Centum Phase-Ii CS QP 29-11-2024
Class Xii Centum Phase-Ii CS QP 29-11-2024
General Instructions:
Q No Section - A Marks
(21 x 1 = 21 Marks)
1 State True or False 1
Digits are one of the parts of the Python character set
2 Identify the statement(s) from the following options which will raise 1
TypeError exception(s):
a) print('5') b) print( 5 * 3)
c) print('5' +3) d) print('5' + '3')
3 The........clause can group records on the basis of common values in a field. 1
(a) AGGREGATE (b) GROUP
(c) GROUP BY (d) JOIN
14 Which of the following will be the output of the statement given below? 1
print([12,34,56,78,90].pop())
(a) 78 (b) 90
(c) 12 (d) 12,34,56,78,90
15 The...........function returns True if all the characters in a string are digits. 1
(a) isalnum() (b) isdigit()
(c) isnumber() (d) isalpha()
18 While opening a binary file the.........character has to be added to the mode of opening. 1
(a) b (b) x
(c) u (d) b*
19 Which of the following operator cannot be used with string data type? 1
(a) + (b) in
(c) * (d) /
Q 20 and Q 21 are Assertion(A) and Reason(R) based questions. Mark the
correct choice as:
(A)Both A and R are true and R is the correct explanation for A
(B)Both A and R are true and R is not the correct explanation for A
(C)A is True but R is False
(D)A is False but R is True
20 Assertion (A): LIKE operator is used for pattern matching in WHERE clause. 1
Reason (R): % and _ wildcard is used in LIKE operator for making a pattern.
21 Assertion (A) In a cross join the number of records in the output will be the 1
maximum.
Reason (R) A cross join is also called a Cartesian product.
Q No Section -B Marks
(7 x 2 = 14 Marks)
22 Categorize the following commands as DDL or DML: 2
INSERT, UPDATE, ALTER, DROP
23 Predict the output : 2
dic = {‘a’:1, ‘b’:2, ‘c’:3, ‘d’:4}
print(dic)
if ‘a’ in dic :
del dic[‘a’]
print(dic)
24 Differentiate between Drop and Delete commands of MYSQL. Write its syntax 2
Q No Section - C Marks
(3 x 3 = 14 Marks)
29 Difference between Where and Having Clause in mysql. 3
Q No Section - E Marks
(2 x 5 = 10 Marks)
36 SQL queries (i) to (iii) based on the relations EMPLOYEE and SALGRADE given 5
below: