Consider the following do-while loop, whose job is to check for a valid customer identification number between the numbers 100 and 1999:do{   cout << "\nEnter an identification number: ";   cin >> idNum;}while ( // Missing expression goes here);Which of the following is the correct missing expression?

A. idNum >= 100 && idNum <= 1999
B. idNum < 100 || > 1999
C. idNum < 100 || idNum != 2000
D. idNum < 100 || idNum > 1999


Answer: D

Computer Science & Information Technology

You might also like to view...

A(n) _______ is the letter sequence of a variable’s name.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

Documents written in MathML and CML are ____ documents.

A. XHTML B. HTML C. XSL D. XML

Computer Science & Information Technology

Answer the following statements true (T) or false (F)

1. The advantage of using XML to define data is that, in the XML format, data are stored in a pure text format and not dependent on any proprietary software. 2. There are three standard formats for mainframe computers: zoned decimal, packed decimal, and binary. 3. A zoned decimal is used to determine whether the XML document content is valid, that is, whether it conforms to the order and type of data that must be present in the document. 4. The packed decimal format is commonly used to save space on file layouts and for elements that require a high level of arithmetic to be performed on them.

Computer Science & Information Technology

You may want to emphasize, or ____, material on the slides by highlighting text or writing on the slides.

A. show B. preserve C. annotate D. delete

Computer Science & Information Technology