Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Exam (elaborations)

Comp 230 Quiz Week 6 (GRADED A) Questions and And Answer solutions | ALL CORRECT

Rating
-
Sold
-
Pages
5
Uploaded on
05-05-2022
Written in
2021/2022

Comp 230 Quiz Week 6 1. Question : (TCO 6) What WSH object is used for VBScript File I/O? Student Answer: Scripting.FileSystemObject FileSystemObject Scripting.FileSystem WScript.FileSystem Object Instructor Explanation: Instructor Explanation: See Chapter 12, Doc Sharing files, and the Week 6 Lecture Points Received: 0 of 2 Comments: Question 2 Question : . (TCO 6) What file attribute value in VBScript indicates that the file is ReadOnly? Student Answer: 0 1 2 4 Instructor Explanation: Instructor Explanation: See Chapter 12, Doc Sharing files, and the Week 6 Lecture Points Received: 2 of 2 Comments: Question 3 Question : . (TCO 6) To move the file C:DataCustD to C:BackUpCustD in VBScript, use the following command (assuming fso is a Scripting.FileSystemObject) . Student Answer: fso.MoveFile(“C:DataCustD”,”C:BackUpCustD”) fso.MoveFile(”C:BackUpCustD”, “C:DataCustD”) fso.FileMove(“C:DataCustD”,”C:BackUpCustD”) fso.FileMove(”C:BackUpCustD”, “C:DataCustD”) Instructor Explanation: Instructor Explanation: See Chapter 12, Doc Sharing files, and the Week 6 Lecture Points Received: 2 of 2 Comments: Question 4 Question : . (TCO 6) To delete a file in VBScript, use the following command (assuming fso is a Scripting.FileSystemObject) . Student Answer: fso.FileDelete(Exists(“C:DataCustD”) fso.DeleteFile(Exists(“C:DataCustD”) fso.EraseFile(Exists(“C:DataCustD”) fso.FileErase(Exists(“C:DataCustD”) Instructor Explanation: Instructor Explanation: See Chapter 12, Doc Sharing files, and the Week 6 Lecture Points Received: 2 of 2 Comments: Question 5 Question : . (TCO 6) The following command opens a text file in VBScript. Set file = fso.OpenTextFile(“C:DataCustD”, ?, ??, ???) To create a new file if it doesn’t exist, the value of ?? must be . Student Answer: the value of ?? must be 1 the value of ?? must be 2 the value of ?? must be false the value of ?? must be true Instructor Explanation: Instructor Explanation: See Chapter 12, Doc Sharing files, and the Week 6 Lecture Points Received: 2 of 2 Comments: Question 6 Question : . (TCO 6) The following command opens a text file in VBScript. Set file = fso.OpenTextFile(“C:DataCustD”, ?, ??, ???) To open a file for writing, the value of ? must be . Student Answer: the value of ? must be 1 the value of ? must be 2 the value of ? must be true the value of ? must be false Instructor Explanation: Instructor Explanation: See Chapter 12, Doc Sharing files, and the Week 6 Lecture Points Received: 2 of 2 Comments: Question 7 Question : . (TCO 6) The following command opens a text file in VBScript. Set file = fso.OpenTextFile(“C:DataCustD”, ?, ??, ???) To ensure that the file is formatted as ASCII instead of Unicode, the value of ??? must be . Student Answer: the value of ??? must be 0 the value of ??? must be -1 the value of ??? must be 2 the value of ??? must be -2 Instructor Instructor Explanation: See Chapter 12, Doc Sharing files, and the Week Explanation: 6 Lecture Points Received: 2 of 2 Comments: Question 8 Question : . (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) . Student Answer: fileObj.Exit fileObj.End fileObj.Next fileObj.Close Instructor Explanation: Instructor Explanation: See Chapter 12, Doc Sharing files, and the Week 6 Lecture Points Received: 2 of 2 Comments: Question 9 Question : . (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) . Student Answer: If fso.FolderCreated(folderName) Then If fso.FolderExists(folderName) Then If fso.FolderNotFound(folderName) Then If fso.FolderFound(folderName) Then Instructor Explanation: Instructor Explanation: See Chapter 12, Doc Sharing files, and the Week 6 Lecture Points Received: 2 of 2 Comments: Question 10 Question : . (TCO 6) To delete a folder in VBScript, use the following command (assuming fso is a Scripting.FileSystemObject) . Student Answer: fso.FolderDelete(folderName) fso.DeleteFolder(folderName) fso.EraseFolder(folderName ) fso.FolderErase(folderName) Instructor Explanation: Instructor Explanation: See Chapter 12, Doc Sharing files, and the Week 6 Lecture Points Received: 2 of 2 Comments: Show Less

Show more Read less
Institution
Course

Content preview

Comp 230 Quiz Week 6

1. Question :
(TCO 6) What WSH object is used for VBScript File I/O?

Student Answer: Scripting.FileSystemObject

FileSystemObject

Scripting.FileSystem

WScript.FileSystemObject

Instructor Instructor Explanation: See Chapter 12, Doc Sharing files, and the Week
Explanation: 6 Lecture
Points Received: 0 of 2
Comments:

Question 2 Question :
. (TCO 6) What file attribute value in VBScript indicates that the file
is ReadOnly?

Student Answer: 0

1

2

4

Instructor Instructor Explanation: See Chapter 12, Doc Sharing files, and the Week 6
Explanation: Lecture
Points Received: 2 of 2
Comments:

Question 3 Question :
. (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) .

Student fso.MoveFile(“C:\Data\CustData.txt”,”C:\BackUp\CustData.txt”)
Answer:

This study source was downloaded by 100000845689434 from CourseHero.com on 05 -05-2022 11:33:57 GMT -05:00


https://www.coursehero.com/file/17498202/Comp-230-Quiz-Week-6/

, fso.MoveFile(”C:\BackUp\CustData.txt”, “C:\Data\CustData.txt”)


fso.FileMove(“C:\Data\CustData.txt”,”C:\BackUp\CustData.txt”)


fso.FileMove(”C:\BackUp\CustData.txt”, “C:\Data\CustData.txt”)

Instructor Instructor Explanation: See Chapter 12, Doc Sharing files, and the Week 6
Explanation: Lecture
Points Received: 2 of 2
Comments:

Question 4 Question :
. (TCO 6) To delete a file in VBScript, use the following command
(assuming fso is a Scripting.FileSystemObject) .

Student Answer: fso.FileDelete(Exists(“C:\Data\CustData.txt”)


fso.DeleteFile(Exists(“C:\Data\CustData.txt”)

fso.EraseFile(Exists(“C:\Data\CustData.txt”)

fso.FileErase(Exists(“C:\Data\CustData.txt”)

Instructor Instructor Explanation: See Chapter 12, Doc Sharing files, and the
Explanation: Week 6 Lecture
Points Received: 2 of 2
Comments:

Question 5 Question :
. (TCO 6) The following command opens a text file in VBScript.
Set file =
fso.OpenTextFile(“C:\Data\CustData.txt”, ?, ??, ???)

To create a new file if it doesn’t exist, the value of ??
must be .

Student Answer: the value of ?? must be 1

the value of ?? must be 2




This study source was downloaded by 100000845689434 from CourseHero.com on 05 -05-2022 11:33:57 GMT -05:00


https://www.coursehero.com/file/17498202/Comp-230-Quiz-Week-6/

Written for

Institution
Course

Document information

Uploaded on
May 5, 2022
Number of pages
5
Written in
2021/2022
Type
Exam (elaborations)
Contains
Unknown

Subjects

$11.49
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF


Also available in package deal

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
EliteStudyDocs Rasmussen College
Follow You need to be logged in order to follow users or courses
Sold
3529
Member since
5 year
Number of followers
2869
Documents
8969
Last sold
1 day ago
High Quality Exams, Study guides, Reviews, Notes, Case Studies

Welcome to EliteStudyDocs, your ultimate destination for high-quality, verified study materials trusted by students, educators, and professionals across the globe. I specialize in providing A+ graded exam files, practice questions, complete study guides, and certification prep tailored to a wide range of academic and professional fields. Whether you're preparing for nursing licensure (NCLEX, ATI, HESI, ANCC, AANP), healthcare certifications (ACLS, BLS, PALS, PMHNP, AGNP), standardized tests (TEAS, HESI, PAX, NLN), or university-specific exams (WGU, Portage Learning, Chamberlain, and more), our documents are 100% correct, up-to-date and reviewed for accuracy. What makes my documents stand out: ✔ Latest 2026/2027 Updates ✔ Verified Questions & Correct Answers ✔ Clean, Professional Exam Format ✔ Designed for High Grades (A/A+) P/S: CHECK OUT THE PACKAGE DEALS

Read more Read less
4.0

696 reviews

5
382
4
127
3
77
2
39
1
71

Trending documents

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Frequently asked questions