Case-Based Critical Thinking QuestionsCase 1: XYZ SolutionsYou have just started working for XYZ Solutions as a programmer. Your first assignment is to review and correct various code so that you can become familiar with the company's programs.
The following code is not working properly. The message should display four times. What needs to be changed for the code to work properly?
?
Do While intCounter < 5
     MessageBox.Show("OK")
     intCounter = intCounter + 1
Loop

A. intCounter < 5 should be changed to intCounter = 5
B. intCounter < 5 should be changed to intCounter > 5
C. intCounter = 1 should be added before the Do statement
D. intCounter = 0 should be added before the Do statement

Answer: C

Computer Science & Information Technology

You might also like to view...

________ is similar to an e-mail mailing list

A) A bookmark B) A wiki C) A newsgroup D) YouTube

Computer Science & Information Technology

Critical Thinking QuestionsCase A-1Ever since the first time David lost an important document due to a power outage, he has been fanatical about saving his work. Currently, he is creating a Photoshop document for an important client, and his deadline is looming. If he lost the document now, he'd never be able to meet the deadline and he'd probably be fired. David's client is an advertising firm that will be using his document for a big printing job. As this is a draft of the final production piece, he has been asked to e-mail the document when it has been completed so that the board can approve it before the printing begins. Which file format should he use to send the document to the board?

A. .png B. .bmp C. .jpeg D. .pct

Computer Science & Information Technology