Computer Science_sr Centum Work Sheet

Download as pdf or txt
Download as pdf or txt
You are on page 1of 19

COMPUTER SCIENCE

SECTION-A
I. Answer the following questions 1x6=6
1. Which of the following is an invalid variable?
a) to_day_3 b) 2nd_day c) Day_four d) _2
2. Which of these is not a core data type?
a) Lists b) Dictionary c) Tuples d) Class
3. What will be the value of the expression 14+13%15
a) 15 b) 27 c) 12 d) 1
4. Which value type does input () return?
a) Boolean b) String c) Int d) Float
Directions: In the following questions, two statements are given- one labelled Assertion (A) and the
other labelled Reason (R). Select the correct answer to these questions from the codes (a), (b), (c) and
(d) as given below.
a) Both Assertion and Reason are true and Reason is the correct explanation of Assertion.
b) Both Assertion and Reason are true but reason is not the correct explanation of Assertion.
c) Assertion is true but Reason is false.
d) Assertion is false but Reason is true.

5. For a given list L  11,12,13,14,15,16 the index of element 13 will be.

A: The index of element 13 will be either 2 or -4.


R: Python list supports forward and backward indexing, forward indexing starts with index 0 given to
leftmost element and backward indexing starts with index -1 given to rightmost element.
6. Consider the following dictionary

Book  1: 2,2:3,3: 4,4:5

Rahul executes statement 2 in Book


A: For the above dictionary Book, output of expression 2 in Book is True.
R: For Dictionary, the in and not in operators return true or false, according to whether the specified
operand occurs as a value in the dictionary. Based on above discussion, choose the appropriate option.
SECTION-B
II. Answer the following questions 2x2=4
7. What is the difference between a keyword and an identifies?
8. What is a statement? What is the significance of an empty statement?
(OR)
What do you understand by the term iteration.
SECTION-C
III. Answer the following questions 3x2=6
9. What would be the output of the following
a) x  45
while x  50:
print (x)
b) for x in ‘lamp’:
print (str.upper(x))
c) for z in range (-500, 500, 100):
print (z)
10. What will be the output of the following code? Give reasons.
p 46/8
q  int  9  5 / 7 
r  9  float  5 /10
Print  p, q, r 
(OR)
Explain Static and Dynamic typing.
SECTION-D
IV. Answer the following questions 5x1=5
11. Write a python program to check the given number is even or odd.
(OR)
Write a program to check whether the given year is leap year or not.
SECTION-E
V. Answer the following 4x1=4
12. a) What is a token? 1M
b) What is a Literal? 1M
c) What will be the output produced by the following code?
i) a, b  3,6
c b/ a 2M
ii) a, b  3, b.0
c  b%a
(OR)
i) a, b  3,6
c  b*a
ii) a, b  3, b.0
c  b%a  b * a

SECTION-A
I. Answer the following questions 1x6=6
1. The numbered position of a letter in a string is called
a) Position b) Integer position c) Index d) Location
2. The keys of a dictionary must be of ______ type
a) Integer b) Mutable c) Immutable d) Any of these

3. Suppose a tuple T is declared as T  10,12,43,39  , which of the following is incorrect?

  
a) Print T 1  
b) T 2  29   
c) Print max T  d) Print len T  
4. What is the output of this code?
>>> int (“3” + “4”)
a) “7” b) “34” c) 34 d) 24
Directions: In the following questions, two statements are given- one labelled Assertion (A) and the
other labelled Reason (R). Select the correct answer to these questions from the codes (a), (b), (c) and
(d) as given below.
a) Both Assertion and Reason are true and Reason is the correct explanation of Assertion.
b) Both Assertion and Reason are true but reason is not the correct explanation of Assertion.
c) Assertion is true but Reason is false.
d) Assertion is false but Reason is true.
5. Consider the following dictionary

Chandrayan = 11:12,12:13,13:14,14:15

Rover executes statement 3 in chandrayan.


A: For dictionary chandrayan output of expression 3 in chandrayan is True.
B: For Dictionary the in and not in operators return true or false, according to whether the specified
operand occurs as a value in dictionary. Based on the above discussion choose the appropriate option.

6. For a given list X  15,16,17,18,19,20 the index of element 18 will be

A: The index of element 18 will be either 2 or -3.


