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

1. Given the two C++ array declarations:
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.)
3. In a sorting an array, the items in the array are rearranged so that
for all j and k, if j < k, then array[j]<=array[k]
4.In the definition, double d[10] = {0.0}; only d[0] is initialized to zero,
the rest are uninitialized, just like x in the definition double x;


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

Computer Science & Information Technology

You might also like to view...

Which of the following is disk space that is used for virtual memory in Windows?

A. ram disk B. memory file C. page file D. swap disk

Computer Science & Information Technology

If others have commented on a pin, their comments appear ________ the pinned image

A) to the right of B) beneath C) above D) to the left of

Computer Science & Information Technology

int mystery(int list[], int first, int last){  if (first == last)     return list[first];  else     return list[first] + mystery(list, first + 1, last);} Consider the accompanying definition of the recursive function mystery. Given the declaration:int alpha[5] = {1, 4, 5, 8, 9};what is the output of the following statement?cout << mystery(alpha, 0, 4) << endl;

A. 1 B. 18 C. 27 D. 35

Computer Science & Information Technology

_______ are designed to block intruders from accessing corporate or personal networks.

A. Firewalls B. Network security keys C. SSIDs D. Routers

Computer Science & Information Technology