Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
108 views14 pages

12cs Revision Sunday Test 1 QP

Uploaded by

myappagreat
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)
108 views14 pages

12cs Revision Sunday Test 1 QP

Uploaded by

myappagreat
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/ 14

QCODE : 12CS-SPLT1-242501 R.No.

VEDIC VIDYASHRAM SENIOR SECONDARY SCHOOL


TIRUNELVELI-627 358
(Academic Year : 24-25)
Grade : XII COMPUTER SCIENCE (083) Marks : 100
Time : 3:00 Hrs
Date : BOARD REVISION-1

 5 Sections, Each section has 20 Marks


SECTION A
QNo. Question Mark
1 Identify the invalid Python statement from the following. 0.5
(a) _b=1 (b) __b1= 1 (c) b_=1 (d) 1 = _b
2 Identify the valid arithmetic operator in Python from the following. 0.5
(a) // (b) < (c) or (d) <>
3 If Statement in Python is __ 0.5
(a) looping statement (b) selection statement (c) iterative (d) sequential
4 Predict the correct output of the following Python statement – print(4 + 3**3/2) 0.5
(a) 8 (b) 9 (c) 8.0 (d) 17.5
5 Choose the most correct statement among the following – 0.5
(a) a dictionary is a sequential set of elements
(b) a dictionary is a set of key-value pairs
(c) a dictionary is a sequential collection of elements key-value pairs
(d) a dictionary is a non-sequential collection of elements
6 Consider the string state = ‚Jharkhand‛. Identify the appropriate statement that will display 0.5
the last five characters of the string state?
(a) state [-5:] (b) state [4:] (c) state [:4] (d) state [:-4]
7 What will be the output of the following lines of Python code? 0.5
if not False:
print(10)
else:
print(20)
(a) 10 (b) 20 (c) True (d) False
8 Consider the Python statement: f.seek(10, 1) 0.5
Choose the correct statement from the following:
(a) file pointer will move 10 byte in forward direction from beginning of the file
(b) file pointer will move 10 byte in forward direction from end of the file
(c) file pointer will move 10 byte in forward direction from current location
(d) file pointer will move 10 byte in backward direction from current location
9 Which of the following function returns a list datatype? 0.5
a) d=f.read() b) d=f.read(10) c) d=f.readline() d) d=f.readlines()
10 Identify the device on the network which is responsible for forwarding data from one 0.5
device to another (a) NIC (b) Router (c) RJ45 (d) Repeater
11 A table has initially 5 columns and 8 rows. Consider the following sequence of operations 1
1
performed on the table –
i. 8 rows are added
ii. 2 columns are added
iii. 3 rows are deleted
iv. 1 column is added
What will be the cardinality and degree of the table at the end of above operations?
(a) 13,8 (b) 8, 13 (c) 14,5 (d) 5,8
12 Which of the following constraint is used to prevent a duplicate value in a record? 1
(a) Empty (b) check (c) primary key (d) unique
13 The structure of the table/relation can be displayed using __________ command. 1
(a) view (b) describe (c) show (d) select
14 Which of the following clause is used to remove the duplicating rows from a select 1
statement? or (b) distinct (c) any (d)unique
15 How do you change the file position to an offset value from the start? 1
(a) fp.seek(offset, 0) (b) fp.seek(offset, 1) (c) fp.seek(offset, 2) (d) None of them
16 Which of the following method is used to create a connection between the MySQL 1
database and Python? (a) connector ( ) (b) connect ( ) (c) con ( ) (d) cont ( )
Q17 and 18 are ASSERTION AND REASONING based questions. Mark the correct choice
as
(a) Both A and R are true and R is the correct explanation for A
(b) Both A and R are true and R is not the correct explanation for A
(c) A is True but R is False
(d) A is false but R is True
17 Assertion (A): The function definition calculate(a, b, c=1,d) will give error. 1
Reason (R): All the non-default arguments must precede the default arguments.
18 Assertion (A): CSV files are used to store the data generated by various social media 1
platforms.
Reason (R): CSV file can be opened with MS Excel.
19 The code given below inserts the following record in the table Employee: 3
Emp_id – integer , Ename – string , Date_of_Birth – date , Salary – float
Note the following to establish connectivity between Python and MYSQL:
Username is root , Password is computer
The table exists in a MYSQL database named Employee.
The details (Emp_id, Ename, Date_of_Birth, Salary) are to be accepted from the user.
Write the following missing statements to complete the code:
i. Statement 1 – to form the cursor object
ii. Statement 2 – to execute the command that inserts the record in the
table Employee.
iii. Statement 3- to add the record permanently in the database
import mysql.connector as mycon
def AddRecord():