R: Python list supports forward and backward indexing. Forward indexing starts with index 0 given to
leftmost element and backward indexing starts with index -1 given to rightmost element.

SECTION-B
II. Answer the following questions 2x2=4
7. What is indexing in Python string? Why is it also two – way indexing.
8. How are tuples different from lists when both are sequence.
(OR)
What is the output produced by the following code snippet?
Lst = [ 1, 2, 3, 4, 5, 6, 7, 8, 9]
Lst[: :2] = 10, 2, 30, 40, 50, 60
Print (Lst)
SECTION-C
III. Answer the following questions 3x2=6
9. What will be the output produced by following code fragments?

a) y  str 123
x  "hello" *3
Print  x, y 

x  "hello" "world "


y  len  x 

Print  y, x 

b) x  "hello" \
"to python " \
" world "
For char in x :
y  char
Print  y,': ', end  " "
10. Predict the output of the following code snippet?


a) arr  1,2,3,4,5,6 
for i in range 1,6  :

arr i  1  arr i 
for I in range  0,6 :


print arr i , end  " " 

b) Numbers = 9,18,27,36 
for Num in Numbers:
for N in range 1, Num%8 :

print  N ,"#", end  " "

print  
(OR)
Explain the characteristics of Dictionary
SECTION-D
IV. Answer the following questions 5x1=5
11. Explain any five dictionary functions and methods.
(OR)
Write a program to sort a list using Bubble sort.
SECTION-E
V. Answer the following 4x1=4
12. a) What is a string? 1M
b) What is traversing a string? 1M
c) What is appending and updating element to a list? 2M
(OR)
c) Name the function/method required to 2M
a) Check if a string contains only upper case letters.
b) Gives the total length of the list.
.

Section –A

Each question carries 1 marks

Q PAR Mar
QUESTION
. T. ks
S
N NO
O

when large programs are broken down into smaller 1


1.
units known as..................

a. sub program
b. functions

c. class

d. None of the above

2 Which of the following statements is correct syntactically? 1

a. print(“Anikha Venkat” , sep == ‘@’ , end = ‘ ‘)


b. print(“Anikha Venkat” , sep = ‘@’ , end = ‘ ‘)
c. Print(“Anikha Venkat” , sep = ‘@’ , end = ‘ ‘)
d. print(“Anikha Venkat” , sep = ‘@’ , end = ‘ ‘
3 What is the result after executing the following: 1

>>>print(20/4 *5+8-10)

a. 1
b. 23
c. 23.0
d. 24
4 Which of the following data types in Python supports concatenation? 1

a) int b) float c) bool d) str

5 What will be output of the following code: 1

d1={1:2,3:4,5:6}

d2=d1.popitem()
print(d2)

a) {1:2} b) {5:6} c) (1,2) d) (5,6)

6 Consider the string Name = “Anikha Venkat”. 1


Identify the appropriate statement that will display the last five characters of the string
state?

(a) state [-5:] (b) state [4:] (c) state [:4] (d) state [:-4]

7 Which of the following data type in python is used to represent any real number : 1

(a) int (b) complex ( c ) float (d ) bool

8 Suppose a tuple Tup is declared as Tup = (12, 15, 63, 80) which of the following is 1
incorrect?

a) print(Tup[1]) b) Tup[2] = 90 c) print(min(Tup)) d) print(len(Tup))

9 Find the invalid identifier from the following 1

a) Marks@12 b) string_12 c)_bonus d)First_Name

1 Syntax of the seek function in Python is myfile.seek(offset, reference_point) where 1


0 myfile is the file object. What is the default value of reference_point?

a. 0 b. 1 c. 2 d. 3

1 What will be the result of the following statements? 1


1
a) bool(int(”0”)) b) type(“hello”)

1 Which of the following commands is used to open a file “c:\test.txt” for reading and 1
2 writing data in binary format only.

(a) myfile = open(‘c:\\test.txt’,’rb+’)

(b) myfile = open(‘c:\test.txt\’,’wb’)

(c) myfile = open(‘c:\test.txt’,’w+’)

(d) myfile = open(‘c:\\test.txt’,’rb’)

1 What will be the output of the following code: 1


3
def calculate(a, b):

return a+b, a-b

res = calculate(7, 7)

print(res)

a. (14,0) b. [14, 0] c. 14 d. 0

1 The values received in function definition/header statement are called 1


4
______________ .

a. arguments b. parameter c. values d. none

