Académique Documents
Professionnel Documents
Culture Documents
Visit: www.academicguider.com
Visit: www.academicguider.com
9. (TCO 6) The following command opens a text file in VBScript. Set file =
fso.OpenTextFile("C:\Data\CustData.txt", ?, ??, ???) To open a file for writing, the value of ?
must be_(Points : 5)
10. (TCO 6) Once you have a file selected with file = fso.GetFile("C:\DataFile.dat"), what
command will allow you to access the file attributes? (Points : 5
11. (TCO 6) The following command opens a text file in VBScript. Set file =
fso.OpenTextFile("C:\Data\CustData.txt", ?, ??, ???) To ensure that the file is formatted as ASCII
instead of as Unicode, the value of ??? must be _____. (Points : 5)
12. (TCO 6) The following command opens a text file in VBScript. Set file =
fso.OpenTextFile("C:\Data\CustData.txt", ?, ??, ???) To open a file for reading, the value of ?
must be _____. (Points : 5)
13. (TCO 7) The general syntax of an SQL select statement is _____. (Points : 5)
14. (TCO 7) The questions that cause the database software to extract the appropriate records
from a table and specify the fields to be viewed are called ____. (Points : 5)
15. (TCO 7) What is the name for a column that uniquely identifies a record? (Points : 5)
16. (TCO 7) What is the name for a unique key that is constructed from multiple columns?
(Points : 5)
Final Exam: Page 3
1.(TCO 1) Write the Windows CLI commands thatwill clear the screen; turn off command
echo;and display the current IPaddress,subnet mask, and defaultgateway.(Points : 12)
2. (TCO 1) Write the Windows CLI NET commands that will turn the Spooler service OFF and
then ON. (Points : 12)
3. (TCO 2) Write the VBScript code lines that define a constant TAXRATE that is 25%, a
variable basePay that is $1000, and a variable bonusPay that is $500. Calculate the net pay, and
assign that value to netPay. Then, calculate the taxes, and assign that value to taxWithheld.
(Points : 11)
4. (TCO 3) Given the variable age, write the VBScript code that will decide whether the age is
of a teenager or is not of a teenager. Display the message "The value of age is a Teenager" or
"The value of age is NOT a Teenager," depending on the value of the age. (Points : 11)
Final Exam: Page 4
1. (TCO 4) Write the VBScript code that initializes all the variables in the numArray(100) to the
value numArray(0)=1, numArray(1)=2,&#-123;,numArray(100)=101. (Points : 11)
2. (TCO 5) Write a VBScript procedure (or subroutine) called Swap(ByRef num1,ByRef num2)
that accepts two number variables by reference and exchanges the two values whereby num1 is
assigned the original value of num2, and num2 is assigned the original value of num1. (Points :
11)
3. (TCO 6) Write the VBScript code that defines the Scripting.FileSystemObject and the file
C:\Data\DataFile.txt for writing. Make sure that the file will be created if it doesn't already exist,
and ensure that the format is ASCII. (Points : 11)
4. (TCO 7) Assuming that you are connected to a database called Computers.mdb 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, Hostname, and
CPU_Type will be displayed for all the records that indicate that CPU_Type is "AMD" and the
Bit_Size is 64. The returned records should be sorted by Hostname. (Points : 11)
Visit: www.academicguider.com