12 - CSC - Rev Ii
12 - CSC - Rev Ii
on condition/criteria.
9 What possible outcome will be produced when the following code is executed? 1
import random
value=random.randint(0,3)
fruit=["APPLE","ORANGE","MANGO","GRAPE"]
for i in range(value):
print(fruit[i],end='##')
print()
a) APPLE## b) APPLE#
ORANGE##
17 Assertion ( A): In SQL, the aggregate function avg() calculates the average 1
Reason ( R): The aggregate functions are used to perform some fundamental
arithmetic tasks such as min(), max(), sum() etc
18 Assertion(A): Python overwrites an existing file or creates a non- existing file 1
For example: If the message is “All the Best for your Pre-board Examination” then the
output should be : E P B A
SECTION - D
31 Consider the table PRODUCT and CLIENT given below: 4
CLIENT
i. Suggest the most appropriate location of the server inside the MUMBAI campus.
Justify your choice.
12 Computer Science Revision Exam-2 6
22iiExamExamination II
ii. Which hardware device will you suggest to connect all the computers within
each building?
iii. Draw the cable layout to efficiently connect various buildings within the MUMBAI
campus. Which cable would you suggest for the most efficient data transfer over
the network?
iv. Is there a requirement of a repeater in the given cable layout? Why/ Why not?
v. What would be your recommendation for enabling live visual communication
between the Admin Office at the Mumbai campus and the DELHI Head Office
from the following options:
a) Video Conferencing
b) Email
c) Telephony
d) Instant Messaging
35 a. Give any two features of SQL. 1+4
b. Write the python code to read the following records from the table named
STUDENT and display only those records which have marks greater than 75:
RollNo – integer
Name – string
Clas – integer
Marks – integer
Note the following to establish connectivity between Python and MYSQL:
Username is root
Password is tiger
The table exists in a MYSQL database named school.