2
mydb=mycon.connect(host="localhost",user="root", password=
"computer", database="bank")
mycursor= ________________ #Statement 1
Emp_id=int(input("Enter Employee Id: "))
Ename=input("Enter Employee Name : ")
dob=input("Enter Date of Birth : ")
salary=float(input("Enter Salary : "))
qry="insert into Employee values ({},'{}','{}',{})".format (Emp_id,
Ename, dob, salary)
_________________ #Statement 2
_________________ # Statement 3
print("Data Added successfully")
20 Consider the following tables and answer the questions a and b: Table: Garment 4

Table: Cloth

a. What will be output of the following command:


SELECT * FROM GARMENT NATURAL JOIN CLOTH;
b. What will be the output of following commands:
i. SELECT DISTINCT QTY FROM GARMENT;
ii. SELECT SUM(QTY) FROM GARMENT GROUP BY CCODE
HAVING COUNT(*)>1;
iii. SELECT GNAME, CNAME, RATE FROM GARMENT G,CLOTH C
WHERE G.CCODE = C.CCODE AND QTY>100;
iv. SELECT AVG(RATE) FROM GARMENT WHERE RATE BETWEEN
1000 AND 2000;
SECTION B
1 Identify the name(s) from the following that cannot be used as identifiers in 0.5
Python: asaword22, 22ndyear, date26-10-2022, _my_file_2
2 Name the datatype for the following: 0.5
a. ‘True’ b. 2.46E-2
3 Consider the following dictionary: 0.5

3
machine = {‘id’:1001, ‘name’:’UPS’, ‘capacity’:5000, ‘rate’:15000.00}
Write a statement to change the capacity to 4500.
4 What will be the result of following expression: 0.5
10>12 and ‚a‛+1<55
a. True b. False c. Error d. None
5 What will be the output of the following: 0.5
str = ‚Cricket World Cup in Australia‛
str2 = str[:7] + ‛ ‚ + str[18:] + ‚.‛
print(str2)
6 Which of the file opening mode will not create a new file if file does not exist: 0.5
a. r b. W c. a d. There is not such file opening mode
7 Fill in the blank: 0.5
Command used to remove a column/attribute from the table/relation is _________.
a. Update b. Drop c. Alter d. Remove
8 Shridharan created a database namely work. Now he wants to create a table in it. For 0.5
this he needs to open the database he created. Write command to open the database
that is created by Shridharan.
9 What will be the output of the following code: 0.5
address = ‘42/B/III, Van-Vihar Colony, Nagpur’
str = address.replace(‘/’,’@’)
print(address)
10 Fill in the blank: 0.5
The attribute which is a candidate key but not a primary key is known as
_______________________.
11 Which of the following gives the result as string when applied to text file in Python: 1
a. read() b. readline() c. readlines() d. get()
12 When following command is run the result yielded 20 rows: 1
SELECT * FROM Clock; But when following command is run; it yielded 17 rows only:
SELECT name FROM Clock; Can you state the reason for the difference?
13 Which of the following is used for remote login: 1
a. VoIP b. HTTP c. IMAP d. TELNET
14 What will be the output of the following statement: print(30/5+(16+6)) 1
15 Rajiv ran following two commands: SELECT count(commission) FROM Employee; 1
SELECT count(*) FROM Employee; Output of first command is 8 where output of
second command is 14. What is the reason for the difference?
16 After executing any DML command from Python in Python-Mysql connectivity, following 1
is necessary to execute in order to make the changes permanent in MySQL:
a. save() b. store() c. commit() d. update()
Q17 and 18 are ASSERTION AND REASONING based questions. Mark the correct choice
as (a) Both A and R are true and R is the correct explanation for A
(b) Both A and R are true and R is not the correct explanation for A

