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

1. Given the two C++ array declarations:
int a[10], b[10];
You can successfully compute one array, say a, then assign b to a:
a = b;

2. In the sequential search algorithm, items are examined alternately, odd then evens, in order to find whether the target value is in the array (and if the target is present, to the index of the target.)


1. False
Explanation: You cannot assign arrays in C++. Some compilers allow this, but the Standard says this is illegal, and most compilers do not allow it. To do this you need to write a loop or otherwise copy individual indexed variables.
2. False
Explanation: The sequential search algorithm performs just as the name suggests: The elements are searched in sequential order, until the target is found (success) or the end of the array is found (failure).

Computer Science & Information Technology

You might also like to view...

On the Start menu, some items have a(n) ________, which displays a list of commands or files related to the option

A) Go List B) Open List C) Jump List D) Display List

Computer Science & Information Technology

A 1 GHz _______________-bit or _______________-bit CPU is the minimum requirement for a Windows computer.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

A method to find a specific value for a cell by adjusting the value of one other cell. With this, you can work backward from the desired outcome to find the number necessary to achieve your goal.

A. Goal Seek B. HLOOKUP C. VLOOKUP

Computer Science & Information Technology

The DGET function can return more than one result.

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

Computer Science & Information Technology