What is the result of the following code?num x = 0num y = 10while x < y   print y * y   x = x + 1endwhile

A. Prints ‘0' ten times
B. Prints the square of every number 0 through 9 (i.e. 0, 1, 4, 9, 16, etc.)
C. Prints 100
D. Prints 100 ten times


Answer: D

Computer Science & Information Technology

You might also like to view...

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

1. If you call setLineWidth to specify the GraphicsContext’s line thickness, all subsequent GraphicsContext method calls that draw lines or shape borders will use this setting. 2. PhongMaterial method setSpecularColor sets the color of a bright spot that makes a 3D shape appear shiny. PhongMaterial method setSpecularPower determines the in- tensity of that spot.

Computer Science & Information Technology

Describe three methods used by HTTP/2 intended to decrease latency and provide for quicker loading of web pages in browsers.

1. Single Constant Connection. 2. Multiplexing. 3. Prioritization. 4. Compression. 5. Server Push. 6. Binary.

Computer Science & Information Technology

In the accompanying figure, the spread setting indicates ____.

A. the size of the blur at the edge of the effect B. the lighting angle at which the effect is applied to the layer C. the offset distance for the shadow-how far it is away from the artwork D. the size of the shadow effect before the edge blurs

Computer Science & Information Technology

A Web browser is an example of which type of network component?

A. network server B. network protocol C. network client D. network interface

Computer Science & Information Technology