1 Identify the output of the following python statements 1 1


5
import random

for n in range(2,5,2):

print(random.randrange(1,n,end=’*’)
(a)1*3 (b) 2*3 (c) 1*3*4 (d)1*4

1 What will be the data type of the expression 12/5==0? 1


6
a) True b) False c) bool d) float

1 Assertion(A) : The tell method will stores/get the current location of the file pointer 1
7
Reasoning(R): Python seek method returns the current position of the file read/write
pointer with the file.

a) Both A and R are true and R is the correct explanation for A

b) Both A and R 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

1 Assertion: The function header ‘def read (a=2, b=5, c):’ is not correct. 1
8
Reason: Non default arguments can’t follow default arguments.

Please choose the correct choice out of the four options given below:

a. Both Assertion and reason are true and reason is the correct explanation of
assertion.

b. Assertion and reason both are true but reason is not the correct explanation of
assertion.

c. Assertion is true, reason is false.

d. Assertion is false, reason is true.

Section –B

Each question carries 2 marks

1 (i) Given is a Python string declaration: 2


9
myexam="CHE PV PART TEST I Examination 2023-2024"

Write the output of: print(myexam[::-3])

(ii) Write the output of the code given below:

dict = {"name": "Swetha", "age": 13, “phone”: 26074315}


dict['age'] = 14

dict['address'] = "Chennai"

print(dict.items())
2 Predict the output of the Python code given below: 2
0
tuple1 = (7, 14, 21, 28, 35, 42)

list1 =list(tuple1)

listNew = []

for item in list1:

if item %2==0:

listNew.append(item)

tupleNew = tuple(listNew)

print(tupleNew)

2 Write the output of the code given below: 2


1
p,q=8, [8]

def sum(r,s=5):

p=r+s

q=[r,s]

print(p, q, sep='@')

sum(3,4)

print(p, q, sep='@')

2 Predict the output of the Python code given below: 2


2
T1 = tuple("SwethaVenkat")

T2, new_list = T1[1:-1], []

for i in T2:

if i in 'aeiou':

j=T1.index(i)

new_list+=[j]

print(new_list)

2 Write a function line count() in python which reads a file ‘data.txt’ and counts the 2
3 number of lines starting with character ‘P’.

2 Write any two differences between text file and binary file? 2
4

2 Write a method COUNT_WORDS() in Python to read text file ‘STUDENT.TXT’ and 2


5 display the total number of Words in the file which start with ‘S’ and end with ‘R’.

your output should shown like given below:

No. of words found: …….

Section – C
Each question carries 3 marks

2 Find the output for the following code: 3


6
def Alpha(N1):

while N1:

a=N1.pop()

if a%5>2:

print(a,end='@')

else:

break

NUM=[13,24,12,53,34]

Alpha(NUM),print(NUM)

2 Kohit has written a code to input a number and find a new number Reverse from 3
7 Number with each of the digits of Number in reversed order and display.

Rewrite the correct code and underline the corrections made.

Def REVERSE(Number):

S=0

while Number>0:

S=S*10+Number/10

Number=Number//10

print(S)

2 (a) Given is a Python string declaration: 1+2


8
s="Up Above The World So High"

Write the output of: print(s[::-4])

(b) Write the output of the code given below:

D={'month':"DECEMBER",'exam':'[PREBOARD1'}

D['month']='JANUARY'

D['EXAM']='PRE2'

print(D.items())

2 Predict the output of the Python code given below: 3


9
L=[4,6,7,1,6,9,4]

def fun(L):

for i in range(len(L)):

if(L[i]%3==0 and L[i]%2==0):

L[i]=L[i]+1
return(L)

k=fun(L)

print(k)

3 write a function countmy() in python to read the text file "DATA.TXT" and count the 3
0 number of times "my" occurs in the file.

OR

Write a function countVowels() in Python, which should read each character of a text
file “myfile.txt”, count the number of vowels and display the count. Example: If the
contents are as follows:

This is my first class on Computer Science.

The output of the function should be: Count of vowels in file: 10

Section –D

Each question carries 5 marks


3 i. A binary file “ITEMS.DAT” has structure (ID, GIFT, Cost). 5
1
Write a function to write more items in ITEM.DAT

ii. Write a function Economic() in Python that would read contents of the file
“ITEMS.DAT” and display the details of those ITEMS whose cost is greater than 2500.

