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
(TCO 1) You work for a local construction firm, “DeVry Engineering Group” and your supervisor wants to test your knowledge and skills with Microsoft Excel and has instructed you to develop a spreadsheet to calculate
9. Write a line of code that initializes the double precision variable bankBalance to 136.05.
previous pointer value to NULL, next to temp1 and temp1 previous to null , where data from n is given to head and then list is displayed. */
(2.) Call for a function look up to see if there is any matching entries. If no, return value '1'.(3.) Set memory for newly
you will find that in any computer language you use. Here is how the “if” statement
by 1, and then the new value is used in the expression in which it appears. For example,
In this presentation I will be looking at data types and how they can be used and represented.
Claudio is okay with that because he can fill out the form without help. However, when he gets to the blank that says “Middle Name” he doesn’t know what to do. Claudio doesn’t have a middle name. When he asks a paralegal at the ABC Legal Clinic what to do with this blank, the paralegal
List all variables you will use (use valid variable names). Indicate whether the data type is string, integer, or double, and so on.
If ans <> "Y" And ans <> "y" And ans <> "N" And ans <> "n" Then
Feedback: See pages 118, 120-121. A defendant must raise objections to venue, personal jurisdiction, and form and method of service of process in their first response to the complaint (pre-answer or answer) or the issue is waived and may not be reconsidered at a later time.
As such, The particular consideration in the advertising plus the imagination in the general public include grabbed by it. During the last few years,Cell phone devices have received dramatical increase as well as there are at present close to a pair of billion dollars usersworld-wide. Indeed, in many formulated countries, cellular phones are getting to be an essential company deviceas well as a part of everyday life, as well as in many creating countries, cellular phones tend to be easily supplantingantiquated wireline
B. Matching type. Match concepts in column left with the best answers in column right. Write letters only.
25. In a science fiction movie, an officer is implementing an experimental process to prevent a catastrophic geologic event affecting a primitive indigenous alien population. A crew of a starship vessel is willing to save him; however, environmental conditions prevent simple extraction. The commander refuses to let the crew extract the officer, proclaiming “the needs of the many outweigh the needs of the few, or in this case, one.” The commander’s conclusion is based on which moral theory?
if(*stringNav != '1 ' && *stringNav != '2 ' && *stringNav != '3 ' &&