Preboard II
Preboard II
2. RAthin wants to create a table Players with a column playerid which should carry non null values and
unique values. Which conatraint has to be given to the column?
6 * 3 + 4 ** 2 // 5 – 8
mydict[‘age’] = 27
mydict[‘address’] = “Delhi”
print(mydict.items())
5. A table student has 15 columns and 100 rows. 10 are rows added later. What is the degree and
cardinality of the table now?
6. ABC corporation has its offices in the city of lucknow, connected together in a network. These offices
are separated by a distance of approximately 45-50km. which kind of network is formed?
8. consider following list for python language L = [13, 3.45, “Tree”, ‘Amar’ , [10, 8.91, ”Apple”], 456
9. Which output lines of the following program will print the same result?
tup1 =(10, 20, 30, 40, 50, 60, 70, 80, 90)
(a) (1) and (2) (b) (1) and (4) (c) (2) and (3) (d) (1), (3) and (4)
10. what possible output are expected to be displayed on screen at the time of execution of the
program from the following code? Also specify the maximum values that can be assigned to each of the
variables From and To .
Import random
TO = random.randint (2, 4)
12. Given the following code. what should be filled in the missing statement for proper execution of the
code.
def reverse(n):
while n>0:
d= n% 10
rev =__________ + d
n//=10
print(“Reverse:”, rev)
“In a python program, if a break statement is given in a nested loop, it terminates the execution of all
loops in one go.
14. which of the following refers to the attribute that can uniquely identify the tuples within the
relation?
(a) Foreign Key (b) Candidate key (c) Alternate key (d) Primary key
16. which of the following statements opens a csv file “stock.csv” for writing records into it?