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

1. What is the value of the following function call, given the function definition that follows?
keepGoing (3, 4) // function call

bool keepGoing (int a, int b) // function definition
{
return ( a != b – 1)
}
2. The following code is syntactically correct:
enum aFriend {jane, judy, jim};
enum enemy {tim, tom, trudy};
aFriend mine;
enemy yours;

if (mine < yours)

3. The following code is syntactically correct:
enum shopping {milk, eggs, juice};
shopping item1, item2;

if (item1 < item2)

4. If you write function to input and output variables of an enumeration type, the type definition must have global scope.
5. You cannot use an enumeration type as a cast operator.


1. False
2. False
3. True
4. True
5. False

Computer Science & Information Technology

You might also like to view...

If an Excel printout extends to more than one page, add ________ to the header or footer

A) the file name B) a page number C) the date D) the user's name

Computer Science & Information Technology

All of the related facts about a single person, place, object, or event are contained in a(n) ________

Fill in the blank(s) with correct word

Computer Science & Information Technology

Base column widths can be changed by either using the click and drag technique or the double-click technique

Indicate whether the statement is true or false

Computer Science & Information Technology

You should use the same abbreviation throughout a document.

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

Computer Science & Information Technology