Sponsor Area
NCERT Solutions for Class 12 Computer And Communication Technology Computer Science With Python Chapter 7 Data File Handling
Data File Handling Here is the CBSE Computer And Communication Technology Chapter 7 for Class 12 students. Summary and detailed explanation of the lesson, including the definitions of difficult words. All of the exercises and questions and answers from the lesson's back end have been completed. NCERT Solutions for Class 12 Computer And Communication Technology Data File Handling Chapter 7 NCERT Solutions for Class 12 Computer And Communication Technology Data File Handling Chapter 7 The following is a summary in Hindi and English for the academic year 2025-26. You can save these solutions to your computer or use the Class 12 Computer And Communication Technology.
Write a method in Python to read lines from a text file DIARY.TXT, and display those lines, which are starting with an alphabet ‘P’.
def display():
file=open('DIARY.TXT','r')
line=file.readline()
while line:
if line[0]=='P' :
print line
line=file.readline()
file.close() #IGNORE Observe the following table MEMBER carefully and write the name of the RDBMS operation out of (i) SELECTION (ii) PROJECTION (iii) UNION (iv) CARTESIAN PRODUCT, which has been used to produce the output as shown in RESULT. Also, find the Degree and Cardinality of the RESULT.
| NO | MNAME | STREAM |
| M001 | JAYA | SCIENCE |
| M002 | ADIYTA | HUMANITIES |
| M003 | HANSRAJ | SCIENCE |
| M004 | SHIVAK | COMMERCE |
RESULT
| NO | MNAME | STREAM |
| M002 | ADIYTA | HUMANITIES |
Sponsor Area
Mock Test Series
Mock Test Series