3 (a) Write the output of the code given below: 2+3


2
p=10

def sum(q,r=2):

global p

p=r-q*2

print(p, end='#')

a=20

b=10

sum(a,b)

sum(r=15,q=10)

(b) Write a function in python to count the number of lowercase and uppercase
characters in a text file “Story.txt”.
3 (a) Predict the output of the Python code given below: 2+3
3
def Display(str):

m=" "

for i in range (0,len(str)):

if(str[i].isupper()):

m=m+str[i].lower()

elif str[i].islower():

m=m+str[i].upper()

elif i%2==0:

m=m+str[i-1]

else:

m=m+"#"

print(m)

Display('Welcome@Python3.0')

(b) Consider the code given below and fill in the blanks.

print (" Learning Exceptions...")

try:

num1= int(input ("Enter the first number"))

num2=int(input("Enter the second number"))

quotient=(num1/num2)

print ("Both the numbers entered were correct")

except _____________: # to enter only integers

print (" Please enter only numbers")

except ____________: # Denominator should not be zero

print(" Number 2 should not be zero")

else:

print(" Great .. you are a good programmer")

___________: # to be executed at the end

print(" JOB OVER... GO GET SOME REST")

Section –E

Each question carries 4 marks


3 (a) Identify the output of the following python code: 2+2
4
D={1:"one",2:"two", 3:"three"}

L=[]

for k,v in D.items():

if 'o' in v:

L.append(k)

print(L)

(b) Identify the output of the following python code:

T = (9,18,27,36,45,54)

L=list(T)

L1 = []

for i in L:

if i%6==0:

L1.append(i)

T1 = tuple(L1)

print(T1)

3 (a) Swetha is learning Python and working with Binary Files. Her teacher has given her the 4
5 following incomplete, which is creating a binary file “Student.dat” which contains
student’s details (RNo, Name and Marks) in the form of List.She now has to open the
file, search for the Roll No., which will be entered by the user and display the Student’s
Details, if roll no. found otherwise print the message “Roll Number Not Found”.

The content of the List are : [Rollno, Name, Marks]

As a Python programmer, help her to complete the following code based on the
requirement given below:

import ___________ # Statement 1

def ReadData():

rec=[]

fin.open(________________________) # Statement 2

found=False

rno=int(input(“enter the Roll No. of the Student=”))

while True:

try:
rec=__________________ # Statement 3

if ______________ : # Statement 4

found=True

print(“Student Roll Number=”,rec[0])

print(“Student Name=”,rec[1])

print(“Total Marks obtained=”,rec[2])

except:

print(“File not found”)

if found==False:

print(“Record Not Found”)

fin.close()

(i) Which module should be imported in the program? (Statement 1)

(ii) Write the correct statement to open the file Student.dat in the required mode.
(Statement 2)

(iii) Write the correct statement to read the data from the binary file and store it in rec.
(Statement 3)

(iv) Write the correct condition to match the Roll no of the student in the file with the
Roll no. entered by the user.

SECTION – A
I. Choose the correct answer (5*1=5)
1. The separator character of CSV files is called________.
(a) reader (b) writer (c) delimiter (d) newline
2. In CSV file ________ method is used to write a multiple rows of data.
(a) write() (b) writerow() (c) writerows() (d) writer()
3. In a stack, all insertions take place at _______ end(s)
(a) rear (b) front (c) top (d) any
4. WAN stands for______.
(a) World Area Network (b) Wise Area Network
(c ) Wide Area Network (d) Wireless Area Network
5. Central computer which is powerful than other computers in the network is called________.
(a) client (b) server (c) hub (d) switch
SECTION – B
II. Answer the following questions. (5*2=10)
6. What are CSV files? What does CSV.writer object do?
7. Write a program to count the number of records present in “data.csv” file.
8. Write a functions in python for pushS(List) and for popS(List) for performing Push and Pop
Operations with a stack of list containing integers.
9. Enlist the applications of a stack.
10. Explain the types of networks based on geographical scope.
SECTION – C
III. Answer the following questions. (Answer any 2 questions) (2*3=6)
11. Observe the following code and fill in the given blanks. (The file name is “data.csv”)

