Given the following pseudocode, identify the line of code that is recursive.

```
1 Function Sum(N) As Integer
2 If N = 1 Then
3 Set Sum = 1
4 Else
5 Set Sum = Sum(N–1) + N
6 End If
7 End Function```
a. Line 1 b. Line 2 c. Line 3 d. Line 5 e. Line 7


D

Computer Science & Information Technology

You might also like to view...

In programming, combining two strings a and b into a single string ab is called ____ the strings.

A. adding B. concatenating C. merging D. joining

Computer Science & Information Technology

In order to execute code before a form is displayed, place the code in the form’s __________ event handler.

a. SetUp b. Load c. Focus d. Initialize

Computer Science & Information Technology

________ are squares or circles surrounding a selected object that can be used to adjust its size

Fill in the blank(s) with correct word

Computer Science & Information Technology

AVERAGE is an example of a ________ function.

a. logical b. statistical c. navigation d. summary

Computer Science & Information Technology