Question 1.1. (TCO 6) Which line will properly create the ob
Question 1.1. (TCO 6) Which line will properly create the object for VBScript File I/O?(Points : 2) Set fso = Scripting.FileSystemObject fso = CreateObject(“Scripting.FileSystem”) Set fso = CreateObject(“Scripting.FileSystemObject”) Set fso = CreateObject(“WScript.FileSystemObject”)Question 2.2. (TCO 6) Once you have file selected with file =fso.GetFile(“C:DataFile.dat”), what command would allow you to accessthe file attributes?(Points : 2) file.Attrib fso.Attributes file.Attributes fso.AttribQuestion 3.3. (TCO 6) To test to see if a file is not Read Only, use the following VBScript code _____.(Points : 2) If NOT file.Attributes OR 1 Then If NOT file.Attributes AND 1 Then If NOT file.Attributes XOR 1 Then If file.Attributes NOT 1 Then Question 4.4. (TCO 6) To move the file C:DataCustData.txt toC:BackUpCustData.txt in VBScript, use the following command (assumingfso is a Scripting.FileSystemObject) _____.(Points : 2) fso.MoveFile(“C:DataCustData.txt”,”C:BackUpCustData.txt”) fso.MoveFile(”C:BackUpCustData.txt”, “C:DataCustData.txt”) fso.FileMove(“C:DataCustData.txt”,”C:BackUpCustData.txt”) fso.FileMove(”C:BackUpCustData.txt”, “C:DataCustData.txt”)Question 5.5. (TCO 6) The following command opens a text file in VBScript. Set file = fso.OpenTextFile(“C:DataCustData.txt”, ?, ??, ???) To open a file for writing, the value of ? must be _____.(Points : 2) the value of ? must be 1 the value of ? must be 2 the value of ? must be true the value of ? must be false Question 6.6. (TCO 6) The following command opens a text file in VBScript. Set file = fso.OpenTextFile(“C:DataCustData.txt”, ?, ??, ???) To open a file for appending, the value of ? must be _____.(Points : 2) the value of ? must be 1 the value of ? must be 2 the value of ? must be 8 the value of ? must be true Question 7.7. (TCO 6) The following command opens a text file in VBScript. Set file = fso.OpenTextFile(“C:DataCustData.txt”, ?, ??, ???) To ensure that the file is formatted as ASCII instead of Unicode, the value of ??? must be _____.(Points : 2) the value of ??? must be 0 the value of ??? must be -1 the value of ??? must be 2 the value of ??? must be -2Question 8.8. (TCO 6) To complete the Read, Write, or Append operation inVBScript, use the following method (assuming fileObj is a file objectcreated with CreateTextFile( ) or OpenTextFile) _____.(Points : 2) fileObj.Exit fileObj.End fileObj.Next fileObj.CloseQuestion 9.9. (TCO 6) To delete a folder in VBScript, use the followingcommand (assuming fso is a Scripting.FileSystemObject) _____.(Points : 2) fso.FolderDelete(folderName) fso.DeleteFolder(folderName) fso.EraseFolder(folderName ) fso.FolderErase(folderName)Question 10.10. (TCO 6) To test to see if a directory (or folder) existsbefore you write data to it in VBScript, use the following command(assuming fso is a Scripting.FileSystemObject) _____.(Points : 2) If fso.FolderCreated(folderName) Then If fso.FolderExists(folderName) Then If fso.FolderNotFound(folderName) Then If fso.FolderFound(folderName) Then