Comp230-Intro to Scripting

Essay's Score: C

Grammar mistakes

F (49%)

Synonyms

B (81%)

Redundant words

A (100%)

Readability

C (74%)

Table of Content

Week 1 Week 1 – Quiz A 1. The name of the service that controls the queue of print jobs with the Window NET command is ______. SPOOLER 2. Which of the following Windows commands will shutdown and restart your computer in 2 minutes? Shutdown –r -t 120 3. Which Windows shutdown command switch is sued to log off the current user of the local computer? -l 4. Which one of the following Windows AT commands specifies an action that will take place at 3:00 p. m.? At 15:00 command 5. From the Start/Run dialog, the command used to open the 32-bit Windows command prompt is ______. cmd 6.

The Windows CLI command used to turn off the display of the current command in a batch file is ______. @command Week1 – Quiz B 1. Which one of the following Windows NET commands are NOT used to control services with the net ServiceNamer? DELETE 2. The NETSH commands that will set the IP address of the interface name NIC to a DHCP is ________. netsh interface ip set address “NIC” source=dhcp 3. Which of the following Windows commands will shutdown and power down the computer FileServer in 2 minutes? Shutdown –s –m \FileServer –t 2 4. Which one of the following Windows will take place at 3:00 p. m.? At 15:00 command 5.

This essay could be plagiarized. Get your custom essay
“Dirty Pretty Things” Acts of Desperation: The State of Being Desperate
128 writers

ready to help you now

Get original paper

Without paying upfront

The Windows CLI command that is used to display the search path for the executable files is _________. path 6. The Windows CLI command that is used to display the extension recognized as executable files is _____. Echo %PATHEXT% 7. ________ data items may involve organizing them, checking them for accuracy, or performing mathematical operations on them. Processing Week 1 – Quiz C 1. Which one of the following Windows NET commands will allow other computers to access the C:Data directory under the share name UserData? NET SHARE UserData=C:Data 2. Which of the following Windows commands will shutdown and restart your computer in 2 minutes? hutdown –r –t 120 3. Which of the following Windows commands will shutdown and restart the computer FileServer in 2 minutes? shutdown –r –m \FileServer –t 120 4. Which one of the following Windows AT commands specifies an action that will take place at 3:00 p. m.? at 15:00 command 5. From a 32-bit Windows CLI, the command used to open a new CLI window is _____. start 6. The Windows CLI command used to turn off the display of all subsequent commands in a batch file is _____. echo off Week 1 – Quiz D 1. Which one of the following Windows NET commands will allow other computers to access the C:Data directory under the share name UserData?

NET SHARE UserData=C:Data 2. Which of the following Windows commands will shutdown and restart your computer in 2 minutes? shutdown -r -t 120 3. Which Windows shutdown command switch is used to log off the current user of the local computer? -l 4. Which one of the following Windows AT commands specifies an action that will take place at 10:30 a. m. on every Thursday? at 10:30 /every: thur 5. The Windows CLI command that is used to display the search path for the executable files is _____. path 6. The Windows CLI command used to turn off the display of all subsequent commands in a batch file is _____. Echo off Week 1 – Quiz E . The name of the service that controls the queue of print jobs with the Windows NET command is _____. SPOOLER 2. The netsh command that will set the IP Address of the interface name “NIC” to a DHCP supplied IP address is _____. netsh interface ip set address “NIC” source=dhcp 3. Which of the following Windows commands will shutdown and power down the computer FileServer in 2 minutes? shutdown -s -m \FileServer -t 120 4. Which Windows shutdown command switch is used to shutdown and turn off a local or remote computer? /s 5. From a 32-bit Windows CLI, the command used to open a new CLI window is _____. start 6.

The Windows CLI command used to turn off the display of all subsequent commands in a batch file is ______. echo off Week 1 – Quiz F 1. Which one of the following Windows NET commands options is not used to control services with the NET ????? ServiceName? DELETE 2. 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 metric of 1 is _____. netsh interface ip set address “NIC” source=static 192. 168. 100. 10 255. 255. 255. 0 1 3. Which of the following Windows commands will shutdown and power down the computer FileServer in 2 minutes? shutdown -s -m \FileServer -t 120 4.

Which one of the following Windows AT commands specifies an action that will take place at 3:00 p. m.? at 15:00 command 5. The Windows CLI command that is used to display the search path for the executable files is _____. path 6. The Windows CLI command used to turn off the display of the current command in a batch file is _____. @command Week 1 – Quiz G 1. Which one of the following Windows NET commands will allow other computers to access the C:Data directory under the share name UserData? NET SHARE UserData=C:Data 2. The netsh command that will set the IP Address of the interface name “NIC” to a DHCP supplied IP address is _____. etsh interface ip set address “NIC” source=dhcp 3. Which Windows shutdown command switch is used to log off the current user of the local computer? -1 4. Which Windows shutdown command switch is used to shutdown and turn off a local or remote computer? /s 5. From the Start/Run dialog, the command used to open the 32-bit Windows command prompt is _____. cmd 6. The Windows CLI command used to turn off the display of all subsequent commands in a batch file is _____. echo off Week 1 – Quiz H 1. The name of the service that controls the queue of print jobs with the Windows NET command is _____. SPOOLER . Which of the following Windows commands will shutdown and restart your computer in 2 minutes? shutdown -r -t 120 3. Which of the following Windows commands will shutdown and power down the computer FileServer in 2 minutes? shutdown -s -m \FileServer -t 120 4. Which Windows shutdown command switch is used to shutdown and turn off a local or remote computer? /s 5. From the Start/Run dialog, the command used to open the 32-bit Windows command prompt is _____. cmd 6. The Windows CLI command used to turn off the display of the current command in a batch file is _____. @command Week 1 – Quiz I 1.

