Computer Science Xii Model Test Paper 1
Computer Science Xii Model Test Paper 1
CLASS XII
COMPUTER SCIENCE (083)
Maximum Marks: 70 Time Allowed: 3 hrs
General Instructions:
1. This question paper contains five sections, Section A to E.
2. All questions are compulsory.
3. Section A has 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 Q34 against part c only.
8. All programming questions are to be answered using Python Language only.
SECTION – A
1. State True or False: “Keywords can be used as identifiers in Python.” (1)
2. Which of the following is an invalid identifier in Python? (1)
(a) Roll_No (b) Salary
(c) Account No (d) EmpID
3. Which of the following will delete key-value pair for key = “Red” from a dictionary D1? (1)
(a) delete D1(“Red”) (b) del.D1(“Red”)
(c) del D1[“Red”] (d) del D1
4. What will be the output of the following statement: (1)
print(3-10**2+99/11)
(a) 80 (b) 81
(c) -81 (d) 81.0
5. What will be the output of the following code? (1)
Str1= ‘My name is digital’
Str2=Str1[3:7]
strlen = len(Str2)
print(strlen)
(a) 4 (b) 14
(c) 24 (d) 34
6. Which of the following functions is used to write data in the binary mode? (1)
(a) write (b) output
(c) dump (d) send
7. Fill in the blank: (1)
______ keyword is used to display non-repeated values in MySQL.
(a) Unique (b) Remove
(c) Distinct (d) All
8. Which of the following commands will change row(s) of the table from MySQL database? (1)
(a) REPLACE TABLE (b) CHANGE TABLE
(c) UPDATE (d) ALTER TABLE
Zone Zone
X U
Branch-to-branch distance is:
Zone X to Zone Z 40 m
Zone Z to Zone Y 60 m
Zone Y to Zone X 135 m
Zone Y to Zone U 70 m
Zone X to Zone U 165 m
Zone Z to Zone U 80 m
Number of Computers:
Zone X 50
Zone Z 130
Zone Y 40
Zone U 15
(a) Suggest the most suitable cable layout or Networking Topology of connections between the zones.
(b) Suggest the most suitable place (i.e., Zone) to house the Server of this organization. Give a suitable
reason with justification.
(c) Suggest the placement of the following devices with justification:
(i) Repeater (ii) Hub/Switch
(d) Which is the most economic type of cable for the selected topology?
(e) Suggest a device/software to be installed in each branch to take care of data security.
32. (a) Write the output of the code given below: (2+3)
Val = 100
def display(N):
global Val
Val = 100
if N%2==0:
Val = Val ** N
else:
Val = Val * N
print(Val, end="$")
display(2)
print(Val)