Which of the following represents an example of data validation?

A. if (daysOverdue > 10 || fineOwed > 0.00) {
   document.write("Please call the library immediately!"
   + BR);
}
B. if (!(daysOverdue > 10 || fineOwed > 0.00)) {
   document.write("Your account is in good standing." + BR);
}
C. if (age >= 18 && age <= 65) {
   document.write("The age is between 18 and 65." + BR);
}
D. while (!(month >= 1 && month <= 12)) {
   month = prompt
("ERROR...Enter a number between 1 and 12",ES);
}


Answer: D

Computer Science & Information Technology

You might also like to view...

We do not use a long chain of ->next’s when working with a linked list (for example, ptr->next->next->next->next->next->info) because:

A. we often do not know how long the linked list is, so we use a loop to move a pointer through the list B. we can only use one next at a time (C++ does not permit more than one in an expression) C. it can become an infinite loop D. doing so can cause memory leak

Computer Science & Information Technology

Which of the following are typically not stored in the front-end database file?

A) Queries B) Tables C) Reports D) Forms

Computer Science & Information Technology

Using the Pen Tool, you can create which of the following?

a. S curve b. polygon c. ellipse d. all of the above

Computer Science & Information Technology

What is the first step in configuring Windows Storage Spaces?

A) Create a pool. B) Partition the drive. C) Format the drive. D) Mount a virtual drive.

Computer Science & Information Technology