Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Exam (elaborations)

COMP 230 Week 8 Final Exam.QUESTIONS AND ANSWERS

Rating
-
Sold
-
Pages
10
Grade
A+
Uploaded on
28-04-2022
Written in
2021/2022

COMP 230 Week 8 Final Exam.QUESTIONS AND ANSWERS

Institution
Course

Content preview

Final Exam: Page 1




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

1

"oops"

12432

o

2. (TCO 2) What is the assignment operator? (Points : 5)

=

^

*

%

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

desk checking

pseudocode

flowcharts

code maps

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

Text

Integer

Floating point

String

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

a sequence of selection structures

nested selection structures

nested and sequenced selection structures

division

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
endif (Points : 5)

if customerAge >= 65 then
discount = 0.10
else
discount = 0
endif

if customerAge > 65 then
discount = 0
else
discount = 0.10
endif

if customerAge discount = 0.10
else
discount = 0
endif

if customerAge discount = 0
else
discount = 0.10
endif


7. (TCO 3) What logic operator could be used to replace the nested selection structure in this
pseudocode?
if empMedicalIns = "Y" then
if empDentalIns = "Y" then
print empIdNumber, empLastName, empFirstName
endif
endif (Points : 5)

Dual-alternative selection

Logical AND

Logical OR

Logical NOT

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

The one that is less likely to be true

The one that is more likely to be true

The one that involves fewer comparisons

The one with the lower value

9. (TCO 3) If you are asked to write a program that prints a list of books that have fewer than 30 pages

Written for

Course

Document information

Uploaded on
April 28, 2022
Number of pages
10
Written in
2021/2022
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

$16.99
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
academicmaster Chamberlain College Of Nursing
Follow You need to be logged in order to follow users or courses
Sold
772
Member since
6 year
Number of followers
676
Documents
5998
Last sold
3 weeks ago
MIDTERM & FINALS

Get all latest Quizzes, Test Banks, Midterm and Final Exams. Ace your Exams with My Papers Guaranteed to help you score A in everything.

3.9

111 reviews

5
60
4
16
3
16
2
7
1
12

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions