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.
Write the Windows CLI command that will shutdown and restart your computer in 2 minutes with the message “Restart in 2 Minutes!!”
Write the VBScript code lines that perform the following tasks: define a variable name that is initialized to “John Doe” and a variable age that is initialized to 35. Display a message that uses the variables “Your name is John Doe and your age is 35.”
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.
Assuming that you are connected to a database table called Computers with the fields Computer, Hostname Room_Num, CPU_Type, Num_CPUs, Bit_Size, OS_Type, Memory, and HDD_Size, write the SQL Query String sqlStr such that the fields Computer, Room_Num, and OS_Type will be displayed for the records that indicate an OS_Type of ‘Fedora 10’ or ‘Windows XP’. The returned records should be sorted by OS_Type
Write a VBScript function called MaxNum that accepts two numbers and returns the largest of the two numbers.
Write the VBScript code that uses a Do/Until or Do/While Loop to display all of the integer values stored in the array numArray(100)
Write the VBScript code that will copy the file C:DataCustData.txt to C:BackUpCustData.txt using a Scripting.FileSystemObject.
(TCO 2) A variable name should always have _____.
double quotes spaces only lowercase letters a descriptive identifier
(TCO 4) In a VBScript _____ structure, the body of the loop will always execute at least once.
For/Next Loop Do/Loop/Until Do/While/Loop Do/Until/Loop
22. (TCO 6) In creating a VBScript Scripting.FileSystemObject, you must start the code line with _____. (Points : 5) Let fso = CreateObject Set fso = CreateObject Let fso = new Object Set fso = new Object
Question 23.23. (TCO 6) What WSH object is required for VBScript File I/O? (Points : 5) Scripting.FileSystemObject FileSystemObject Scripting.FileSystem WScript.FileSystemObject
Question 24.24. (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”)
26. (TCO 7) In an SQL Query statement used in a VBScript program, what Boolean operator can be used to test a set of conditions whereby any condition being true makes the entire expression true? (Points : 5) OR AND XOR NOT
28. (TCO 7) The questioning that causes extraction of data from a relational database is known as _____. (Points : 5) extraction sorting data refining querying