0% found this document useful (0 votes)
25 views12 pages

Computer Science (New) : Code No

The document provides instructions for students appearing for an exam. It mentions the code number, number of pages and questions in the paper. It also provides the time allotted for reading the paper and instructions regarding writing answers. The paper is divided into four sections with varying marks and topics for each section.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
25 views12 pages

Computer Science (New) : Code No

The document provides instructions for students appearing for an exam. It mentions the code number, number of pages and questions in the paper. It also provides the time allotted for reading the paper and instructions regarding writing answers. The paper is divided into four sections with varying marks and topics for each section.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 12

Code No.

91/C
Candidates must write the Code on the
Roll No.
title page of the answer-book.

 Please check that this question paper contains 12 printed pages.


 Code number given on the right hand side of the question paper should be
written on the title page of the answer-book by the candidate.
 Please check that this question paper contains 5 questions.
 Please write down the Serial Number of the question in the answer-book before
attempting it.
 15 minute time has been allotted to read this question paper. The question
paper will be distributed at 10.15 a.m. From 10.15 a.m. to 10.30 a.m., the
students will read the question paper only and will not write any answer on the
answer-book during this period.

COMPUTER SCIENCE (NEW)


Time allowed : 3 hours Maximum Marks : 70

General Instructions :

(i) All questions are compulsory.

(ii) Question paper is divided into four sections  A, B, C and D.


• Section A : Unit-1 30
• Section B : Unit-2 15
• Section C : Unit-3 15
• Section D : Unit-4 10

.91/D 1 P.T.O.
SECTION A
1. (a) Which of the following is not a valid variable name in Python ?
Justify reason for it not being a valid name. 1
(i) 5Radius
(ii) Radius_
(iii) _Radius
(iv) Radius
(b) Which of the following are keywords in Python ? 1
(i) break
(ii) check
(iii) range
(iv) while
(c) Name the Python Library modules which need to be imported to
invoke the following functions : 1
(i) cos()
(ii) randint()
(d) Rewrite the following code in Python after removing all syntax
error(s). Underline each correction done in the code. 2
input('Enter a word',W)
if W = 'Hello'
print('Ok')
else:
print('Not Ok')
(e) Find and write the output of the following Python code : 2
def ChangeVal(M,N):
for i in range(N):
if M[i]%5 == 0:
M[i] //= 5
if M[i]%3 == 0:
M[i] //= 3
L=[25,8,75,12]
ChangeVal(L,4)
for i in L :
print(i, end='#')
.91/D 2
(f) Find and write the output of the following Python code : 3
def Call(P=40,Q=20):
P=P+Q
Q=P–Q
print(P,'@',Q)
return P
R=200
S=100
R=Call(R,S)
print (R,'@',S)
S=Call(S)
print(R,'@',S)

(g) What possible output(s) are expected to be displayed on screen at


the time of execution of the program from the following code ? Also
specify the minimum and maximum values that can be assigned to
the variable End. 2
import random

Colours = ["VIOLET","INDIGO","BLUE","GREEN",
"YELLOW","ORANGE","RED"]

End = randrange(2)+3
Begin = randrange(End)+1
for i in range(Begin,End):
print(Colours[i],end="&")
(i) INDIGO&BLUE&GREEN& (ii) VIOLET&INDIGO&BLUE&
(iii) BLUE&GREEN&YELLOW& (iv) GREEN&YELLOW&ORANGE&

2. (a) Write the names of the immutable data objects from the following : 1
(i) List
(ii) Tuple
(iii) String
(iv) Dictionary
.91/D 3 P.T.O.
(b) Write a Python statement to declare a Dictionary named ClassRoll
with Keys as 1, 2, 3 and corresponding values as 'Reena',
'Rakesh', 'Zareen' respectively. 1

(c) Which of the options out of (i) to (iv) is the correct data type for the
variable Vowels as defined in the following Python statement ? 1
Vowels = ('A', 'E', 'I', 'O', 'U')
(i) List
(ii) Dictionary
(iii) Tuple
(iv) Array

(d) Write the output of the following Python code : 1


for i in range(2,7,2):
print(i * '$')

(e) Write the output of the following Python code : 1


def Update(X=10):
X += 15
print('X = ', X)

X=20
Update()
print('X = ', X)
(f) Differentiate between ‘‘w’’ and ‘‘r’’ file modes used in Python.
Illustrate the difference using suitable examples. 2
(g) A pie chart is to be drawn (using pyplot) to represent Pollution Level
of Cities. Write appropriate statements in Python to provide labels
for the pie slices as the names of the Cities and the size of each pie
slice representing the corresponding Pollution of the Cities as per
the following table : 2
Cities Pollution
Mumbai 350
Delhi 475
Chennai 315
Bangalore 390

