If the search needs to continue in the execution of the current search function, then line(s) __________ is(are) executed.

```
1 bool search( Node ptr, Bird & bird, Bird dove )
2 {
3 if ( ptr == NULL )
4 return false;
5 if ( ptr->info == dove ) {
6 bird = ptr->info;
7 return true;
8 }
9 return search( ptr->next, bird, dove );
10 }
```
which is called for a linked list (where start points to the first node) using the lines of code:
```
if ( search( start, bird, dove ) )
cout << “search successful” << endl;
```
A. 1
B. 9
C. 4
D. 6-7


1

Computer Science & Information Technology

You might also like to view...

Map the BANK ER schema of Exercise 7.23 (shown in Figure 7.21) into a relational schema. Specify all primary keys and foreign keys. Repeat for the AIRLINE schema (Figure 7.20) of Exercise 7.19 and for the other schemas for Exercises 7.16 through 7.24.

What will be an ideal response?

Computer Science & Information Technology

Array variables are blank before they are assigned array objects.

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

Computer Science & Information Technology

Strings and other objects that can't be changed are known as ____.

A. string constants B. accessor methods C. immutable D. garbage

Computer Science & Information Technology

An often-cited benefit of IT outsourcing is improved core business performance.

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

Computer Science & Information Technology