COMP 230 VBScript Week 6 Quiz

wjwbarf07
timer Asked: Feb 19th, 2016

Question Description


Question 1. 1. (TCO 6) Which line will properly create the object for VBScript File I/O? (Points : 2)
 
 
 
 

Question 2. 2. (TCO 6) Once you have file selected with file = fso.GetFile(“C:\DataFile.dat”), what command would allow you to access the file attributes? (Points : 2)
 
 
 
 

Question 3. 3. (TCO 6) To test to see if a file is not Read Only, use the following VBScript code _____. (Points : 2)
 
 
 
 

Question 4. 4. (TCO 6) To move the file C:\Data\CustData.txt to C:\BackUp\CustData.txt in VBScript, use the following command (assuming fso is a Scripting.FileSystemObject) _____. (Points : 2)
 
 
 
 

Question 5. 5. (TCO 6) The following command opens a text file in VBScript.
  Set file = fso.OpenTextFile(“C:\Data\CustData.txt”, ?, ??, ???)
  To open a file for writing, the value of ? must be _____. (Points : 2)
 
 
 
 

Question 6. 6. (TCO 6) The following command opens a text file in VBScript.
  Set file = fso.OpenTextFile(“C:\Data\CustData.txt”, ?, ??, ???)
  To open a file for appending, the value of ? must be _____. (Points : 2)
 
 
 
 

Question 7. 7. (TCO 6) The following command opens a text file in VBScript.
  Set file = fso.OpenTextFile(“C:\Data\CustData.txt”, ?, ??, ???)
  To ensure that the file is formatted as ASCII instead of Unicode, the value of ??? must be _____. (Points : 2)
 
 
 
 

Question 8. 8. (TCO 6) To complete the Read, Write, or Append operation in VBScript, use the following method (assuming fileObj is a file object created with CreateTextFile( ) or OpenTextFile) _____. (Points : 2)
 
 
 
 

Question 9. 9. (TCO 6) To delete a folder in VBScript, use the following command (assuming fso is a Scripting.FileSystemObject) _____. (Points : 2)
 
 
 
 

Question 10. 10. (TCO 6) To test to see if a directory (or folder) exists before you write data to it in VBScript, use the following command (assuming fso is a Scripting.FileSystemObject) _____. (Points : 2)
 
 
 
  If fso.FolderFound(folderName) Then 

User generated content is uploaded by users for the purposes of learning and should be used following Studypool's honor code & terms of service.

This question has not been answered.

Create a free account to get help with this and any other question!

Similar Content

Related Tags

Brown University





1271 Tutors

California Institute of Technology




2131 Tutors

Carnegie Mellon University




982 Tutors

Columbia University





1256 Tutors

Dartmouth University





2113 Tutors

Emory University





2279 Tutors

Harvard University





599 Tutors

Massachusetts Institute of Technology



2319 Tutors

New York University





1645 Tutors

Notre Dam University





1911 Tutors

Oklahoma University





2122 Tutors

Pennsylvania State University





932 Tutors

Princeton University





1211 Tutors

Stanford University





983 Tutors

University of California





1282 Tutors

Oxford University





123 Tutors

Yale University





2325 Tutors