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

  What is the total revenue function

The demand curve is given by QD = 500 - 2PX a. What is the total revenue function? b. The marginal revenue function is MR = 250 - Q.

  Ad and as model

Describe how a change in investment can have big impact on GDP causing a nationwide slump. Recall that investment is "small" relative to the entire economy.

  Profit maximizing price and the monopolist profits

1. A monopolist has an (inverse) demand curve for its product of P = 30 - 6Q (where Q is in millions of units). Its total cost curve is: TC = 14 + 3Q + 3Q2. Find the profit maximizing level of output, the profit maximizing price and the monopolist..

  What are real-world examples of government intervention tax

What are real-world examples of government intervention taxation and regulations? What are the goals of each?

  What would happens to hi-techs profits

What would happens to Hi-Tech's profits and the price of books in the short run when Hi-Tech's patents prevents other firms from using the new technology.

  Compute the gain from trade but you should discuss

Compute the gain from trade but you should discuss how comparative advantage is used.

  Identify the amounts of labor

Find the following: First solve this problem using an Excel spreadsheet approach and then do the problem using the optimization procedure; compare the answers for the two methods.

  Intermediate macroeconomics

Show the effects of each of the following shocks on output (Y) and the price level (P) in both the short-run and the medium-run .Assume the economy is originally at the natural level of output (Y n ).

  Financial institutions

"Too Big to Fail" is title of a book and a movie by HBO. It refers to the bailout of the major financial institutions that began in 2008, and at the time there was concern,

  Explain why the black employees are worse off

A) Draw a graph illustrating this monpsonistic scenario with employer discrimination. Note employment and wage for black players and for equally talented white players. B) Explain why in this scenario both the employer and black employees are worse..

  What is the level of saving in equilibrium

What is an autonomous variable and what components of aggregate demand have we specified, in this chapter, as being autonomous?

  Suppose no increase in the price of labor

Suppose no increase in the price of labor, how many workers will the bakery hire.

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