Untitled Document
Untitled Document
Untitled Document
True
2. 2. Alter table tablename modify Ename varchar(24);
3. 24.6
4.
5.d)
6.. Satellite/ Microwave
7.print(200 in mydict.values())
8.b) idnIe$n
9. b)
10. d)&b)
11.a
12.c
13. True
14.c
15. Router
16.Error
17.c
18.d
b.def List_Indes(tuple):
l = []
for i in range(len(tuple)):
if tuple[i]!=0:
l.append(i)
22.[20.0,21,62.0,3,5]
23a..mysql.connector
b. 1Work as screen cursor between python shell and mysql
2 To execute to query and get result set
Or
a.[80,60,40,20]
b.16
24.
a.
Create table projectinfo(stud_roll int(3) NOT NULL UNIQUE,
Name Varchar(15) NOT NULL,
Project_name vgarchar(20) NOT NULL UNIQUE,
Number_of_student int(4) check(number_of_student>1)
Date_of_submission date default 6-6-2022);
Or
25)
Division performed successfully
The result of division operation is 10.0
OVER AND OUT
Division performed successfully
The result of division operation is 5.0
OVER AND OUT
Denominator as ZERO is not allowed
OVER AND OUT
26 .same as yours
27.
B.
1)TID
101
102
104
103
2)
101 2 12000
3) Digital Marketing
Mobile Application Development
4) 15500
28.
def Count_Words():
count = 0
file = open('Alpha.txt')
lines = file.read()
sp = lines.split()
for i in sp:
for j in i:
if j.isdigit():
count+=1
break
print(count)
Count_Words()
29.
def divi(N):
lst = []
for i in N:
if i%3==0:
lst.append(i)
def pop(lst):
print(lst.pop(),end='')
32)def create():
file = open('Employee.csv','a',newline ='')
Roll = int(input('Enter Roll Number : '))
Name = input('Enter Name : ')
Salary = float(input('Enter Salary : '))
record = [Roll,Name,Salary]
writer_obj = csv.writer(file)
writer_obj.writerow(record)
file.close()
def search():
file = open('Employee.csv','r')
reader_obj = csv.reader(file)
n = int(input('Enter Roll Number To Be Searched : '))
for line in reader_obj:
if int(line[0]) == n:
print(line)
file.close()
def display():
file = open('Employee.csv','r')
reader_obj = csv.reader(file)
for line in reader_obj:
print(line)
file.close()
33.
1 Star Topology
2 Admin
3 Admin to senior and admin to junior as it exceeds ablove 80m so repeater should be placed
Switch/Hub should be placed in every block to connect the computer network
4.Microwave
5.Microwave