preview

Comp 230 Final Exam Answers

Better Essays

COMP 230 Final Exam Answers http://www.homework-bank.com/downloads/comp-230-final-exam-answers/ COMP 230 Final Exam Answers

1. (TCO 2) What is an example of a string constant?

2. (TCO 2) What is the assignment operator?

3. (TCO 2) The symbols used to describe the logic of a program are known as _____.

4. (TCO 2) If a variable holds the value 12345, what is its data type?

5. (TCO 3) The logical AND operator can replace ____ in how it behaves.

6. (TCO 3) Which pseudocode produces the same result as the following? if customerAge > 65 OR customerAge = 65 then discount = 0.10 else discount = 0 end if?

7. (TCO 3) What logic operator could be used to replace the nested selection structure in this …show more content…

15. (TCO 7) What is the name for a column that uniquely identifies a record?

16. (TCO 7) What is the name for a unique key that is constructed from multiple columns?

1. (TCO 1) Write the Windows CLI commands that will clear the screen; turn off command echo; and display the current IP address, subnet mask, and default gateway.

2. (TCO 1) Write the Windows CLI NET commands that will turn the Spooler service OFF and then ON.

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 tax With held.

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.

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.

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

Get Access