Class: XII Session: 2023-24
Computer Science (083)
Time allowed: 3 Hours Maximum Marks: 70
General Instructions:
Please check this question paper contains 35 questions.
The paper is divided into 4 Sections- A, B, C, D and E.
Section A, consists of 18 questions (1 to 18). Each question carries 1 Mark.
Section B, consists of 7 questions (19 to 25). Each question carries 2 Marks.
Section C, consists of 5 questions (26 to 30). Each question carries 3 Marks.
Section D, consists of 3 questions (31 to 33). Each question carries 5 Marks.
Section E, consists of 2 questions (34 to 35). Each question carries 4 Marks.
All programming questions are to be answered using Python Language only.
Ques. Question Marks
No.
SECTION A
1 State True or False: 1
“In a Python program, if a break statement is given in a nested loop, it
terminates the execution of all loops in one go.”
2 In a table in MYSQL database, an attribute A of datatype varchar(20) 1
has the value “Keshav”. The attribute B of datatype char(20) has
value “Meenakshi”. How many characters are occupied by attribute A
and attribute B?
a. 20,6 b. 6,20
c. 9,6 d. 6,9
3 What will be the output of the following statement: 1
print(3-2**2**3+99/11)
a. 244 b. 244.0
c. -244.0 d. Error
4 Select the correct output of the code: 1
[1]
, Options:
a. PYTHON-IS-Fun
b. PYTHON-is-Fun
c. Python-is-fun
d. PYTHON-Is -Fun
5 In MYSQL database, if a table, Alpha has degree 5 and cardinality 3, and 1
another table, Beta has degree 3 and cardinality 5, what will be the
degree and cardinality of the Cartesian product of Alpha and Beta?
a. 5,3 b. 8,15
c. 3,5 d. 15,8
6 Riya wants to transfer pictures from her mobile phone to her laptop. She 1
uses Bluetooth Technology to connect two devices. Which type of
network will be formed in this case?
a. PAN b. LAN
c. MAN d. WAN
7 Which of the following will delete key-value pair for key = “Red” from a 1
dictionary D1?
a. delete D1("Red")
b. del D1["Red"]
c. del.D1["Red"]
d. D1.del["Red"]
8 Consider the statements given below and then choose the correct output 1
from the given options:
pride="#G20 Presidency"
print(pride[-2:2:-2])
[2]
, Options
a. ndsr
b. ceieP0
c. ceieP
d. yndsr
9 Which of the following statement(s) would give an error during execution 1
of the following code?
tup = (20,30,40,50,80,79)
print(tup) #Statement 1
print(tup[3]+50) #Statement 2
print(max(tup)) #Statement 3
tup[4]=80 #Statement 4
Options:
a. Statement 1
b. Statement 2
c. Statement 3
d. Statement 4
10 What possible outputs(s) will be obtained when the following code is 1
executed?
Options:
a.
RED*
WHITE*
BLACK*
[3]