Which loop computes the sum of 1/2 + 2/3 + 3/4 + 4/5 + … + 99/100?

(A) For n As Integer = 1 To 99
s += n / (1 + n)
Next
(B) For q As Integer = 100 To 1
s += (q + 1) /q
Next
(C) For d As Integer = 2 To 99
s = 1 / d + d / (d + 1)
Next
(D) For x As Integer = 1 To 100
s += 1 / (x + 1)
Next


(A) For n As Integer = 1 To 99
s += n / (1 + n)
Next

Computer Science & Information Technology

You might also like to view...

When the Conditional Formatting button is clicked, the ________ displays

A) Conditional Formatting Rules Manager B) Conditional Formatting Wizard C) Conditional Formatting Input Manager D) Conditional Formatting Property

Computer Science & Information Technology

When creating a three-column liquid layout, decide on the width (in percentages) for each of the two wider sidebar columns.

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

Computer Science & Information Technology

The ________ key deletes one letter at a time moving from right to left

A) Erase B) Remove C) Backspace D) Delete

Computer Science & Information Technology

Case Question 1Tayler is the marketing director for the XYZ Corporation.  She recently discovered that many visitors to the company's Web site do not know everything the company has to offer.  She decides to add a jump menu to the homepage, like the one shown in the figure below, that will allow visitors to quickly access other pages. In order to access the Jump Menu dialog box, Tayler should click Insert on the ____ panel, and then click Jump Menu.

A. Forms B. Behaviors C. Elements D. Menu

Computer Science & Information Technology