Which of the following would be a base case for a summation algorithm (the sum of the numbers from 0 to n)?

a. If n = 0 then summation(n) = 0
b. if n > 0 then summation(n) = 5
c. If n > 0 then summation(n) = get Value(n)
d. If n > 0 then summation(n) = n + summation(n-1)
e. None of these



a. If n = 0 then summation(n) = 0

Computer Science & Information Technology

You might also like to view...

Which of the following types are not built into the C++ language:

a) bool b) real c) short d) int e) long f) double

Computer Science & Information Technology

Define these newsletter parts: a) Folio, b) Kicker, c) Standing head.

What will be an ideal response?

Computer Science & Information Technology

Creating ____ architecture is the process of determining what you need a site to do and then constructing a framework that will allow you to accomplish those goals.

A. content B. design C. information D. structure

Computer Science & Information Technology

A motherboard supporting a dual-voltage memory means that

A) The memory module runs at lower than 1.5-V level. B) The memory module runs at lower than 13.5-V level. C) The memory module runs at lower than 1.35-V level. D) The memory module runs at lower than 1.55-V level.

Computer Science & Information Technology