Which one of the following Windows NET commands will allow other computers to access the C:Data directory under the share name UserData? NET SHARE UserData=C:Data 2. The netsh command that will set the IP Address of the interface name “NIC” to a DHCP supplied IP address is _____. netsh interface ip set address “NIC” source=dhcp 3. Which of the following Windows commands will shutdown and power down the computer FileServer in 2 minutes? shutdown -s -m \FileServer -t 120 4. Which one of the following Windows AT commands specifies an action that will take place at 10:30 a. m. on every Thursday? at 10:30 /every: thur . From a 32-bit Windows CLI, the command used to open a new CLI window is _____. Start 6. The Windows CLI command used to turn off the display of all subsequent commands in a batch file is _____. echo off Week 1 – Quiz J 1. Which one of the following Windows NET commands options is not used to control services with the NET ????? ServiceName? DELETE 2. The netsh command that will set the IP Address of the interface name “NIC” to a DHCP supplied IP address is _____. netsh interface ip set address “NIC” source=dhcp 3. Which of the following Windows commands will shutdown and restart the computer FileServer in 2 minutes? hutdown -r -m \FileServer -t 120 4. Which one of the following Windows AT commands specifies an action that will take place at 3:00 p. m.? at 15:00 command 5. The Windows CLI command that is used to display the search path for the executable files is _____. path 6. The Windows CLI command used to turn off the display of the current command in a batch file is _____. @command Week 1 – Quiz K 1. Which one of the following Windows NET commands options is not used to control services with the NET ????? ServiceName? DELETE 2. The netsh command that will set the IP Address of the interface name NIC” to a DHCP supplied IP address is _____. netsh interface ip set address “NIC” source=dhcp 3. Which Windows shutdown command switch is used to log off the current user of the local computer? -1 4. Which one of the following Windows AT commands specifies an action that will take place at 10:30 a. m. on every Thursday? at 10:30 /every: thur 5. From a 32-bit Windows CLI, the command used to open a new CLI window is _____. cmd 6. The Windows CLI command used to turn off the display of the current command in a batch file is _____. @command Week 1 – Quiz L 1.

The name of the service that controls the queue of print jobs with the Windows NET command is SPOOLER 2. 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 metric of 1 is netsh interface ip set address “NIC” source=static 192. 168. 100. 10 255. 255. 255. 0 1 3. Which of the following Windows commands will shutdown and restart the computer FileServer in 2 minutes? shutdown -r -m \FileServer -t 120 4. Which one of the following Windows AT commands specifies an action that will take place at 10:30 a. m. on every Thursday? at 10:30 /every: thur . From the Start/Run dialog, the command used to open the 32-bit Windows command prompt is _____. cmd 6. The Windows CLI command used to turn off the display of the current command in a batch file is _____. @command Week 1 – Quiz M 1. Which one of the following Windows NET commands options is not used to control services with the NET ????? ServiceName? DELETE 2. 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 metric of 1 is _____. netsh interface ip set address “NIC” source=static 192. 168. 100. 10 255. 255. 255. 0 1 3.

Which Windows shutdown command switch is used to log off the current user of the local computer? -1 4. Which one of the following Windows AT commands specifies an action that will take place at 3:00 p. m.? at 15:00 command 5. From the Start/Run dialog, the command used to open the 32-bit Windows command prompt is _____. cmd 6. The Windows CLI command used to turn off the display of all subsequent commands in a batch file is _____. Echo off Week 1 – Quiz N 1. Which one of the following Windows NET commands will allow other computers to access the C:Data directory under the share nameUserData? NET SHARE UserData=C:Data . Which of the following Windows commands will shutdown and restart your computer in 2 minutes? shutdown -r -t 120 3. Which Windows shutdown command switch is used to log off the current user of the local computer? -1 4. Which one of the following Windows AT commands specifies an action that will take place at 10:30 a. m. on every Thursday? at 10:30 /every: thur 5. The Windows CLI command that is used to display the search path for the executable files is _____. path 6. The Windows CLI command used to turn off the display of all subsequent commands in a batch file is _____. echo off Week 2 Week 2 – Quiz A . What is the problem with the following statement? lastName=”smith Smith should be in double quotes 2. What is the problem with the following statement? 60 + 5 = grade The variable is on the wrong side of the assignment operator 3. What is the best choice for a variable name representing a bank balance? bankBalance 4. What is the best choice for a variable name representing an interest rate? ir 5. What is the addition operator? + 6. What is the best choice for a variable name representing a hard drive size? hardDriveSize 7. If a variable held in value “Farrari,” what would be the data type? String 8.

Given the rules of operator precedence, what value would the variable contain after the following statement was executed? Distance = 2 + 5 * 3 17 9. Which one of the following VBScript Input Methods will allow the user to type data into a VBScript program from the Windows CLO when prompted by the program? WScript. Stdln. ReadLine() 10. Given the rules of operator precedence, what value would the variable contain after the following statement was executed? Distance = 2 + 5 * 5 + 5 32 11. Which one of the following VBScripts Methods will allow a user to enter data into a desktop textbox dialog box? WScript. InputBox()

Week 2 – Quiz B 1. ________ data items may involve organizing them, checking them for accuracy, or performing mathematical operations on them. Processing 2. After a programmer codes the program, the next step is to ________. Test the program 3. What is the problem with the following statement? Grade = 60 + 35 There is no problem with this statement 4. Variable names should be ______. Multiple words without spaces 5. What is the best choice for a variable name representing a payroll tax? payrollTax Identifiers with multiple words usually begin with a lowercase word followed by words with the first letter capitalized . What is an example of a string constant? “oops” – String constants are included in double quotes 7. What is an example of a numeric constant? 12432 8. Given the rules of operator precedence, what value would the variable contain after the following statement was executed? Distance = 2 + 5 * 5 + 5 32 Week 2 – Quiz C 1. A variable name should always ______ descriptive 2. What is the problem with the following statement? 60 + 5 = grade The variable is on the wrong side of the assignment operator 3. Variable names should be ______ Multiple words without spaces 4. An identifier can be the name for a ______ ariable 5. String constants and ______ refer to the same concept String literals 6. What is the division operator? / 7. Given the rules of operator precedence, what value would the variable contain after the following statement was executed? Distance = 2+5*3 17 8. The value of a string constant will always _____ Retain the same value during program execution 9. The order in which numeric operations are carried out is known as _____ Operator precedence 10. Given the rules of operator precedence, what value would the variable contain after the following statement was execute? Distance=2+5*5+5 32 11.