4
(c) A is True but R is False (d) A is false but R is True
17 Assertion (A): Inside a function if we make changes in a string it will reflect back 1
to the original string.
Reason (R): String is an immutable datatype and it is called by value.
18 Assertion (A): In CSV file there is a blank line after every record. Reason (R): Default 1
value of newline is ‘\n’ in open() statement used with csv file.
19 The code given below extract and display the following record from the table Employee. 3
Note the following to establish connectivity between Python and MYSQL:
Username is root Password is computer The table exists in a MYSQL database named
Employee. The details (Emp_id, Ename, Date_of_Birth, Salary) are present in table.
Write the following missing statements to complete the code:
i. Statement 1 – to form the cursor object
ii. Statement 2 – to retrieve all records from result set object as per query.
iii. Statement 3 - sequence object in the loop to display the records
import mysql.connector as mycon
def ShowRecord():
mydb=mycon.connect(host="localhost", user="root", password=
"computer", database="bank")
mycursor= __________________ #Statement 1
qry="select * from employee where salary>30000"
mycursor.execute(qry)
result=mycursor.____________ #Statement 2
for record in ____________ : #Statement 3
print(record)
20 Consider following tables and write queries for situation a and b. Find the output of c 4
and d:
Table: CLUB

Table: COACHES

5
a. To list names of all coaches with their date of appointment in descending order.
b. To display total pay given to coaches in each sport.
c. SELECT Sportsperson, Coachname FROM Club, Coaches WHERE Coachid =
Coach_no;
d. SELECT Sex, MAX(Dateofapp), MIN(Dateofapp) FROM Club GROUP BY Sex;
SECTION C
1 Line indentation is rigidly enforced in python:
0.5
a) True b) False
2 Find valid identifier among the following: 0.5
a) and b) for_is c) simple-interest d) 4you
3 Suppose a tuple Tup is declared as Tup = (12, 15, 63, 80) 0.5
Which of the following is incorrect?
a) print(Tup[1]) b) Tup[2] = 90
c) print(min(Tup)) d) print(len(Tup))
4 Consider the given expression: not 12 > 6 and 7 < 17 or not 12 < 4 0.5
Which of the following will be correct output if the given expression is evaluated?
a) True b) False c) NONE d) NULL
5 Select the correct output of the given code. 0.5
d1 = {‚abc‛ : 5, ‚def‛ : 6, ‚ghi‛ : 7}
print (d1[0])
a) abc b) 5 c) {‚abc‛:5} d) Error
6 What is meaning of "w+" mode: 0.5
a) Creating a fresh file only b) Open an existing file, first read then write
c) Open a existing file, first write then read
d) Open a new fresh file, first write then read
7 Which among the following is not a function of tuple? 0.5
a) count () b) split() c) max() d) min
8 ________________ method is used to Transfer data from buffer to Permanent 0.5
store in data file handling.
9 Which of the following statement(s) would give an error after executing the 0.5
following code?
G=10,20,30,40 #statement-1
print(G**2) #statement-2
G[1]=35 #statement-3
R=G+(22,) #statement-4
print(R) #statement-5
a) statement -1 and statement-5 b) Statement-2 and statement-3
c) Statement-1 and statement-4 d) Statement-1 only
10 Fill in the blank: The………………… keyword is used to select rows that match specified 0.5
pattern of characters in MySQL.
11 The correct syntax of dump( ) is: 1

6
a) fileobject=dump(dataobject) b) fileobject.dump(dataobject)
c) pickle.dump(dataobject,fileobject) d) pickle.dump(fileobject,dataobject)
12 A result set is extracted from the database using a cursor object by giving the following 1
statement: records=mycursor.fetchall( )
What will be the data type of ‘records’ after the execution of above statement?
13 Fill in the blank: 1
A ………………………… is a networking device that connects computer in a network
by using packet switching to receive and forward data to the destination.
a) Router b) Repeater c) Switch d) Gateway
14 Which among the following is correct output after evaluation of the given expression: 1
>>> 12 - (3 % 4) // 2 + 6 ** 2
a) 46.5 b) 36 c) 12 d) 47
15 Which command is used for counting the number of rows in a database? 1
a) count b) fetchmany c) rowcount d) countrecord
16 readlines( ) method reads the data from the file and returns it into: 1
a) string b) list c) tuple d) file
17 Assertion (A): Function invoked by its name.
Reason (R): A function is a named block of statements.
a) Both A and R is true and R is the correct explanation of A.
b) Both A and R is true but R is not the correct explanation of A.
c) A is true but R is false. d) A is false but R is true. e) Both A and R are false
18 Assertion (A): The csv files can only take comma as delimiter. 1
Reason (R): The comma is the default separator character but other popular
delimiters include the tab (\t), colon (:) and semi-colon (;)
a. Both a and R are true and R is the correct explanation of A.
b. Both a and R are true and R is not the correct explanation of A.
c. A is true but R is false. d. A is false but R is true. e. Both A and R are false.
19 Alok Kumar of class 12 is writing a program to create a CSV file ‚project.csv‛ which will 3
contain student name and project name for some entries. He has written the following
code. As a programmer, help him to successfully execute the given task.
import _____________ # Line 1
def AddProject (StudentName, ProjectName): # to write data into the CSV file
f=open(' project.csv', '________') # Line 2
newFileWriter = csv.writer(f)
newFileWriter.writerow([Sname,Pname])
f.close( )
#csv file reading code
def ReadProject( ): # to read data from CSV file
with open(' project.csv', 'r') as newFile:
newFileReader = csv._________(newFile) # Line 3
for row in newFileReader:

7
print (row[0],row[1])
newFile.______________ # Line 4
AddProject(‚Ranjana‛, ‚Traffic Control System‛)
AddProject(‚Ankit‛, ‚Parking Allotment Problem‛)
AddProject(‚Krishna‛, ‚Billing System‛)
ReadProject( )
i. Name the module he should import in Line 1.
ii. In which mode he has to open the file in Line-2, to add data into the file.
iii. Fill in the blank in Line 3 to read the data from a csv file.
iv. Fill in the blank in Line 4 to close the file.
20 Superior Education Society is an educational Organization. It is planning to setup its 4
Campus at Nagpur with its head office at Mumbai. The Nagpur Campus has 4 main
buildings – ADMIN, COMMERCE, ARTS and SCIENCE. You as a network expert have to
suggest the best network related solutions for their problems raised in a to e, keeping in
mind the distances between the buildings and other given parameters:

Shortest distances between various buildings:


ADMIN to COMMERCE - 55 m
ADMIN to ARTS - 90 m
ADMIN to SCIENCE - 50 m
COMERCE to ARTS - 55 m
COMMERCE to SCIENCE - 50 m
ARTS to SCIENCE - 45 m
MUMBAI Head Office to NAGPUR Campus – 850 KM
Number of Computers installed at various buildings are as follows:
ADMIN – 110
COMMERCE – 75
ARTS – 40
SCIENCE – 12
MUMBAI Head Office – 20
a. Suggest the most appropriate location of the server inside the Nagpur Campus
to get the best connectivity for maximum number of computers. Justify your answer.
b. Suggest and draw the cable layout to efficiently connect various buildings within
the Nagpur campus for connecting the computers.
c. Which of the following will you suggest to establish the online face-to-face

8
communication between the people in the ADMIN office of Nagpur Campus and Mumbai
Head office?
i. Cable TV
ii. E-mail
iii. Video Conferencing
iv. Text Chat
d. Suggest the placement of following devices with appropriate reasons:
i. Switch/Hub
ii. Repeater
e. Suggest the device/software to be installed in Nagpur Campus to take care of
data security and unauthorized access.
SECTION D
1 Python loops can also have else clause(True/False) 0.5
2 Which of the following is not a keyword? 0.5
a) eval b) assert c) nonlocal d) pass
3 What will be the output of the following code snippet ? 0.5
rec={‚Name‛:‛Python‛,‛Age‛:‛20‛,‛Addr‛:‛NJ‛,‛Country‛:‛USA‛}
id1=id(rec); del rec; rec={‚Name‛:‛Python‛,‛Age‛:‛20‛,‛Addr‛:‛NJ‛,‛Country‛:‛USA‛}
id2=id(rec); print(id1==id2)
a) True b) False c)1 d) Exception
4 What is the output of this code? >>>int(‚3‛+‛4‛) 0.5
a) ‚7‛ b)‛34‛ c) 34 d) 24
5 Select the correct output of the code 0.5
x=‛apple,pear,peach‛
y=x.split(‚ , ‚)
for z in y:
print(z)
a) apple,pear,peach b) pear,apple,peach c) peach,apple,pear d) Error
6 To read the next line of the file from a file object infi,we use 0.5
a) infi.read(all) b)infi.read() c)infi.readline() d) infi.readlines()
7 Fill in the Blank: __________is not a legal constraint for a CREATE TABLE command ? 0.5
a) Primary Key b) Foreign Key c) Unique d) Distinct
8 In SQL, Which commamd(s) is(are) used to change a table’s structure/characteristic ? 0.5
a) ATLER TABLE b) MODIFY TABLE c) CHANGE TABLE d) ALL OF THESE
9 Which of the following statement(s) would give error after executing the following code? 0.5
s1=’must’ #statement 1
s2=’try’ #statement 2
n1=10 #statement 3
n2=3 #statement 4
print(s2*s1) #statement 5
print(s1+s2) #statement 6