import csv
with open(“data.csv”) as f:
r = csv.______(f) # statement 1
for row in ______: # statement 2
print(_____) # statement 3
12. Write the difference between Circuit switching and Packet switching.
13. Write a function in python, MakePush(package) and MakePop(package) to add a new package
And delete a package from a list of package description, Considering them to act as push and pop
Operations of the stack data structure.
SECTION – D
IV. Case based study question. (1*4=4)
14. Software development company has set up its new centre at rajpur for its office and web based activities. It
has 4 blocks of buildings named Block A, Block B, Block C, Block D.
Number of computers Shortest distance between various blocks in metres
BLOCKA 25 BLOCK A to BLOCK B 60m
BLOCK B 50 BLOCK B to BLOCK C 40m
BLOCK C 125 BLOCK C to BLOCK A 30m
BLOCK D 10 BLOCK D to BLOCK C 50m
(i)Suggest the most suitable place (i.e block) to house the server of this company with a
Suitable reason.
(ii) Suggest the type of network to connect all the blocks with suitable reason.
(iii) The company is planning to link all the blocks through a secure and high speed wired medium.
Suggest a way to connect all the blocks.
(iv) Suggest the most suitable wired medium for efficiently connecting each computer installed in
Every block out of the following network cables:
(a) Coaxial cable (b) Ethernet cable (c) single pair telephone cable.
SECTION – E
V. Answer the following questions. (Answer any 2 questions) (2*5=10)
15. Write a program to create a CSV file to store student data (Roll no, Name, Marks). Obtain data from
User and write 5 records into the file.
16. Write a python program that defines and calls the following user defined functions.
(a) add() to accept and add data of an employee to a CSV file ‘furdata .csv’. Each record consists
Of a list with field elements as fid, fname and fprice to store furniture id, furniture name and
furniture price respectively.
(b) Search() to display the records of the furniture whose price is more than 10000.
17. Explain the different types of switching techniques with a diagram.

*******
I. Choose the correct answer (8 × 1= 8)
1. The separator character of CSV files is called________.
(a) reader (b) writer (c) delimiter (d) newline
2. In CSV file ________ method is used to write a multiple rows of data.
(a) write() (b) writerow() (c) writerows() (d) writer()
3. In a stack, all deletion take place at _______ end(s)
(a) rear (b) front (c) top (d) any
4. LAN stands for______.
(a) Local Area Network (b) Line Area Network (c ) Land Area Network (d) Low Area Network
5. Central computer which is powerful than other computers in the network is called________.
(a) client (b) server (c) hub (d) switch
6. Which transmission media is capable of having a much higher bandwidth?
(a) coaxial (b) twisted cable (c) untwisted cable (d) fiber optic
7. A combination of bus and star topologies is called a _____ topology.
(a) combination (b) Hybrid (c) busstar (d) Tree
8. Which of the following is the odd one out? FTP, HTTP, IMAP, HTTPS
(a) IMAP (b) FTP (c) HTTPS (d) HTTP

II. Answer the following questions (5×2=10)


9. What in detail about guided media.
10. Explain the following: a) GSM b) WLL
11. What is the difference between MAC and IP address.
12. Write a program to read a single line from a file?
13. What is peek, push and pop in stack?
III. Answer the following questions (3×3=9)
14. Write the syntax of for loop and give one example program.
15. Write in detail about circuit switching.
16. What is the difference between text file and binary file?
IV. Answer the following questions(Any 2) (2×4=8)
17. Write a python program to display the size of a file after removing EOL characters, leading and trailing
whitespaces and blank lines.
18. Write in detail about HTTP and TCP/IP.
19. Explain network topology in detail.
SECTION-A
Choose the correct answer: 5×1=5 M
1. Priya has placed the file pointer at 4th line in the text file. Now she wants to read all remaining
lines of a text file. Which function is suitable for her, select the correct one:

a) f.read()
b) f.readlines()
c) f.read(n)
d) f.readlines()

2. Puru wants to close a file after reading operation for the file object f. Suggest the correct
function to him.

a) f.close()
b) f.close
c) f.quit()
d) f.exit()

3. Network in which every computer is capable of playing the role of a client, or a server or both at
same time is called

a) peer-to-peer network
b) local area network
c) dedicated server network
d) wide area network

4. __________ adds a new element at the TOP of the stack.


a) POP
b) PUSH
c) INSERT
d) (1) and (3)
5.Queue is an ordered linear data structure, following ___________ strategy.
a) LIFO
b) FIFO
c) Both
d) None

