• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 1 out of 3 pages
Exam (elaborations)

Programming Logic and Design Chapter 7 Q&A

Document preview thumbnail
Preview 1 out of 3 pages

Programming Logic and Design Chapter 7 Q&A

Content preview

Programming Logic and Design
Chapter 7 Q&A

Which of the following is not an input validation error type?
a) Empty input
b) Incorrect data type
c) Inaccurate data
d) All of these are input validation error types
e) None of these - ANSWER-d) All of these are input validation error types

The priming read is place _______ the loop.
a) Inside
b) Before
c) Below
d) Inside and before
e) Inside and below - ANSWER-b) Before

Which of the following statements is true about this Boolean expression?
score <0 AND score>100
a) This expression is true for numbers between 0 and 100.
b) This expression is true for numbers greater that 100.
c) This expression is true for numbers less that 0.
d) This expression would never be true.
e) None of these - ANSWER-d) This expression would never be true.

If, when asked for a date of birth, the user enters a future date, this error should be
caught by a _______ check.
a) Date
b) Time
c) day
d) Reasonableness
e) None of these - ANSWER-d) Reasonableness

Which of the following library functions could be sued to simplify the process of string
validation?
a) length
b) toUpper
c) isReal
d) isInteger
e) None of these - ANSWER-b) toUpper

True/False. It's best to use a priming read instead of a posttest loop because a
posttest loop does not display an error message when the user enters an invalid
value. - ANSWER-True

True/False. The priming read appears inside the validation loop. - ANSWER-False

Document information

Uploaded on
March 22, 2025
Number of pages
3
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers
$13.99

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

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.
lectknancy
3.8
(84)
Sold
346
Followers
28
Items
26289
Last sold
2 weeks ago




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