Comp 230 Final Exam Solutions

Submitted by: Submitted by

Views: 10

Words: 977

Pages: 4

Category: Philosophy and Psychology

Date Submitted: 10/19/2015 01:15 AM

Report This Essay

COMP 230 Final Exam Solutions

https://hwguiders.com/downloads/comp-230-final-exam-solutions

COMP 230 Final Exam Solutions

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 customer Age > 65 OR customer Age = 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 pseudocode?

8. (TCO 3) In order to have the most efficient program, which question should be asked first when working with an AND decision?

9. (TCO 3) 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?

10. (TCO 3) A ______ represents only one of two states, usually expressed as true or false.

11. (TCO 4) How many times will the following loop execute?

12. (TCO 4) Array subscripts are always ____.

13. (TCO 4) When a loop-control variable is not altered during loop execution, a(n) _____ loop may result.

14. (TCO 4) A loop-control variable that is incremented a specific number of times is known as a(n) ____.

15. (TCO 4) A countdown loop operates by the loop-control variable _____.

16. (TCO 4) All of the elements in an array have the same ____.

1. (TCO 1) Which of the following Windows commands will shut down and restart the computer File Server in 2 minutes?

2. (TCO 1) The NETSH command that will set the IP address of the interface name NIC to a DHCP-

supplied IP address is _____.

3. (TCO 1) From a 32-bit Windows CLI, the command used to open a...