Pre Board1 Xii-B
Pre Board1 Xii-B
5 In MYSQL database, if a table, Alpha has degree 5 and cardinality 3, and another 1
table, Beta has degree 3 and cardinality 5, what will be the degree and
cardinality of the Cartesian product of Alpha and Beta?
a. 5,3 b. 8,15 c. 3,5 d. 15,8
6 Riya wants to transfer pictures from her mobile phone to her laptop. She uses 1
Bluetooth Technology to connect two devices. Which type of network will be
formed in this case?
a. PAN b. LAN c. MAN d. WAN
7 Select the correct output of the code : 1
n = "Post on Twitter is trending"
q = n.split('t')
print( q[0]+q[2]+q[3]+q[4][1:] )
a. Pos on witter is rending
b. Pos on Twitter is ending
c. Poser witter is ending
d. Poser is ending
8 Consider the statements given below and then choose the correct output from 1
the given options:
pride="#G20 Presidency"
print(pride[-2:2:-2])
Options:
a. ndsr b. ceieP0 c. ceieP d. yndsr
9 Which of the following statement(s) would give an error during execution of the 1
following code?
tup = (20,30,40,50,80,79)
print(tup) #Statement 1
print(tup[3]+50) #Statement 2
print(max(tup)) #Statement 3
tup[4]=80 #Statement 4
Options:
a. Statement 1 b. Statement 2 c. Statement 3 d. Statement 4
10 1
Options:
a. RED*
WHITE*
BLACK*
b. WHITE*
BLACK*
c. WHITE* WHITE*
BLACK*BLACK*
d. YELLOW*
WHITE*WHITE*
BLACK*BLACK*BLACK*
11 Fill in the blank: 1
The modem at the sender’s computer end acts as a ____________.
a. Model b. Modulator c. Demodulator d. Convertor
12 Which of the following statement(s) would give an error after executing the 1
following code?
EM = “Blue Tick will cost $8” # Statement 1
print( EM) # Statement 2
ME = “Nothing costs more than Truth” # Statement 3
EM *= 2 # Statement 4
EM [-1: -3 : -1] += ME[ : 7] # Statement 5
a. Statement 3
b. Statement 4
c. Statement 5
d. Statement 4 and 5
22 2
23 2
24 2
28 Write the outputs of the SQL queries (i) to (iii) based on the relations 3
DEPT and EMPLOYEE given below:
29 a) 1+2
SECTION-E
33 Mother-son Corporation has set up its new center at Jaipur, Rajasthan for 5
its office and web-based activities. It has 4 blocks of buildings.:
As a network expert, provide the best possible answer for the following
queries: -
a) Suggest and draw the cable layout to efficiently connect various blocks
of the building within the Jaipur center for connecting the digital devices.
b) Suggest the placement of following devices in the network with
justification:
Hub/Switch
Repeater
c) i) Which kind of network (PAN/LAN/WAN) will be formed if the
Jaipur
office is connected to its head office in Mumbai?
ii) Which fast and very effective wireless transmission medium
should be preferably be used to connect the head office at
Mumbai with the center at Jaipur?
d) Which fast and very effective wireless transmission medium should be
preferably be used to connect the head office at Mumbai with the center at
Jaipur?
e) Suggest the most suitable building to house the server with
justification.
34 a) Predict the output of the code given below: 2+3
b) The code given below inserts the following record in the table Student:
RollNo – integer
Name – string
Class – 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.
The details (RollNo, Name, Class and Marks) are to be accepted from the user.
Write the following missing statements to complete the code:
Statement1– to form the cursor object
Statement2–to execute the command that inserts the record in the table
Student. Statement3-to add the record permanently in the database
import mysql.connector as mysql
defsql_data():
obj=mysql.connect(host="localhost",user="root", password="tiger",
database="school")
mycursor= __________________ #Statement1
rno=int(input("Enter Roll Number :: "))
name=input("Enter name :: ")
class=int(input("Enter class :: "))
marks=int(input("Enter Marks :: "))
query="insert into student values({},'{}',{},{})".format(rno,name,clas,marks)
___________________________#Statement2
__________________________ #Statement3
print("DataAddedsuccessfully")
35 (i) How are text files different from binary files? 5
(ii) (ii) A Binary file, CINEMA.DAT has the following structure: {MNO:
[MNAME, MTYPE]}
Where MNO – Movie Number
MNAME – Movie Name
MTYPE is Movie Type
Write a user defined function, findType(mtype), that accepts mtype
as parameter and displays all the records from the binary file
CINEMA.DAT, that have the value of Movie Type as mtype.