Question: QUESTION 1 The following is a function that performs a: bool XSearch(int[] arr, int sValue) { for (int index = 0; index < arr.Length-1; index++)

QUESTION 1

The following is a function that performs a:

bool XSearch(int[] arr, int sValue) { for (int index = 0; index < arr.Length-1; index++) if (arr[index] == sValue) return true; return false; }

A.

A sequential search.

B.

A binary search

C.

Fast forward Search

QUESTION 5

grade = Grades.GetValue[0,2]

is an example of

A.

Accessing elements in a multidimensional array using the method of the Array class:

B.

Creating a multidimensional array.

C.

None of the answers.

QUESTION 8

The ArrayList class includes several methods and properties for working with ArrayLists. Select all the methods that belong to the ArrayList class:

Add(): Adds an element to the ArrayList.

Subtract (): Subtract an element from the ArrayList.

AddRange(): Adds the elements of a collection to the end of the ArrayList.

DeleteAll(): Removes all elements from the ArrayList.

Clear(): Removes all elements from the ArrayList.

IndexOf(): Returns the index of the first occurrence of the specified item.

QUESTION 19

There are two fundamental ways to search for data in a list:

A.

The sequential search

B.

The analog search

C.

The binary search

QUESTION 20

The two primary operations of a stack are adding items to the stack and taking items off the stack. The _________ operation adds an item to a stack.

A

Push

B

Pop

C

None of the answers.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!