Which one of the following VBScripts Methods will allow a user to enter data into a desktop textbox dialog box? InputBox() Week 2 – Quiz D 1. A variable name should always _____. descriptive 2. An English-like statement used to describe the logic of a program is known as _____. pseudocode 3. What is the best choice for a variable name representing a speed limit? speedLimit 4. An identifier can be the name for a _____. variable 5. What is the addition operator? + 6. What is the division operator? / 7. Given the rules of operator precedence, what value would the variable contain after the following statement was executed? istance = 2 + 21 / 3 9 8. If a variable held the value 12345, what would be its data type? Integer 9. Which one of the following VBScript Output Methods will keep the cursor on the same line as the displayed text? WScript. StdOut. Write( ) 10. Given the rules of operator precedence, what value would the variable contain after the following statement was executed? distance = 2 + 5 * 5 + 5 32 11. Which one of the following VBScript Methods will determine the number of command-line arguments passed to a program? WScript. Arguments. Count Week 2 – Quiz E 1. What is the problem with the following statement? 0 + 5 = grade The variable is on the wrong side of the assignment operator. 2. An English-like statement used to describe the logic of a program is known as _____ pseudocode 3. What is the best choice for a variable name representing a payroll tax value? payrollTax 4. What is the best choice for a variable name representing a bank balance? bankBalance 5. What is the division operator? / 6. What is the best choice for a variable name representing a hard drive size? hardDriveSize 7. Given the rules of operator precedence, what value would the variable contain after the following statement was executed? istance = 2 + 5 * 3 17 8. The value of a string constant will always _____. Retain the same value During program execution 9. Given the rules of operator precedence, what value would the variable contain after the following statement was executed? distance = 2 + 10 * 2 – 1 21 10. Which one of the following VBScript Output Methods will keep the cursor on the same line as the displayed text? WScript. StdOut. Write( ) 11. Which one of the following VBScript Objects allows the user to pass data to a VBScript program using command-line arguments? WScript. Arguments Week 2 – Quiz F 1.

After a programmer codes the program, the next step is to _____. test the program 2. What is the problem with the following statement? 100 = grade The value on the left must be a variable name. 3. Variable names should be _____. multiple words without spaces 4. What is the best choice for a variable name representing an interest rate? interestRate 5. Which one of the following is the multiplication operator? * 6. What is an example of a numeric constant? 12432 7. If a variable held the value 123. 45, what would be its data type? Floating point 8. If a variable held the value 12345, what would be its data type?

Integer 9. Which one of the following VBScript Input Methods will allow the user to type data into a VBScript program from the Windows CLI when prompted by the program? WScript. StdIn. ReadLine( ) 10. Which one of the following VBScript Output Methods will keep the cursor on the same line as the displayed text? WScript. StdOut. Write( ) 11. (TCO 2) Which one of the following VBScript Objects allows the user to pass data to a VBScript program using command-line arguments? WScript. Arguments Week 2 – Quiz G 1. After a programmer codes the program, the next step is to ______. test the program 2.

What is the problem with the following statement? lastName = “smith Smith should be in double quotes 3. An identifier can be the name for a _____. variable 4. What is the best choice for a variable name representing a bank balance? bankBalance 5. What is the subtraction operator? – 6. Which one of the following is the multiplication operator? * 7. If a variable held the value “Ferrari,” what would be its data type? String 8. If a variable held the value 12345, what would be its data type? Integer 9. The order in which numeric operations are carried out is known as _____. operator precedence 10.

Given the rules of operator precedence, what value would the variable contain after the following statement was executed? 32 11. Which one of the following VBScript Methods will determine the value of the second command-line argument passed to a program? WScript. Arguments. Item(1) Week 2 – Quiz H 1. What is the problem with the following statement? 100 = grade The value on the left must be a variable name 2. What is the problem with the following statement? 60 + 5 = grade The variable is on the wrong side of the assignment operator 3. What is the best choice for a variable name representing a payroll tax value? payrollTax 4.

An identifier can be the name for a _____. variable 5. What is an example of a numeric constant? 12432 6. Which one of the following is the multiplication operator? * 7. The value of a string constant will always _____. retain the same value during program execution 8. If a variable held the value 12345, what would be its data type? Integer 9. Which one of the following VBScript Output Methods will keep the cursor on the same line as the displayed text? WScript. StdOut. Write( ) 10. Which one of the following VBScript Input Methods will allow the user to type data into a VBScript program from the Windows CLI when prompted by the program?

WScript. StdIn. ReadLine( ) 11. Which one of the following VBScript Objects allows the user to pass data to a VBScript program using command-line arguments? WScript. Arguments Week 2 – Quiz I 1. What is the problem with the following statement? grade = 60 + 35 There is no problem with this statement 2. What is the problem with the following statement? 60 + 5 = grade The variable is on the wrong side of the assignment operator. 3. Variable names should be _____. multiple words without spaces 4. What is the best choice for a variable name representing a speed limit? speedLimit 5. What is an example of a string constant? “oops” 6.

