COMP 230 Week 3 Quiz

COMP 230 Week 3 Quiz

1. (TCO 3) Which statement best describes the following pseudocode?if hoursWorked > 40 thengrossPay = 40 * rate + (hoursWorked 40) * 1.5 * rateelsegrossPay = hoursWorked * rateendif (Points : 4)One condition/one actionOne condition/two alternative actionsMultiple conditions/multiple actionsMultiple conditions/one action Question 2.2. (TCO 3) Which VBScript code produces the same result as the following?if customerAge > 65 OR customerAge = 65 thendiscount = 0.10elsediscount = 0.0end if (Points : 4)if customerAge >= 65 thendiscount = 0.10elsediscount = 0.0end ifif customerAge > 65 thendiscount = 0.0elsediscount = 0.10end ifif customerAge = 65 thendiscount = 0.10elsediscount = 0.0end ifif customerAge <= 65discount = 0.0elsediscount = 0.10end if Question 3.3. (TCO 3) Any one or more conditions in a chain of conditions in a Boolean expression must be true in order for the entire expression to be evaluated as true. This defines the Boolean operator in VBScript. (Points : 4)XORNotORAND Question 4.4. (TCO 3) In VBScript, the Boolean operator can change a true expression to false and a false expression to true. (Points : 4)XORNotORAND Question 5.5. (TCO 3) What Windows CLI command will display all current resources that your computer is making available to other network users? (Points : 4)Net shareNet useNet viewNet displayQuestion 6.6. (TCO 3) Which one of the following object definitions is used in a VBScript program to create, delete, copy, and move files and folders? (Points : 4)Set fso = CreateObject(Scripting.FileSystemObject)Set fileServ = GetObject(WinNT://MyPC/LanManServer,FileService)Set networkObj = WScript.CreateObject(WScript.Network)set WshShell = WScript.CreateObject(WScript.Shell)


Comments are closed.