9
print(s1+n1) #statement 7
a) statement 4 b) statement 5 and 7 c) statement 6 d) No Error
10 Fill in the blanks DML Stand for_______________ 0.5
a) Different Mode Level b) Data Model Language
c) Data Mode Lane d) Data Manipulation Language
11 Which of the following command is used to open a file ‚c:\pat.txt‛ for writing in binary 1
format only?
a) fout=open(‚c:\pat.txt‛,‛w‛) b) fout=open(‚c:\\pat.txt‛,‛wb‛)
c) fout=open(‚c:\pat.txt‛,‛w+‛) d) fout=open(‚c:\\pat.txt‛,‛wb+‛)
12 All aggregate function except_______________ignore null values in their output collection 1
a) count(attribute) b) count(*) c) avg() d) sum()
13 _____________Network device that regenerates and retransmit the whole signal 1
a) Modem b) Hub c) Repeater d) Bridge
14 What will be the value of the following expression ? 14+13%15 1
a) 14 b) 27 c) 12 d) 0
15 The sum(), if used in a condition, is used with clause 1
a) Group By b) With c) Where d) Having
16 Which function is used to open a connection with MYSQL database from within Python 1
using mysql.connector package
a) open() b) database() c) connect() d) connectdb()
Q17 and 18 are ASSERTION AND REASONING based questions. Mark the correct choice
as
(a) Both A and R are true and R is the correct explanation for A
(b) Both A and R are true and R is not the correct explanation for A
(c) A is True but R is False
(d) A is false but R is True
17 Assertion (A):- The Maximum set of attributes that can uniquely identify a tuple 1
is known as candidate key.
Reasoning (R):- Out of one or more candidate keys, the attribute chosen by
database designer to uniquely identify the tuple ina relation is called primary key
of that relation.
18 Assertion (A): CSV stands for Comma Separated Values 1
Reason (R): CSV file are common file format for transferring and storing data.
19 Aaruni Shah is learning to work with Binary files in Python using a process known 3
as pickling/de-pickling. Her teacher has given her the following incomplete code
which is creating a binary file namely Mydata.dat and then opens, reads and
displays the content of this created file
import___________ # Fill_Line1
sqlist=list()
for k in range(10):
sqlist.append(k*k)

10
fout=________________ #Fill_Line 2
_______________________ #Fill_Line 3
fout.close()
fin=_____________________ #Fill_Line 4
________________________ #Fill_Line 5
fin.close()
(a) Complete Fill_Line1 so that the required library becomes available to the program
(b) Complete Fill_Line 2 so the above mentioned binary file is opened for writing in the
file object fout
(c) Complete Fill_Line 3 so that list created in nthe code , namely Sqlist, is written in
the open file.
(d) Complete Fill_Line 4 which will open the same binary file for reading in the file
object fin.
(e) Complete Fill_Line 5 so that the contents of the open file in the file handle fin are
read in a list namely mylist.
20 The code given below reads those records from table Garment which has Qty less 4
than 50. Records in table Garments are stored with following attributes:
GCode – integer , GName – string , Rate – decimal , Qty – integer , CCode = integer
Write missing Statements (Statement 1, Statement 2 and Statement 3) to complete
the code:
import mysql.connector as mycon
cn = mycon.connect(host=’localhost’, user=’test’, password=’None’,
database=’cloth’)
cur = ______________________ #Statement 1
cur._________________________ #Staatement 2 (Create & Execute Query)
G = ____________________ #Statement 3 Read complete result of query
print(‚Required records are:‛)
for i in G:
print(i)
cn.close()
SECTION E
1 Identify the name(s) from the following that cannot be used as identifiers in Python: 0.5
Name, for, a_123, True
2 Name the datatype for the following: a. L=25, b. T={25:‛money‛, ‚money‛:25} 0.5
3 Which is the correct way to remove an item from dictionary i.e. Tuesday 0.5
WEEKD={‘mon’:Monday’, ‘tue’:’Tuesday’, ‘wed’,’Wednesday’}
a. Del WEEKD(‘Tuesday’) b. Del WEEKD[‘Tue’]
c. del WEEKD[‘tue’] d. both b and c
4 Which of following expression(s) is an example of type casting 0.5
(a) 4.0 +float(6) (b)5.3 +6.3 (c) 5.0 +3 (d) int(3.1) +7
5 What will be the output of the following: 0.5