What is the division operator? / 7. If a variable held the value “Ferrari,” what would be its data type? String 8. If a variable held the value 12345, what would be its data type? Integer 9. Which one of the following VBScript Output Methods can only be used with the cscript Windows Scripting Host interpreter? WScript. StdOut. Write 10. Which one of the following VBScript Output Methods will keep the cursor on the same line as the displayed text? WScript. StdOut. Write( ) 11. Which one of the following VBScript Methods will determine the value of the second command-line argument passed to a program? WScript. Arguments. Item(1)

Week 2 – Quiz J 1. What is the problem with the following statement? 60 + 5 = grade The variable is on the wrong side of the assignment operator 2. A variable name should always _____. descriptive 3. What is the best choice for a variable name representing a sales tax? SalesTax 4. What is the best choice for a variable name representing a speed limit? speedLimit 5. String constants and _____ refer to the same concept string literals 6. What is the addition operator? + 7. If a variable held the value 12345, what would be its data type? Integer 8. When a variable is given a data type and a name it is known as a _____. declaration 9.

Which one of the following VBScript Output Methods will keep the cursor on the same line as the displayed text? v 10. The order in which numeric operations are carried out is known as _____. operator precedence 11. Which one of the following VBScript Methods will determine the value of the second command-line argument passed to a program? WScript. Arguments. Item(1) Week 2 – Quiz K 1. What is the problem with the following statement? 60 + 5 = grade The variable is on the wrong side of the assignment operator 2. After a programmer codes the program, the next step is to _____. test the program 3. An identifier can be the name for a _____. ariable 4. Variable names should be _____. multiple words without spaces 5. What is an example of a numeric constant? 12432 6. What is the subtraction operator? – 7. Given the rules of operator precedence, what value would the variable contain after the following statement was executed? distance = 2 + 5 * 3 17 8. If a variable held the value 123. 45, what would be its data type? Floating point 9. Given the rules of operator precedence, what value would the variable contain after the following statement was executed? 32 10. Which one of the following VBScript Output Methods will keep the cursor on the same line as the displayed text?

WScript. StdOut. Write( ) 11. Which one of the following VBScript Methods will determine the number of command-line arguments passed to a program? WScript. Arguments. Count Week 2 – Quiz L 1. An English-like statement used to describe the logic of a program is known as _____. pseudocode 2. What is the problem with the following statement? 100 = grade The value on the left must be a variable name 3. What is the best choice for a variable name representing a sales tax? SalesTax 4. What is the best choice for a variable name representing a speed limit? speedLimit 5.

Which one of the following is the assignment operator? = 6. What is the addition operator? + 7. ) In some programming languages, programmers must write a variable _____ telling the compiler what data type is expected for the variable name 8. If a variable held the value “Ferrari,” what would be its data type? String 9. Which one of the following VBScript Output Methods will keep the cursor on the same line as the displayed text? WScript. StdOut. WriteLine( ) 10. Which one of the following VBScript Output Methods will keep the cursor on the same line as the displayed text? WScript. StdOut. WriteLine( ) 11.

Which one of the following VBScript Methods will determine the number of command-line arguments passed to a program? WScript. Arguments. Count Week 2 – Quiz M 1. A variable name should always _____. Descriptive 2. What is the problem with the following statement? grade = 60 + 35 There is no problem with this statement 3. What is the best choice for a variable name representing a speed limit? speedLimit 4. What is the best choice for a variable name representing a bank balance? bankBalance 5. What is the division operator? / 6. What is the best choice for a variable name representing a hard drive size? ardDriveSize 7. If a variable held the value “Ferrari,” what would be its data type? String 8. Given the rules of operator precedence, what value would the variable contain after the following statement was executed? distance = 2 + 21 / 3 9 9. Which one of the following VBScript Output Methods will keep the cursor on the same line as the displayed text? WScript. StdOut. Write( ) 10. Which one of the following VBScript Input Methods will allow the user to type data into a VBScript program from the Windows CLI when prompted by the program? WScript. StdIn. ReadLine( ) 11.

Which one of the following VBScript Methods will determine the number of command-line arguments passed to a program? WScript. Arguments. Count Week 2 – Quiz N 1. What is the problem with the following statement? 100 = grade The value on the left must be a variable name 2. What is the problem with the following statement? lastName = “smith Smith should be in double quotes 3. What is the best choice for a variable name representing a speed limit? speedLimit 4. What is the best choice for a variable name representing a bank balance? bankBalance 5. What is the subtraction operator? – 6. What is the addition operator? 7. The value of a string constant will always _____. retain the same value during program execution 8. When a variable is given a data type and a name it is known as a _____. declaration 9. Which one of the following VBScript Output Methods can be used with either the cscript or wscript Windows Scripting Host interpreter? WScript. Echo 10. Which one of the following VBScript Output Methods will keep the cursor on the same line as the displayed text? WScript. StdOut. Write( ) 11. Which one of the following VBScript Objects allows the user to pass data to a VBScript program using command-line arguments?

WScript. Arguments Week 3 Week 3 – Quiz A 1. Which statement best describes the following pseudocode? if hoursWorked > 40 then grossPay = 40 * rate + (hoursWorked – 40) * 1. 5 * rate else grossPay = hoursWorked * rate endif One Condition/two alternative actions 2. In VBScript, the _____ sign means greater than > 3. Every condition 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 AND 4. What logic operator could be used to replace the nested selection structure in this pseudocode? f empMedicalIns = “paid” then print empIdNumber endif if empDentalIns = “installments” then print empIdNumber endif Logical AND 5. What Windows CLI command will display all current connections that your computer has made to network resources on other computers on the network? Net share 6. If you are asked to determine if a value is inside a certain range of values like the age of someone who is a teenager, what Boolean operator should you use for your VBScript conditional expression? AND Week 3 – Quiz B 1. Which keyword is not included in a single-alternative selection?

