Day 12 --------------- 1.File Handing 2.Binary File 3.Os Module QUESTIONS[Theorey]: --------------------------- 1.What is mean by File operation? 2.What are the mode available in File Operation? 3.Is it possible to write in file under "r" mode? 4.Explain Purpose of Writable(),readable(),close()? 5.Write a code for write multiple lines in file? 6.What is the difference between readdlines() and readline()? 7.What is purpose of tell() and seek() method? 8.Is it possible to read and write parallel 9.What is the difference between r+ and w+? 10.What is mean by binary File? 11.What are mode used for binary file? 12.What is mean by CSV File?In which module CSV file related is present? 13.What are method used for writing and reading file? 14.What is mean Zip File ? 15.What is the difference between os.makedirs() and os.makedir()? 16.What are methods available in OS Module? QUESTIONS[practical]: ------------------------- QUESTION 1: ----------- QUESTION 1.1: ------------- Description :Create a File in "D:\\File Operations\\read.txt with "r" mode and close file a.Check whether file is readable or not? b.Check whether file is writable or not? c.Check whether file is closed or not? QUESTION 1.2: ------------- Description :Create a File in "D:\\File Operations\\write.txt with "w" mode and close file a.Check whether file is readable or not? b.Check whether file is writable or not? c.Check whether file is closed or not? QUESTION 1.3: ------------- Description :Create a File in "E:\\File\\append.txt with "a" mode and close file a.Check whether file is readable or not? b.Check whether file is writable or not? c.Check whether file is closed or not? QUESTION 1.4: ----------- Description :Create a File in "E:\\File\\append.txt with "x" mode and close file a.Check whether file is readable or not? b.Check whether file is writable or not? c.Check whether file is closed or not? QUESTION 2: ----------- QUESTION 2.1: ------------- Description :Create a File in "E:\\Python Notes\\read.txt with "W" mode and follow below steps Step 1: Write "Welcome to Greens Technology Java Class . Java is simple language ." in that file Step 2: Close the file QUESTION 2.2: ------------- Description :Create a File in "E:\\Python Notes\\read.txt with "a" mode and follow below steps Step 1: Write "Welcome to Greens Technology Java Class . Java is simple language ." in that file Step 2: Replace word java as Python Step 2: Close the file QUESTION 3: ----------- QUESTION 3.1: ------------- Description :Create a File in "E:\\Python Notes\\read.txt with "w" mode and follow below steps Step 1: Write the below content in line by line Java Class Python Class Selenium Class Mobile Testing Class QUESTION 3.2: ------------- Description :Create a File in "E:\\Python Notes\\read.txt with "a" mode and follow below steps Step 1: Add the below content in line by line Api Testing Postman Tool Appium QUESTION 3.3: ------------- Description :Create a File in "E:\\Python Notes\\read.txt with "w" mode and follow below steps Step 1: Add the below Employee details as array of file [100,vel,vel@gmail.com] [200,Nisha,Nisha@gmail.com] [300,Bala,Bala@gmail.com] [400,Ganesh,Ganesh@gmail.com] QUESTION 4: ----------- QUESTION 4.1: ------------- Description :Write a file below content Velmurugan currently focuses on teaching and delivering placement support for all his students, During this training journey, He has taken 400+ batches through different modes (Online, classroom, corporate). Worked with major IT companies such as Verizon, Infosys, Bank of America, as well as several smaller private companies in delivering high-quality training. Through his innovative ideas, Velmurugan has also suggested many customer value adds to different private companies which helped in saving lot of efforts for different customers. QUESTION 4.2: ------------- Description :Read all content in file uing read() method QUESTION 4.3: ------------- Description :Read all content in file after 100th index QUESTION 4.4: ------------- Description :Read all content in file using readlines() method QUESTION 5: ----------- QUESTION 5.1: ------------- Description :Copy Jpeg image from Local Disk D to Local Disk E QUESTION 5.2: ------------- Description :Copy one video Local Disk E to Local Disk D QUESTION 6: ----------- QUESTION 6.1: ------------- Description :Create a CSV File for 10 Employee Details QUESTION 6.2: ------------- Description :Create a CSV File for 10 Students Details QUESTION 6.3: ------------- Description :Read 10 Employee Details from CSV File QUESTION 6.4: ------------- Description :Read 10 Students Details from CSV File QUESTION 7: ----------- QUESTION 7.1: ------------- Description :Create a ZIp File with Following text File Day1Task Day2Task Day3Task QUESTION 7.2: ------------- Description :Read a Zip File with Following text File Day1Task Day2Task Day3Task QUESTION 7.3: ------------- Description :Read each File Content in Zip File Day1Task Day2Task Day3Task QUESTION 8: ----------- QUESTION 8.1: ------------- Description :Create a folder JavaNotes in Local Disk D using Os Module a.Check whether it is directory or not b.Check whether it is file or not QUESTION 8.2: ------------- Description :Create a folder Inheritance with in JavaNotes in Local Disk D using Os Module a.Check whether it is directory or not b.Check whether it is file or not QUESTION 8.3: ------------- Description :Remove a folder JavaNotes in Local Disk D using Os Module QUESTION 8.4: ------------- Description :Remove a folder Inheritance with in JavaNotes in Local Disk D using Os Module QUESTION 9: ----------- QUESTION 9.1: ------------- Description :Display list of folder present in particular folder using Listdir? QUESTION 9.2: ------------- Description :Display sub list of folder present in particular folder using walk?