11
S= ‚python is very funny language‛ ; print(S.split(‚n‛))
6 Which function is used to read a single line from a file ? 0.5
(a) Readline( ) (b) readline( ) (c) Readlines( ) (d) readfullline( )
7 Fill in the blank: ___________Command used to remove/drop a column(attribute) from the 0.5
table(relation). a. Update b. Drop c. Alter d. Remove
8 Rohan created a table Company and inserted two records now he wants to change the 0.5
value in city column and wants to put value of city column is ‘ DELHI’ for both the
records, write command to update the record in a table.
9 What will be the output of the following code: 0.5
Color = ‘Color helps to give shadow to the picture’
newcolor = Color.replace(‘o’,’#’)
print(newcolor)
10 Fill in the blank: `__________ command is used to delete all the record, structure of a 0.5
table must exist in database after deleting all the record of a table
(a) DROP (b) DELETE (c) ALTER (d) None of these
11 Which of the following mode is used for both writing and reading in binary in 1
File a. wr+ b. wb+ c. w+ d. wr
12 In database School there are two table Student (containing 5 records) and Fee 1
(containing 3 records). Sohan displayed data from both the tables using select command,
then total 15 rows (records) displayed , which type of joining is implemented when,
Sohan displayed records.
a. Equi Join b. Cross Join c. Natural Join d. none of these
13 _____________ protocol is used to transmit the data between devices and containing 1
address of node also a. SMTP b. PPP c. UDP d. TCP/IP
14 What will be the output of the following expression and statement: 1
M=30>5 and 15==15; print(M) a. 30 b. True c. True d. False
15 Aman store 5 five in table ‘student’ and for attribute fee Rs.1500,2500,3000,1000,NULL 1
stored respectively. Aman executed the below command in SQL :
Select average(fee) from student; After executing the above command for NULL fee record
Rs. 4500 updated in the table student . on the basis of above select command what will
be the average of fee will come as output:
a. 1600 b. 2000 c. 2500 d. None of the above
16 To establish a connection between python and mysql which package is required 1
to import in python programming :
a. Python.mysql.connector b. Mysql.Connector
c. mySql.connector d. mysql.connector
Questions 17 and 18 are ASSERTION (A) and REASONING (R) based questions. Mark
the correct choice as
a. Both A and R are true and R is the correct explanation of A.
b. Both A and R are true and R is not the correct explanation of A.
c. A is true but R is false. d. A is false but R is true.

12
17 Assertion (A): If you don’t provide value to argument of function during function call then 1
the function take its default value defined in the function.
Reason (R): during functions call argument are required
18 Assertion (A): In CSV , reader module take file object as argument Reason (R): Default 1
value of newline is ‘\n’ in open() statement used with csv file.
19 Three student of KV started a business company Alumni University and setting up 3
its academic block in Mumbai and is planning to set up of a network. The
University has 3 academic block (BUSINESS, TECHNOLOGY, LAW) and one
Human Resources Centre as shown in the diagram below:

Centre and blocks distances is as follows:

Numbers of computer in each of the blocks/ Centre is as follows:

(i) Suggest the most suitable palce (i.e. Block/ Center) to install the server of this
University with a suitable reason.
(ii) Suggest an proper layout for connecting these blocks /center for wired connectivity
(iii) Which device will your suggest to be placed / installed in each of these blocks/center
to efficiently connect all the computers with in these blocks/center.
(iv) Suggest the place to fix repeater in the network with justification
(v) The university is planning to connect its admission office in all states, which is more
than approx. 1000 km from University , which type of network out of LAN, MAN, WAN
will be established ? Justify your
20 Mayanti just started to work for a sports academy having several branches across India.
The sports academy appoints various trainers to train various sports. She has been given
4
the task to maintain the data of the trainers. She has made a table called TRAINERS in
the database which has following records:

13
Based on the data given above answer the following questions:
a. Can City be used as Primary key for table TRAINER? Justify your answer.
b. What is the degree and cardinality of the table TRAINER? If we add two rows and
remove three rows from table TRAINER. Also if we add another attribute in the table,
what will be the degree and cardinality of the table TRAINER will become?
c. Write statements for:
iii. Insert a new record in table TRAINER with values, TrainerNo = 107,
Name = Swastik, HireDate = 1999-01-22, Salary = 90000.
iv. Increase the salary of those Trainer having city as DELHI by 5000.
OR
c. Write Statements for:
iii. Removes those records from table TRAINER who were hired after year 2000.
iv. Add a new column Grade with datatype as Varchar and maximum size as 2.
*********

14

You might also like