Else 2. Which pseudocode produces the same result as the following? If customerAge > 65 OR customerAge = 65 then discount = 0. 10 Else discount =0 End if If customerAge >=65 then discount=0. 10 else discount=0 end if 3. What produces the same result as the following pseudocode? If empRate >= 10. 00 then If empRate < 12. 00 then Print empIdNumber, empLastName, empFirstName endif if empRate >= 10. 00 AND empRate < 12. 00 then print empIdNumber, empLastName, empFirstName end if 4. For maximum efficiency in an OR decision, a good rule of thumb is to ______.

First ask the question that is more likely to be true 5. Every decision you make in a computer program involves evaluating a(n) _______ expression. Boolean 6. Only one of the Boolean expressions must be true in order for the entire expression to be evaluated as true for ______. OR 7. In order to have the most efficient program, which question should be asked first when working with an AND decision? The one that is less likely to be true 8. If you are asked to write a program that prints a list of books that have fewer than 30 pages and more than 100 pages, what type of decision structure would you use?

OR Week 3 – Quiz C 1. 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/two alternative actions 2. Which key word is not included in a single-alternative selection? else 3. Every condition 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 AND 4. Which VBScript logical operator has the highest order of precedence? Logical Not . Which one of the following object definitions is used in a VBScript program to Map and Un-map shared network folders to a drive letter? Set networkObj = WScript. CreateObject(“WScript. Network”) 6. Which one of the following object definitions is used in a VBScript program to create and delete shared network folders? Set fileServ = GetObject(“WinNT://MyPC/LanManServer,FileService”) Week 3 – Quiz D 1. Boolean expressions can have which outcomes? True or false 2. Which statement best describes the following pseudocode? if hoursWorked > 40 then grossPay = 40 * rate + (hoursWorked – 40) * 1. * rate else grossPay = hoursWorked * rate endif One condition/two alternative actions 3. Every condition 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. AND 4. In VBScript, the _____ Boolean operator can change a true expression to false and a false expression to true Not 5. Which one of the following object definitions is used in a VBScript program to create and delete shared network folders? Set fileServ = GetObject(“WinNT://MyPC/LanManServer,FileService”) 6.

Which one of the following object definitions is used in a VBScript program to Map and Un-map shared network folders to a drive letter? Set networkObj = WScript. CreateObject(“WScript. Network”) Week 3 – Quiz E 1. What VBScript decision statement is used with a single condition, but only one action? If/Then 2. In VBScript, the _____ sign means greater than > 3. What logic operator could be used in a VBScript program to replace the nested selection structure in this pseudocode? if empMedicalIns = “Y” then if empDentalIns = “Y” then print empIdNumber, empLastName, empFirstName endif endif

Logical AND 4. Which VBScript logical operator has the highest order of precedence? Logical Not 5. Which of the following is a valid possible value for a Boolean expression in VBScript? True 6. What Windows CLI command will display all current resources that your computer is making available to other network users? Net Share Week 3 – Quiz F 1. Boolean expressions can have which outcomes? True or false 2. What VBScript decision statement is used with a single condition, but only one action? If/Then 3. What VBScript symbol characters can be used to change the order of precedence? Parentheses 4.

What logic operator could be used to replace the nested selection structure in this pseudocode? if empMedicalIns = “paid” then print empIdNumber endif if empDentalIns = “installments” then print empIdNumber endif Logical OR 5. What Windows CLI command will display all current resources that your computer is making available to other network users? Net share 6. Which one of the following object definitions is used in a VBScript program to create, delete, copy, and move files and folders? Set fso = CreateObject(“Scripting. FileSystemObject”) Week 3 – Quiz G 1. Which key word is not included in a single-alternative selection? else . Which statement best describes the following pseudocode? if hoursWorked > 40 then grossPay = 40 * rate + (hoursWorked – 40) * 1. 5 * rate else grossPay = hoursWorked * rate endif One condition/two alternative actions 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. OR 4. Every condition 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 AND 5.

What Windows CLI command will display all current resources that your computer is making available to other network users? Net share 6. Which one of the following object definitions is used in a VBScript program to create and delete shared network folders? Set fileServ = GetObject(“WinNT://MyPC/LanManServer,FileService”) Week 3 – Quiz H 1. Which statement best describes the following pseudocode? if hoursWorked > 40 then grossPay = 40 * rate + (hoursWorked – 40) * 1. 5 * rate else grossPay = hoursWorked * rate endif One condition/two alternative actions 2. In VBScript, which symbol is used to test for equality or equivalency? 3. In VBScript, the _____ Boolean operator can change a true expression to false and a false expression to true. Not 4. If you are asked to determine if a value is outside a certain range of values like the age of someone who is not a teenager, what Boolean operator should you use for your VBScript conditional expression? OR 5. What Windows CLI command will display all current connections that your computer has made to network resources on other computers on the network? Net share 6. Which of the following is a possible value for a Boolean expression? False Week 3 – Quiz I 1.

In VBScript, which symbol is used to test for equality or equivalency? = 2. Which key word is not included in a single-alternative selection? else 3. What logic operator could be used in a VBScript program to replace the nested selection structure in this pseudocode? if empMedicalIns = “Y” then if empDentalIns = “Y” then print empIdNumber, empLastName, empFirstName endif endif Logical AND 4. If you are asked to determine if a value is outside a certain range of values like the age of someone who is not a teenager, what Boolean operator should you use for your VBScript conditional expression? OR 5.

If you are asked to determine if a value is inside a certain range of values like the age of someone who is a teenager, what Boolean operator should you use for your VBScript conditional expression? AND 6. What Windows CLI command will display all current resources that your computer is making available to other network users? Net share Week 3 – Quiz J 1. In VBScript, which symbol is used to test for equality or equivalency? = 2. Which statement best describes the following pseudocode? if hoursWorked > 40 then grossPay = 40 * rate + (hoursWorked – 40) * 1. 5 * rate else grossPay = hoursWorked * rate endif

One condition/two alternative actions 3. In VBScript, the _____ Boolean operator can change a true expression to false and a false expression to true. Not 4. What VBScript symbol characters can be used to change the order of precedence? Parentheses 5. What Windows CLI command will display all current resources that your computer is making available to other network users? Net share 6. Which of the following is a valid possible value for a Boolean expression in VBScript? True Week 3 – Quiz K 1. In VBScript, the _____ sign means greater than > 2. Which VBScript code produces the same result as the following? f customerAge > 65 OR customerAge = 65 then discount = 0. 10 else discount = 0. 0 end if if customerAge >= 65 then discount = 0. 10 else discount = 0. 0 end if 3. Which VBScript logical operator has the highest order of precedence? Logical And 4. In VBScript, the _____ Boolean operator can change a true expression to false and a false expression to true Not 5. What Windows CLI command will display all current resources that your computer is making available to other network users? Net share 6. Which of the following is a possible value for a Boolean expression? False Week 3 – Quiz L . Which key word is not included in a single-alternative selection? else 2. Boolean expressions can have which outcomes? True or false 3. If you are asked to determine if a value is outside a certain range of values like the age of someone who is not a teenager, what Boolean operator should you use for your VBScript conditional expression? OR 4. In VBScript, the _____ Boolean operator can change a true expression to false and a false expression to true. Not 5. Which one of the following object definitions is used in a VBScript program to create and delete shared network folders?

Set fileServ = GetObject(“WinNT://MyPC/LanManServer,FileService”) 6. Which one of the following object definitions is used in a VBScript program to Map and Un-map shared network folders to a drive letter? Set networkObj = WScript. CreateObject(“WScript. Network”) Week 3 – Quiz M 1. In VBScript, the _____ sign means greater than > 2. Which statement best describes the following pseudocode? if hoursWorked > 40 then grossPay = 40 * rate + (hoursWorked – 40) * 1. 5 * rate else grossPay = hoursWorked * rate endif One condition/two alternative actions 3.

What logic operator could be used to replace the nested selection structure in this pseudocode? if empMedicalIns = “paid” then print empIdNumber endif if empDentalIns = “installments” then print empIdNumber endif Logical OR 4. What VBScript symbol characters can be used to change the order of precedence? Parentheses 5. Which of the following is a possible value for a Boolean expression? False 6. Which one of the following object definitions is used in a VBScript program to Map and Un-map shared network folders to a drive letter? Set networkObj = WScript. CreateObject(“WScript. Network”) Week 3 – Quiz N 1.

In VBScript, which symbol is used to test for equality or equivalency? = 2. What VBScript symbol characters can be used to change the order of precedence? Parentheses 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 One condition/two alternative actions 4. What logic operator could be used in a VBScript program to replace the nested selection structure in this pseudocode? if empMedicalIns = “Y” then if empDentalIns = “Y” then print empIdNumber, empLastName, empFirstName endif endif

Logical AND 5. If you are asked to determine if a value is inside a certain range of values like the age of someone who is a teenager, what Boolean operator should you use for your VBScript conditional expression? AND 6. Which of the following is a valid possible value for a Boolean expression in VBScript? True Week 4 Week4 – Quiz A 1. Which piece of pseudocode represents incrementing the loop control variable called count? Count = count +1 2. When a loop control variable is not altered during loop execution, a (n)_____loop may result. endless 3. How many times will the following Do While Loop execute the loop body?

Count=0 Do While count <10 Count = count + 1 Loop 10 4. What is the term for the number used to reference an array element? Index 5. Array subscripts are always ______. Positive integers 6. Arrays are most efficiently initialized using _____. Loop structures Week 4 – Quiz B 1. Which of the following is typically the first step in a structured while loop with a fixed number of iterations? Initializing the counter variable 2. Which piece of pseudocode represents checking the loop condition with a fixed number of iterations? While (rep <= 10) 3. In the following pseudocode, what is the sentinel value? 5 4.

A loop-control variable that is incremented a specific number of times is known as a(n) ______. counter 5. When a loop-control variable is not altered during loop execution, a(n) _______ loop may result. infinite 6. In a for loop, a(n) value is used to control how the loop-control variable is incremented or decremented. sentinel 7. A while loop has a(n) ______ condition Pre tested or top tested 8. Which of the following is true of a structured loop? The loop can repeat an infinite number of times 9. What is the term for individual items in an array? Element 10. In VBScript, the first array index is always ______. 1 11. Arrays are most efficiently initialized by _______. Using loops Week 4 – Quiz C 1. What is the name for the statements that are repeated during loop execution? Loop body or code block 2. A countdown loop operates by having the loop control variable _____. decremented 3. In a _____ structure, the body of the loop will always execute at least once. Do/Loop/Until 4. An array stores a _____ in memory collection of values 5. All of the elements in an array have the same _____. Data type 6. In VBScript, the last element of the array dim data(10) is accessed using _____. Data(10)

Week 4 – Quiz D 1. When a value is incremented by 1, _____. 1 is added to the value 2. A countdown loop operates by having the loop control variable _____. decremented 3. Which of the following is NOT automatically handled by the For Loop? Executes input/output statements 4. An array stores a _____ in memory collection of values 5. Arrays are most efficiently processed using _____. loops 6. In VBScript, the array dim data(10) has _____ elements or components. 11 Week 4 – Quiz E 1. Which piece of pseudocode represents incrementing the loop control variable called count? count = count + 1 2.

What is wrong with the following Do While Loop? count = 1 Do while count < 10 print count count = count – 1 Loop The loop will not terminate properly. 3. In a _____ structure, the body of the loop will always execute at least once. Do/Loop/Until 4. An array stores a _____ in memory collection of values 5. Array subscripts are always _____. positive integers 6. Arrays are most efficiently initialized using _____. Loop structures Week 4 – Quiz F 1. When a value is incremented by 1, _____. 1 is added to the value 2. What is wrong with the following Do While Loop? count = 1 Do While count < 10 print count

Loop The loop control variable is not altered. 3. In a _____ structure, the body of the loop will always execute at least once. Do/Loop/Until 4. What is the term for individual items in an array? Element 5. All of the elements in an array have the same _____. Data type 6. In VBScript, the last element of the array dim data(10) is accessed using _____. Data(10) Week 4 – Quiz G 1. When a value is incremented by 1, _____. 1 is added to the value 2. A countdown loop operates by having the loop control variable _____. decremented 3. How many times will the following Do While Loop execute the loop body? count = 0

Do While count < 10 count = count + 1 Loop 10 4. An array stores a _____ in memory Collection of values 5. Array subscripts are always _____. Positive integers 6. In VBScript, the last element of the array dim data(10) is accessed using _____. Data(10) Week 4 – Quiz H 1. Which of the following would NOT be a valid comparison to control a While Loop? count > true 2. What is wrong with the following Do While Loop? count = 1 Do While count < 10 print count Loop The loop control variable is not altered 3. Which of the following is NOT automatically handled by the For Loop? Executes input/output statements . The number of elements in an array is called the _____ of the array. size 5. In VBScript, the first array index is always _____. 0 6. In VBScript, the last element of the array dim data(10) is accessed using _____. Data(10) Week 4 – Quiz I 1. Which piece of pseudocode represents incrementing the loop control variable called count? count = count + 1 2. What is wrong with the following Do While Loop? count = 1 Do while count < 10 print count count = count – 1 Loop The loop will not terminate properly. 3. In a _____ structure, the body of the loop will always execute at least once.

Do/Loop/Until 4. The number of elements in an array is called the _____ of the array. size 5. Arrays are most efficiently processed using _____. loops 6. In VBScript, the array dim data(10) has _____ elements or components. 11 Week 4 – Quiz J 1. When a value is incremented by 1, _____. 1 is added to the value 2. What is wrong with the following Do While Loop? count = 1 Do While count < 10 print count Loop The loop control variable is not altered 3. How many times will the following Do While Loop execute the loop body? count = 0 Do While count < 10 count = count + 1 Loop 10 4.

What is the term for individual items in an array? Element 5. Array subscripts are always _____. Positive integers 6. In VBScript, the first element of the array dim data(10) is accessed using _____. Data(0) Week 4 – Quiz K 1. When a value is incremented by 1, _____. 1 is added to the value 2. When a loop control variable is not altered during loop execution, a(n) _____ loop may result endless 3. In a _____ structure, the body of the loop will always execute at least once. Do/Loop/Until 4. The number of elements in an array is called the _____ of the array size 5. Arrays are most efficiently processed using _____. oops 6. In VBScript, the last element of the array dim data(10) is accessed using _____. Data(9) Week 4 – Quiz L 1. Which of the following would NOT be a valid comparison to control a While Loop? count > true 2. A countdown loop operates by having the loop control variable _____. decremented 3. In a _____ structure, the body of the loop will always execute at least once. Do/Loop/Until 4. The number of elements in an array is called the _____ of the array. size 5. Arrays are most efficiently processed using _____. loops 6. In VBScript, the array dim data(10) has _____ elements or components. 11 Week 4 – Quiz M . What is the name for the statements that are repeated during loop execution? Loop body or code block 2. A countdown loop operates by having the loop control variable _____ decremented 3. A loop within another loop is known as a(n) _____ loop nested 4. The number of elements in an array is called the _____ of the array. size 5. All of the elements in an array have the same _____. data type 6. Arrays are most efficiently initialized using _____ loop structures Week 4 – Quiz N 1. When a value is incremented by 1, _____. 1 is added to the value 2. What is wrong with the following Do While Loop? count = 1

Do While count < 10 print count Loop The loop control variable is not altered. 3. How many times will the following Do While Loop execute the loop body? count = 0 Do While count < 10 count = count + 1 Loop 10 4. An array stores a _____ in memory. collection of values 5. Array subscripts are always _____. positive integers 6. In VBScript, the last element of the array dim data(10) is accessed using _____. data Week 5 Week5 – Quiz A 1. Although it is not a requirement of any programming language, it frequently makes sense to use a ____ to begin the name of a code module because modules perform some action Verb . In VBScript, the proper keyword/s to end a function is/are ______ End Function 3. Variables declared within a module have what scope? Local 4. Which of the following would most likely be named constant? TAX_RATE 5. Which VBScript statements below represent an acceptable definition for the function getCustomerName()? Function getCustomerName() WScript. StdOut. Write(“Enter Customer Name…”) getCustomerName=WScript. Stdln. ReadLine() End Function 6. What is a feature of good program design? Subroutines and Functions should be used to modularize major programming tasks Week 5 – Quiz B . Internal documentation includes ________. Program comments 2. When a program or module uses another module, you can refer to the main program as the _____ program calling 3. If a subroutine or function is useful and well written, you may want to use it more than once within a program or in other programs. This is known as ______. reusability 4. Variables declared within a module have what scope? Local 5. Which of the following would most likely be a named constant? TAX_RATE 6. When writing named constant identifiers, it is a common convention to ______. Use only upper-case letters

Week 5 – Quiz C 1. Source code documentation includes _____. program comments 2. In VBScript, the proper keyword/s to end a function is/are _____. End Function 3. Variables declared within a module have what scope? Nonvisibility 4. Variables that are not specifically used user-input or display output are referred to as _____ variables. intermediate 5. What is NOT a feature of good program design? Avoid the use of indentation 6. Which VBScript statements below represent an acceptable definition for the function getCustomerName( )? Function getCustomerName( ) WScript. StdOut.

Write(“Enter Customer Name … “) getCustomerName = WScript. StdIn. ReadLine( ) End Function Week 5 – Quiz D 1. A program or module that uses another module to perform a task or function is referred to as the _____ program or module calling 2. In VBScript, argument variable names in the calling module _____ in the called Subroutine or Function. do not have to match 3. Variables declared within a module have what scope? Local 4. Which of the following would most likely be a named constant? TAX_RATE 5. An example of an appropriate named constant would be _____. SPEED_OF_SOUND 6.

Which VBScript statements below represent an acceptable definition for the subroutine displayResults( )? Sub displayResults( ) WScript. StdOut. WriteLine(“RESULTS“) End Sub Week 5 – Quiz E 1. A program or module that uses another module to perform a task or function is referred to as the _____ program or module calling 2. Programs are easier to understand if you break their logic down into a few major code blocks called _____. modules 3. In VBScript, variables defined in the main code sequence of a program have _____ scope? global 4. In what way do named constants differ from variables? The value of a constant does not change . What is a feature of good program design? Subroutines and Functions should be used to modularize major programming tasks. 6. Which VBScript statement below is an appropriate call of the function getCustomerName( )? getCustomerName( ) Week 5 – Quiz F 1. A program or module that uses another module to perform a task or function is referred to as the _____ program or module. calling 2. In VBScript, argument variable names in the calling module _____ in the called Subroutine or Function. do not have to match 3. What statement is not an advantage of using modularization? Programs are longer and more complex . Programmers should strive to eliminate all _____ scoped variables from their code in modules global 5. What is a feature of good program design? Subroutines and Functions should be used to modularize major programming tasks. 6. Which VBScript statement below is an appropriate call of the function getCustomerName( )? getCustomerName( ) Week 5 – Quiz G 1. Source code documentation includes _____. Program comments 2. In VBScript, the proper keyword/s to end a function is/are _____. End Function 3. What variable scope is preferable in modules? Local 4. In what way do named constants differ from variables?

The value of a constant does not change 5. What is NOT a feature of good program design? Avoid the use of indentation. 6. Which VBScript statement below is an appropriate call of a Subroutine called displayResults( ) Call displayResults( ) Week 5 – Quiz H 1. Source code documentation includes _____. program comments 2. Programs are easier to understand if you break their logic down into a few major code blocks called _____. modules 3. What variable scope is preferable in modules? Local 4. In what way do named constants differ from variables? The value of a constant does not change. 5.

What is a feature of good program design? Subroutines and Functions should be used to modularize major programming tasks. 6. Which VBScript statements below represent an acceptable definition for the subroutine displayResults( )? Sub displayResults( ) WScript. StdOut. WriteLine(“RESULTS“) End Sub Week 5 – Quiz I 1. A program or module that uses another module to perform a task or function is referred to as the _____ program or module. calling 2. Programs are easier to understand if you break their logic down into a few major code blocks called _____. modules 3. What variable scope is preferable in modules? Local . Programmers should strive to eliminate all _____ scoped variables from their code in modules. global 5. When writing named constant identifiers it is a common convention to _____. use only upper case letters 6. Which VBScript statement below is an appropriate call of a Subroutine called displayResults( )? Call displayResults( ) Week 5 – Quiz J 1. What name is best suited to a module that calculates overtime pay? calculateOvertime( ) 2. Programs are easier to understand if you break their logic down into a few major code blocks called _____. Modules 3. What variable scope is preferable in modules? Local 4.

In what way do named constants differ from variables? The value of a constant does not change 5. When writing named constant identifiers it is a common convention to _____. use only upper case letters 6. Which VBScript statement below is an appropriate call of a Subroutine called displayResults( )? Call displayResults( ) Week 5 – Quiz K 1. Although it is not a requirement of any programming language, it frequently makes sense to use a _____ to begin the name of a code module because modules perform some action verb 2. Programs are easier to understand if you break their logic down into a few major code blocks called _____. odules 3. What variable scope is preferable in modules? Local 4. Which of the following would most likely be a named constant? taxRate 5. What is a feature of good program design? Subroutines and Functions should be used to modularize major programming tasks 6. Which VBScript statement below is an appropriate call of a Subroutine called displayResults( )? Call displayResults( ) Week 5 – Quiz L 1. Although it is not a requirement of any programming language, it frequently makes sense to use a _____ to begin the name of a code module because modules perform some action. erb 2. In VBScript, the proper keyword/s to end a function is/are _____. End Function 3. What variable scope is preferable in modules? Local 4. Which of the following would most likely be a named constant? TAX_RATE 5. What is NOT a feature of good program design? Avoid the use of indentation 6. Which VBScript statement below is an appropriate call of the function getCustomerName( )? getCustomerName( ) Week 5 – Quiz M 1. ) A program or module that uses another module to perform a task or function is referred to as the _____ program or module. calling 2.

If a subroutine or function is useful and well-written, you may want to use it more than once within a program or in other programs. This is known as _____. reusability 3. What statement is not an advantage of using modularization? Programs are longer and more complex 4. Variables that are not specifically used user-input or display output are referred to as _____ variables intermediate 5. What is NOT a feature of good program design? Avoid the use of indentation 6. Which VBScript statements below represent an acceptable definition for the function getCustomerName( )?

Function getCustomerName( ) WScript. StdOut. Write(“Enter Customer Name … “) getCustomerName = WScript. StdIn. ReadLine( ) End Function Week 5 – Quiz N 1. What name is best suited to a module that calculates overtime pay? calculateOvertime( ) 2. If a subroutine or function is useful and well-written, you may want to use it more than once within a program or in other programs. This is known as _____. reusability 3. What statement is not an advantage of using modularization? Programs are longer and more complex. 4. In what way do named constants differ from variables?

Cite this page

Comp230-Intro to Scripting. (2016, Dec 24). Retrieved from

https://graduateway.com/comp230-intro-to-scripting/

Remember! This essay was written by a student

You can get a custom paper by one of our expert writers

Order custom paper Without paying upfront