Object for vb script file

Assignment Help Macroeconomics
Reference no: EM131091752

1. Which line will properly create the object for VBScript File I/O?

  • Set fso = Scripting.FileSystemObject
  • fso = CreateObject("Scripting.FileSystem")
  • Set fso = CreateObject("Scripting.FileSystemObject")
  • Set fso = CreateObject("WScript.FileSystemObject")

2. To create a new file in VBScript, use the following command (assuming fso is a Scripting.FileSystemObject) _____.

  • file = fso.CreateTextFile("C:DataCustData.txt")
  • Set file = fso.CreateFile("C:DataCustData.txt")
  • file = fso.CreateFile("C:DataCustData.txt")
  • Set file = fso.CreateTextFile("C:DataCustData.txt")

3. To copy the file C:DataCustData.txt to C:BackUpCustData.txt in VBScript, use the following command (assuming fso is a Scripting.FileSystemObject) _____.

  • fso.FileCopy("C:DataCustData.txt","C:BackUpCustData.txt")
  • fso.FileCopy("C:BackUpCustData.txt", "C:DataCustData.txt")
  • fso.CopyFile("C:DataCustData.txt","C:BackUpCustData.txt")
  • fso.CopyFile("C:BackUpCustData.txt", "C:DataCustData.txt")

4. (TCO 6) To move the file C:DataCustData.txt to C:BackUpCustData.txt in VBScript, use the following command (assuming fso is a Scripting.FileSystemObject) _____.

  • 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")

5. 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 _____.

  • the value of ? must be 1
  • the value of ? must be 2
  • the value of ? must be true
  • the value of ? must be false

6. The following command opens a text file in VBScript. Set file = fso.OpenTextFile("C:DataCustData.txt", ?, ??, ???) To create a new file if it doesn't exist, the value of ?? must be _____.

  • the value of ?? must be 1
  • the value of ?? must be 2
  • the value of ?? must be false
  • the value of ?? must be true

7. The following command opens a text file in VBScript. Set file = fso.OpenTextFile("C:DataCustData.txt", ?, ??, ???) To read data from this file, which condition will test to make we are not at the end of the line of text?

  • While NOT file.EndOfLine
  • While NOT file.AtEndOfFile
  • While NOT file.EndOfFile
  • While NOT file.AtEndOfLine

8. 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) _____.

  • fileObj.Exit
  • fileObj.End
  • fileObj.Next
  • fileObj.Close

9. In VBScript, to bypass reading the next four characters in a text file, use the following method (assuming fileObj is a file object created with OpenTextFile) _____.

  • fileObj.Bypass(3)
  • fileObj.Skip(3)
  • fileObj.Ignore(3)
  • fileObj.Move(3)

10. 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) _____.

  • If fso.FolderCreated(folderName) Then
  • If fso.FolderExists(folderName) Then
  • If fso.FolderNotFound(folderName) Then
  • If fso.FolderFound(folderName) Then

Reference no: EM131091752

Questions Cloud

What are the potential downsides of co-branding : Have you ever stopped at a gas station and caught a quick lunch at an Arby's or a Blimpie sub sandwich inside? Or have you ever noticed that Baskin-Robbins and Dunkin' Donuts often share the same building?
Provide distributed transaction concurrency : Rank the cloud services options of Software as a Service, Platform as a Service and Infrastructure as a Service in terms of functionality, mobility, and ability to provide distributed transaction concurrency.
Provide cloud computing services : Research the Internet for database vendors that provide cloud computing services and complete the following:
Vision and strategy of marks and spencer : Marks and Spencer is a leading UK based merchandise and food company established in 1884. what different strategies company uses to sustain in this competitive environment. This report should be  presented to the Board of Directors of M&S Company
Object for vb script file : 1. Which line will properly create the object for VBScript File I/O?
What does the term early literacy mean : What kinds of experiences would you encourage parents to do to support early literacy? What would you discourage parents from doing? Give reasons to support your points.
Revitalisation of airasia marketing strategy : Revitalization of airasia Marketing Strategy Following QZ8501 Crash
What has happened to the company since the ipo : Discuss important financial and other facts about the company from its SEC filings.
Determining the market-basket analysis : Suppose you work at Costco or another major, national, big-box store, and you do a market-basket analysis and identify the 25 pairs of items in the store that have the highest lift and the 25 pairs of items that have the lowest lift.

Reviews

Write a Review

Macroeconomics Questions & Answers

  Short run and long run impact on prices

Illustrate graphically the impact in the short run and the long run of a Federal Reserve decision to increase open-market purchases.

  In light of theory of comparative pros are any restrictions

In light of the theory of comparative pros are any restrictions on free international trade advantageous

  Explain the consumption function

CONSUMPTION C =100+0.85Yd 1. explain the consumption function

  Event makes the demand for the dollar to increase

What would this event makes the demand for the dollar to increase or decrease relative to the demand for the pound.

  What is the change in equilibrium expenditure

Suppose the multiplier equals 10.0 and autonomous expenditure decreases by $30 billion. What is the change in equilibrium expenditure?

  A firm has four different investment options

A firm has four different investment options. Option A will give the firm 10 million at the end of one year, 10 million at the end of two years, and 10 million at the end of three years. Option B will give the firm 5 million at the end of one ..

  What is the ethical problem in situation

You need your job and you want to help your boss. But you're just not sure in this particular situation. What is the ethical problem in this situation? What steps should you take? When should you take them? Who should you talk to about this? Why?

  Describe how monetary and fiscal policy affect output

What is the mechanism by which the central bank announcing an inflation target translates into an actual inflation rate and how would your answer to q1 change if households had rational expectations

  What are the four sources of market failure

What are the four sources of market failure? Explain how each of them causes individual profit- and utility-maximizers to make decisions that may be privately optimal but are socially suboptimal. What general policies might correct each of the instan..

  Question 1according to the solow growth model how would

question 1according to the solow growth model how would each of the following developments affect output per worker and

  Subsiquent is an example of an automatic fiscal stabilizer

E;lucidate whether each among the subsiquent is an example of an automatic fiscal stabilizer.

  What would have to happen to the real exchange rate

In order to improve the trade balance by $1 billion, what would have to happen to government spending on goods and services; alternatively, what would have to happen to the real exchange rate

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd