1.

A binary file employee.dat has following data  Empno empname Salary101Anuj50000102Arijita40000103Hanika30000104Firoz60000105Vijaylakshmi40000def display(eno): f=open("employee.dat","rb") totSum=0 try: while True: R=pickle.load(f) if R[0]==eno: .........  #Line1 totSum=totSum+R[2] except: f.close() print(totSum) When the above mentioned function, display (103) is executed, the output displayed is 190000. Write appropriate jump statement from the following to obtain the above output.a. jump b. break c. continue d. return

Answer»

Answer is c. continue



Discussion

No Comment Found

Related InterviewSolutions