The function int fact(int k) { return k*fact(k-1); if (k==0) return 1; }

A) computes the factorial on an integer k passed to it as parameter.
B) returns the value 1 if it is passed a value of 0 for the parameter k.
C) does not correctly handle its base case.
D) works for all non-negative values of k, but not for negative numbers.
E) None of the above

C) does not correctly handle its base case.

Computer Science & Information Technology

You might also like to view...

A motherboard has two memory expansion slots colored blue and two memory expansion slots colored yellow. Which two designs would enable 4GB of RAM to be installed and use dual channeling? (Select two.)

A) Four 1GB modules installed into the memory expansion slots B) 2GB module in one blue expansion slot and two 1GB modules in the yellow expansion slot C) Two matching 2GB modules in the blue expansion slots D) Two matching 2GB modules installed in one blue expansion slot and one yellow expansion slot E) Four matching 1GB modules in all expansion slots

Computer Science & Information Technology

Digital data is _____ and analog information is _____.

A. continuous; discrete B. discrete; continuous

Computer Science & Information Technology