SECTION-B

Answer the following questions 5×2=10 M

6. Differentiate between WHERE and HAVING clause.

7 . Write a query that selects all orders (Order table) except those with zeros or NULLS in the
amt field.

8. What is a modem? What are the two types of modems?

9. Categorize the following commands as DDL or DML:


INSERT, UPDATE, ALTER, DROP
10.write two points of difference between star topology and Bus topology
SECTION- C
Answer the following questions (Answer any 2 questions) 2×3=6 M
write the output of the SQL queries (i) to (iii) based on the relations
11. a)
Teacher and Placement given below:
Table:Teacher
T_ID name Age Department Date__of__join Salary Gender
1 Arunan 34 Computer sc 2019-01-10 12000 M
2 Saman 31 History 2017-03-24 20000 F
3 Randeep 32 mathematics 2020-12-12 30000 M
4 Samira 35 History 2018-07-01 40000 F
5 Raman 42 Mathematics 2021-09-05 25000 M
6 Shayam 50 History 2019-06-27 30000 M
7 Shiv 44 Computer 2019-02-25 21000 M
Sc
8 salakha 33 Mathematics 2018-07-31 20000 F
(OR)

Table : placement

P_ID Department place Place


1 History Ahmedabad 2
2 Mathematics 3 Jaipur
3 Computer SC Nagpur

i) SELECT Department, avg(salary) FROM Teacher GROUP BY Department;


(ii) SELECT MAX(Date_of_Join),MIN(Date_of_Join) FROM Teacher;
(iii) SELECT Name, Salary, T.Department, Place FROM Teacher T, Placement P WHERE T.Department =
P.Department AND Salary>20000;

12.Differentiate between XML and HTML.

SECTION –D
1×4=4 M

13. MakeInIndia Corporation, an Uttarakhand based IT training company, is planning to set up


training centres in various cities in next 2 years. Their first campus is coming up in Kashipur district.
At Kashipur campus, they are planning to have 3 different blocks for App development, Web
designing and Movie editing. Each block has number of computers, which are required to be
connected in a network for communication, data and resource sharing. As a network consultant of
this company, you have to suggest the best network related solutions for them for issues/problems
raised in question nos. (i) to (v), keeping in mind the distances between various blocks/locations
and other given parameters.
Distance between various blocks/locations:

Block Distance

App development to web designing 28 m

App development to Movie Editing 55 m

Web Designing to Movie Editing 32 m

Kashipur Campus to Mussoorie Campus 232 km

No. of computer:

Block Number of computers

App Development 75

Web Designing 50

Movie Editing 80

(i) Suggest the most appropriate block/location to house the SERVER in the Kashipur campus (out
of the 3 blocks) to get the best and effective connectivity. Justify your answer.
(ii) Suggest a device/software to be installed in the Kashipur Campus to take care of data security.
(iii) Suggest the best wired medium and draw the cable layout (Block to Block) to economically
connect various blocks within the Kashipur Campus.
(iv) Suggest the placement of the following devices with appropriate reasons:
a. Switch / Hub
b. Repeater

SECTION –E

Answer the following questions(Any Two) 2×5=10 M


14. Kabir wants to write a program in Python to insert the following
record in the table named Student in MYSQL database, SCHOOL
rno(Roll number )-integer
name(Name) -string
DOB (Date of birth) –Date
Fee –float
Note the following to establish connectivity between Python and
MySQL:
Username -root
Password -tiger
Host -localhost
The values of fields rno, name, DOB and fee has to be accepted
from the user. Help Kabir to write the program in Python.
15. Vedansh is a Python programmer working in a school. For the Annual
Sports Event, he has created a csv file named Result.csv, to store the

results of students in different sports events. The structure of


Result.csv is :
[St_Id, St_Name, Game_Name, Result]
Where
St_Id is Student ID (integer)

ST_name is Student Name (string)

Game_Name is name of game in which student is participating(string)

Result is result of the game whose value can be either 'Won', 'Lost' or 'Tie'

For efficiently maintaining data of the event, Vedansh wants to write the
following user defined functions:
Accept()–to accept a record from the user and add it to the file

Result.csv. The column headings should also be added on top of the

csv file.
wonCount()–to count the number of students who have won any
event.
As a Python expert, help him complete the task.
16. Explain the different types of switching techniques with a diagram.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy