Practical File Class 11 IP 2022-23

Practical File Class 11 IP Term 1   Program 1. To find average and grade for given marks. sub1=int(input(“Enter marks of the first subject: “)) sub2=int(input(“Enter marks of the second subject: “)) sub3=int(input(“Enter marks of the third subject: “)) sub4=int(input(“Enter marks of the fourth subject: “)) sub5=int(input(“Enter marks of the fifth subject: “)) avg=(sub1+sub2+sub3+sub4+sub5)/5 #printing … Read more

100+ Text File MCQ Question Bank For Class 12

Text File MCQ Question Bank For Class 12   1. Which of the following command is used to open a file “c:\temp.txt” in read-mode only? a) infile = open(“c:\temp.txt”, “r”) b) infile = open(“c:\\temp.txt”, “r”)  c) infile = open(file = “c:\temp.txt”, “r+”) d) infile = open(file = “c:\\temp.txt”, “r+”)   2. Which of the following … Read more

error: Content is protected !!