Navy Education Society Conduct of Common Preboard Examination For For Navy Children Schools For Class 12 Computer Science
Navy Education Society Conduct of Common Preboard Examination For For Navy Children Schools For Class 12 Computer Science
Navy Education Society Conduct of Common Preboard Examination For For Navy Children Schools For Class 12 Computer Science
General Instructions:
1. This question paper contains two parts A and B. Each part is compulsory.
2. Both Part A and Part B have choices.
3. Part-A has 2 sections:
a. Section – I contains short answer questions, to be answered in one word or
one line and MCQs.
b. Section – II has two case studies questions. Each case study has 4 case-
based sub-parts. An examinee is to attempt any 4 out of the 5 subparts.
4. Part - B is Descriptive section.
5. Part- B has three sections
a. Section-I is short answer questions of 2 marks each in which two question
have internal options.
b. Section-II is long answer questions of 3 marks each in which two questions
have internal options.
c. Section-III is very long answer questions of 5 marks each in which one
question has internal option.
6. All programming questions are to be answered using Python Language only
Part - A
Section-I
Attempt any 15 questions from question no 1 to 21.
7 If T is a tuple containing 1
(“these”, [“are”, “a”, “few”, “words”], “that” ) , What does the following
expression evaluate to ?
“a” in T[1][0]
10 Which out of the following does not come under Cyber Crime? 1
a Copying data from the social networking account of a person without his/her
information & consent.
b Stealing a brand new computer from showroom
c Viewing & transferring funds digitally from a person’s bank account without
his/her knowledge.
d Intentionally making a false account on the name of a celebrity on a social
networking site.
13 Name the transmission media best suitable for connecting hilly areas. 1
17 A list is given as 1
AL= [1,2,3,4,5]
which of the following statement(s) will remove middle element 3 from it so
that the list becomes [1,2,4,5]
a) del AL[2] b) AL[2:2]=[ ] c) a.remove(3) d) a.pop(3)
18 In SQL, which command will you use to list all the tables created inside a 1
database ?
21 Which of the following types of table constraints will prevent the entry of 1
duplicate rows?
a) Unique
b) Distinct
c) NOT NULL
d) NULL
Section-II
Both the Case study based questions are compulsory. Attempt any 4
sub parts from each question. Each question carries 1 mark
22 a Write SQL query to create a table “Job” with the following structure: 1
b Which command will you use to remove a table, including the structure from 1
the database?
d Which is the correct query to delete all values from job table 1
3
i) Delete * from Job
ii) Delete from Job
iii) Delete table Job
iv) Drop table Job
e How will you add a new column J_rate of integer type in Job table 1
23 The following Python script exports the data of all football players from a file
"players.csv" to a new file "football.csv". Assume that the "players.csv" file
stores data of hundreds of players in tabular form under the following heads:
[SNo, Player_name, gender, game, category]
import -----------------------------------//statement1
f1=open("players.csv", "r")
ro=-------------------------------------//statement 2
f2=open("football.csv", "w", newline=")
wo=---------------------------------- // statement3
wo.writerow(["SNo","Player_name","gender","game","category"])
for row in ro:
if(row[3].lower()=="football"):
---------------------------- // statement 4
f1.close()
f2.close()
a Name the module that has to be imported in statement1. 1
Part B
Section 1
24 Find output of the following expressions 2
i) (5<10) and (10<5) or (3<18 ) and not 8<18
ii) 2**(2* (len(‘01’)))
29 What are the possible output(s) from the following code? Also specify 2
maximum and minimum value that can be assigned to NUMBER
30 Rewrite the following code in python after removing all syntax error(s). 2
Underline each correction done in the code.
5
31 Differentiate between fetchmany() and fetchone() functions with an 2
example
Section II
Output
Arr= [0, 20, 0, 40, 0, 11]
iii select Tname, Source from from Train group by Source having count(*)>1;
OR
Section III
38 Rehaana Medicos Center has set up its new centre in Dubai. It has 5
four buildings as shown in the diagram given below:
7
Distance between the buildings are
Number of Computers
ii Suggest the most suitable place (i.e. buildings) to house the server of this
organization with reason
8
v Daniel has to share the data among various computers within accounts
department. Name the network (out of LAN, WAN, PAN and MAN) which is
being formed in this process.
i To display all names from ACCOUNT where the ANAME contains the letter
‘h’ .
ii To display the ANO and AMOUNT of all Deposits and Withdrawals done in
the month of October 2017 from table TRANSACT.
iii To display the last date of transaction (DOT) from the table TRANSACT for
the Accounts having ANO as 103.
iv To display all ANO, ANAME and DOT of those persons from tables
ACCOUNT and TRANSACT who have transaction amount less than or
equal to 3000.
v Display ANO, TYPE and NET AMOUNT from TRANSACT where net
amount is calculated as AMOUNT+(AMOUNT*5)/100
9
40 A binary file EMP.dat has the structure (empid, empname, salary, gender) 5
i) Write a function DISPLAY() to read and display the contents of EMP file
ii) Write a function TRANSFER () to transfer all the records from “EMP.dat”
to “EMP1.dat” , where gender is M.
OR
10