Question
QUESTION 10 The following is a function that performs a: bool XSearch(int[] arr, int sValue) { for (int index = 0; index < arr.Length-1; index++)
QUESTION 10
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 sequential search. | ||
A binary search | ||
Fast forward Search | ||
None of the answers. |
QUESTION 13
Data in a stack are added and removed from only one end of the list, whereas data in a queue are added at one end and removed from the other end of a list.
True
False
QUESTION 17
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 18
The data structures used in this course are found in the .NET Framework class library System
True
False
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started