OR
.91/D 4
Write the output from the given Python code : 2

import matplotlib.pyplot as plt


Months = ['Dec','Jan','Feb','Mar']
Marks = [70, 90, 75, 95]
plt.bar(Months, Attendance)
plt.show()

(h) Write a function Show_words() in Python to read the content of a


text file 'NOTES.TXT' and display the entire content in capital
letters. Example, if the file contains : 2
"This is a test file"
Then the function should display the output as :
THIS IS A TEST FILE

OR

Write a function Show_words() in Python to read the content of a


text file 'NOTES.TXT' and display only such lines of the file which
have exactly 5 words in them. Example, if the file contains : 2
This is a sample file.
The file contains many sentences.
But needs only sentences which have only 5 words.
Then the function should display the output as :
This is a sample file.
The file contains many sentences :

(i) Write a Recursive function in Python RecsumNat(N), to return the


sum of the first N natural numbers. For example, if N is 10 then the
function should return (1 + 2 + 3 + ... + 10 = 55). 3

OR

.91/D 5 P.T.O.
Write a Recursive function in Python Power(X,N), to return the
result of X raised to the power N where X and N are non-negative
integers. For example, if X is 5 and N is 3 then the function should
return the result of (5)3 i.e. 125. 3

(j) Write functions in Python for PushS(List) and for PopS(List) for
performing Push and Pop operations with a stack of List containing
integers. 4

OR

Write functions in Python for InsertQ(Names) and for


RemoveQ(Names) for performing insertion and removal operations
with a queue of List which contains names of students. 4

SECTION B
3. Fill in the blanks from questions 3(a) to 3(d).

(a) Computers connected by a network across different cities is an


example of ___________ . 1

(b) ___________ is a network tool used to test the download and upload
broadband speed. 1

(c) A ____________ is a networking device that connects computers in a


network by using packet switching to receive, and forward data to
the destination. 1

(d) ___________ is a network tool used to determine the path packets


taken from one IP address to another. 1

(e) Write the full form of the following abbreviations : 2

(i) POP

(ii) VoIP

(iii) NFC

(iv) FTP
.91/D 6
(f) Match the ServiceNames listed in the first column of the following
table with their corresponding features listed in the second column
of the table : 2

Technology Feature
 IP based Protocols (LTE)
1G
 True Mobile Broadband
 Improved Data Services with
2G Multimedia
 Mobile Broadband
 Basic Voice Services
3G
 Analog-based Protocol
 Better Voice Services
4G  Basic Data Services
 First Digital Standards (GSM, CDMA)

(g) What is a secure communication ? Differentiate between HTTP and


HTTPS. 3

(h) Helping Hands is an NGO with its head office at Mumbai and
branches located at Delhi, Kolkata and Chennai. Their Head Office
located at Delhi needs a communication network to be established
between the head office and all the branch offices. The NGO has
received a grant from the national government for setting up the
network. The physical distances between the branch offices and the
head office and the number of computers to be installed in each of
these branch offices and the head office are given below. You, as a
network expert, have to suggest the best possible solutions for the
queries as raised by the NGO, as given in (i) to (iv).

.91/D 7 P.T.O.
Distances between various locations in Kilometres :

Mumbai H.O. to Delhi 1420


Mumbai H.O. to Kolkata 1640
Mumbai H.O. to Chennai 2710
Delhi to Kolkata 1430
Delhi to Chennai 1870
Chennai to Kolkata 1750

Number of computers installed at various locations are as follows :

Mumbai H.O. 2500


Delhi branch 1200
Kolkata branch 1300
Chennai branch 1100

(i) Suggest by drawing the best cable layout for effective


network connectivity of all the Branches and the Head Office
for communicating data. 1

(ii) Suggest the most suitable location to install the main server
of this NGO to communicate data with all the offices. 1

.91/D 8
(iii) Write the name of the type of network out of the following,
which will be formed by connecting all the computer systems
across the network : 1
(A) WAN
(B) MAN
(C) LAN
(D) PAN

(iv) Suggest the most suitable medium for connecting the


computers installed across the network out of the following : 1
(A) Optical fibre
(B) Telephone wires
(C) Radio waves
(D) Ethernet cable
SECTION C
4. (a) Which SQL command is used to add a new attribute in a table ? 1

