Which of the following loops counts backwards from 20 to 10?

A. Declare Numeric countDown = 20
While countdown > 0
   Display countDown
   countDown = countDown - 1
End While
B. Declare Numeric countDown = 20
While countdown > 10
   Display countDown
   countDown = countDown - 1
End While
C. Declare Numeric countDown = 20
While countdown = 10
   Display countDown
   countDown = countDown - 1
End While
D. Declare Numeric countDown = 20
While countdown > 9
   Display countDown
   countDown = countDown - 1
End While


Answer: D

Computer Science & Information Technology

You might also like to view...

What does the first part of the RPM package filename describe?

A. architecture B. release number C. software D. version

Computer Science & Information Technology

The command ____________________ , in the IPCONFIG utility, releases the IP address for the specified adapter.

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

Computer Science & Information Technology

A technician needs to service a laptop computer that is experiencing an intermittent problem with the display. Which of the following will be most effective at helping the technician complete the work in a timely and efficient manner? (Select TWO).

A. Provide the customer with a laptop to use while the failing unit is being repaired. B. Document and label the location of the screws and cables before removing them. C. Compare the system board display connections with a properly functioning laptop. D. Organize and place all parts and screws and in one place. E. Charge the laptop battery pack so it is ready to return to the customer with a full charge.

Computer Science & Information Technology

What type of modulation spreads data across a large-frequency bandwidth instead of traveling across just one frequency band?

A. Infrared (IR) B. Narrowband C. Spread spectrum D. Microwave

Computer Science & Information Technology