ComputerScienceExpert

(11)

$18/per page/

About ComputerScienceExpert

Levels Tought:
Elementary,Middle School,High School,College,University,PHD

Expertise:
Applied Sciences,Calculus See all
Applied Sciences,Calculus,Chemistry,Computer Science,Environmental science,Information Systems,Science Hide all
Teaching Since: Apr 2017
Last Sign in: 103 Weeks Ago, 3 Days Ago
Questions Answered: 4870
Tutorials Posted: 4863

Education

  • MBA IT, Mater in Science and Technology
    Devry
    Jul-1996 - Jul-2000

Experience

  • Professor
    Devry University
    Mar-2010 - Oct-2016

Category > Programming Posted 22 May 2017 My Price 8.00

Scripting.FileSystemObject

10. (TCO 6) In order to move the file C:DataCustData.txt to C:BackUpCustData.txt in a VBScript program, use the following command ( fso is a Scripting.FileSystemObject). (Points : 5)
       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 11.11. (TCO 6) In a VBScript program, to copy the file C:DataCustData.txt to C:BackUpCustData.txt, use the following command (assuming that fso is a Scripting.FileSystemObject) . (Points : 5)
       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”) 

 

Question 12.12. (TCO 6) The following VBScript statement will open an existing text file.

 

            Set file = fso.OpenTextFile(“C:DataCustData.txt”, ?, ??, ???)

 

            To open this file for appending, the value of ? must be _____.(Points : 5)

       1                     
       2                     
       8
       true

) Write the VBScript code lines that perform the following tasks: Define a variable age that is initialized to 35. Display a message that uses the variable to display Your age is 35, but 10 years ago, you were 25. Note: The value 25 is calculated from the variable age. Also note the period at the end of the displayed output.

2. (TCO 3) A movie theater manager says, "Provide a discount to patrons who are under 15 years old and those who are over 55 years old; otherwise, charge the full price." Write the VBScript code that implements this logic. Assume the variables age and price and the constants DISCOUNT_PRICE and FULL_PRICE.

4. (TCO 5) Write a VBScript function called GetName( ) that prompts the user to input his or her name and returns the name value. Use the StdIn and StdOut streams for input and output.

14. (TCO 1) Write the NETSH command that will set the IP address of the interface name “NIC” to 192.168.100.10 255.255.255.0 with a default-gateway of 192.168.100.1 and a metric of 1.

11. (TCO 4) A VBScript array stores a _____ in memory.(Points : 5)

       collection of values
       single value                 
       character value            
       floating point value

5. (TCO 3) Every decision you make in a computer program involves evaluating one or more _____ expression(s).(Points : 5)

       mathematical               
       environmental              
       conditional
       assignment       

3. (TCO 3) What VBScript Boolean operator could be used to combine the following decision-making structure into a single If/Then structure?(Points : 5)

       XOR                
       AND                
       OR                     
       NOT    

1. (TCO 5) Intermediate values that are not inputted or displayed should be stored in _____ variables.(Points : 5)

       unnamed                     
       work                
       temporary
       global

2. (TCO 1) The Windows CLI shell command that is used to display all of the environmental variables and their values is _____.(Points : 5)

       env                  
       set       
       var                  
       shell       

9. (TCO 2) The value of a string constant will _____.(Points : 5)

       change during the execution of a program                    
       remain the same until it is assigned a new value                       
       be on the left side of an assignment operation               
       retain the same value during program execution 

 

 

 

Answers

(11)
Status NEW Posted 22 May 2017 07:05 AM My Price 8.00

-----------

Not Rated(0)