(b) Which SQL aggregate function is used to count all records of a


table ? 1

(c) Which clause is used with a SELECT command in SQL to display


the records in ascending order of an attribute ? 1

(d) Write the full form of the following abbreviations : 1


(i) DDL
(ii) DML

(e) Observe the following tables, EMPLOYEES and DEPARTMENT


carefully and answer the questions that follow : 2
TABLE : EMPLOYEES TABLE : DEPARTMENT
ENO ENAME DOJ DNO DNO DNAME
E1 NUSRAT 2001-11-21 D3 D1 ACCOUNTS
E2 KABIR 2005-10-25 D1 D2 HR
D3 ADMIN

.91/D 9 P.T.O.
(i) What is the Degree of the table EMPLOYEES ? What is the
cardinality of the table DEPARTMENT ?
(ii) What is a Primary Key ? Explain.

OR

Differentiate between Selection and Projection operations in context


of a Relational Database. Also, illustrate the difference with one
supporting example of each. 2

(f) Write whether the following statements are True or False for the
GET and POST methods in Django : 2
(i) POST requests are never cached.
(ii) GET requests do not remain in the browser history.

(g) Write outputs for SQL queries (i) to (iii), which are based on the
following tables, CUSTOMERS and PURCHASES : 3
Table : CUSTOMERS Table : PURCHASES
CNO CNAME CITIES SNO QTY PUR_DATE CNO
C1 SANYAM DELHI S1 15 2018-12-25 C2O
C2 SHRUTI DELHI S2 10 2018-11-10 C1
C3 MEHER MUMBAI S3 12 2018-11-10 C4
C4 SAKSHI CHENNAI S4 7 2019-01-12 C7
C5 RITESH INDORE S5 11 2019-02-12 C2
C6 RAHUL DELHI S6 10 2018-10-12 C6
C7 AMEER CHENNAI S7 5 2019-05-09 C8
C8 MINAKSHI BANGALORE S8 20 2019-05-09 C3
C9 ANSHUL MUMBAI S9 8 2018-05-09 C9
S10 15 2018-11-12 C5
S11 6 2018-08-04 C7

(i) SELECT COUNT(DISTINCT CITIES) FROM CUSTOMERS;

(ii) SELECT MAX(PUR_DATE) FROM PURCHASES;


(iii) SELECT CNAME, QTY, PUR_DATE FROM CUSTOMERS,
PURCHASES WHERE CUSTOMERS.CNO = PURCHASES.CNO
AND QTY IN (10,20);

.91/D 10
(h) Write SQL queries for (i) to (iv), which are based on the tables :
CUSTOMERS and PURCHASES given in the question 4(g) : 4

(i) To display details of all CUSTOMERS whose CITIES are


neither Delhi nor Mumbai.
(ii) To display the CNAME and CITIES of all CUSTOMERS in
ascending order of their CNAME.
(iii) To display the number of CUSTOMERS along with their
respective CITIES in each of the CITIES.
(iv) To display details of all PURCHASES whose Quantity is
more than 15.

SECTION D

5. (a) An organisation purchases new computers every year and dumps


the old ones into the local dumping yard. Write the name of the most
appropriate category of waste that the organisation is creating every
year, out of the following options : 1
(i) Solid Waste
(ii) Commercial Waste
(iii) E-Waste
(iv) Business Waste

(b) Data which has no restriction of usage and is freely available to


everyone under Intellectual Property Rights is categorised as 1
(i) Open Source
(ii) Open Data
(iii) Open Content
(iv) Open Education

(c) What is a Unique Id ? Write the name of the Unique Identification


provided by Government of India for Indian Citizens. 2

.91/D 11 P.T.O.
(d) Consider the following scenario and answer the questions which
follow : 2
‘‘A student is expected to write a research paper on a topic. The
student had a friend who took a similar class five years ago. The
student asks his older friend for a copy of his paper and then
takes the paper and submits the entire paper as his own research
work.’’
(i) Which of the following activities appropriately categorises
the act of the writer ?
(A) Plagiarism
(B) Spamming
(C) Virus
(D) Phishing
(ii) Which kind of offense out of the following is made by the
student ?
(A) Cyber Crime
(B) Civil Crime
(C) Violation of Intellectual Property Rights

(e) What are Digital Rights ? Write examples for two digital rights
applicable to usage of digital technology. 2

(f) Suggest techniques which can be adopted to impart Computer


Education for
(i) Visually impaired students (someone who cannot write).
(ii) Speech impaired students (someone who cannot speak). 2

.91/D 12

You might also like