Details of this Paper

COMP 230 Week 3 Quiz

Description

solution


Question

1. (TCO 3) Which statement best describes the following pseudocode?;if hoursWorked > 40 then;grossPay = 40 * rate + (hoursWorked - 40) * 1.5 * rate;else;grossPay = hoursWorked * rate;endif (Points: 4) One condition/one action;One condition/two alternative actions;Multiple conditions/multiple actions;Multiple conditions/one action;Question 2. 2. (TCO 3) Which VBScript code produces the same result as the following?;if customerAge > 65 OR customerAge = 65 then;discount = 0.10;else;discount = 0.0;end if (Points: 4);if customerAge >= 65 then;discount = 0.10;else;discount = 0.0;end if;if customerAge > 65 then;discount = 0.0;else;discount = 0.10;end if;if customerAge = 65 then;discount = 0.10;else;discount = 0.0;end if;if customerAge <= 65;discount = 0.0;else;discount = 0.10;end 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) XOR;Not;OR;AND;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) XOR;Not;OR;AND;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 share;Net use;Net view;Net display;Question 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")

 

Paper#66954 | Written in 18-Jul-2015

Price : $22
SiteLock