What is/are the simple case(s) of recursive function foo?
```
int foo ( int x )
{
int result;
if (x < 0)
result = 0;
else if (x % 2 == 0)
result = x;
else if (x % 3 == 0)
result = foo( x - 1 );
return result;
}
```
a. when x is negative
b. when x is even
c. when x is divisible by 3
d. cases a and b
d. cases a and b
You might also like to view...
Which of the following operations do bidirectional iterators have?
A. Prefix operator* to make available the container element for use as l-value or r-value. B. Overloaded operator+ to add an int value to the iterator to move the place the iterator points forward by the argument number of elements. C. Overloaded operator* to multiply the iterator by an int value to move the place the iterator points by a number of elements equal to the argument. D. Overloaded operator- to move the place the iterator points backware by a number of elements equal to the argument.
When a comment appears inside a JSP scriptlet, it must be a(n) ______________.
a) // comment or a comment delimited by /* and */ b) HTML comment c) JSP comment d) All of the above.
Match each item with a statement below.
A. the folders that are shared by default on a network domain that administrator accounts can access B. permissions assigned by Windows that are attained from a parent object C. a group that can back up and restore any files on a Windows system regardless of access permissions to these files D. a method to control access to a folder or file and can apply to local users and network users E. a group that exists on Windows 8/7/Vista for backwards compatibility purposes with Windows XP F. a method to control access to a shared folder and can be assigned to NTFS or FAT volumes G. a console available only in Windows Professional and business editions that is used to control what users can do and how the system can be used H. gives a user access to a Windows desktop from anywhere on the Internet I. configuring a computer so that it will respond to network activity when the computer is in a sleep state J. a small app or add-on that can be downloaded from a website along with a webpage and is executed by IE to enhance the webpage
Match the following terms to their meanings:
I. Split form II. Nested subform III. Subform IV. Multi-page form V. Linked form A. A related form that is not stored within the main form B. A form that displays data in two views on a single form C. A form that is embedded within another subform D. A form that displays the data from an underlying table or query on more than one page E. A form that is embedded within a main form