Professional Documents
Culture Documents
CLASS- XII
SUB : COMPUTER SCIENCE( 083 )
Time : 3 Hours Maximum Marks : 70
General Instructions:-
1. This question paper contains five sections, Section A to E.
2. All questions are compulsory.
3. Section A have 18 questions carrying 01 mark each.
4. Section B has 07 Very Short Answer type questions carrying 02 marks each.
5. Section C has 05 Short Answer type questions carrying 03 marks each.
6. Section D has 03 Long Answer type questions carrying 05 marks each.
7. Section E has 02 questions carrying 04 marks each. One internal choice is
given in Q35 against part c only.
8. All programming questions are to be answered using Python Language only.
SECTION A
1. State True or False: 1
In a Python code, the comments are given by using * and ** signs.
2. The data type of an expression float(m)/int(n) will result in: 1
(a) int (b) float (c) int or float (d) None of these
19. Rewrite the following code in Python after removing all syntax error(s). 2
Underline each correction done in the code.
value=30
for res in range(0, value)
If res%4==0:
print(res*4)
Elseif res%5==0:
print(res+3)
Else:
print(res+10)
20. Write two points of difference between Hub and Switch. 2
OR
Administrative Block
(b) The code given below intends to delete a record from the table
„Employee‟ available in the database „Company‟, whose „Dept‟ is „Elect‟
and Grade is „G4‟. Write the following missing statements to complete
the code:
Statement 1-To form the cursor object
Statement 2-To execute the command that will delete the desired record
from the table „Employee‟.
Statement 3-To make the changes after deletion of record permanently in
the database.
import mysql.connector as mycon
mydb=mycon.connect(host=„localhost‟, database=„Company‟,
user= „root‟, passwd= „1234‟)
mycursor=______________ #Statement 1
mycursor.execute ( _______________________ ) #Statement 2
mydb.____________ #Statement 3
OR
(a) Predict the output of the following program snippet.
x=5
def func2():
x=3
x=x+1
print(float(x),end=„$‟)
func2()
print(x)
SECTION E
34. Observe the following table and answer the parts (a) to (c): 1+1+
2