subject

1.An algorithm used to find a value in an array is called a . 2.A search algorithm returns the element that we’re searching for, rather than the index of the element we’re searching for.
A. True
B. False
3.Suppose we used our searching algorithm to look for a specific element in a list. The algorithm returned -1. What does this mean?

A. Our algorithm found the element we were looking for which is -1.
B. Our algorithm did not find the element we were looking for.
C. Our algorithm found the element, but could not determine the index.
D. Our algorithm found the element at index -1.

ansver
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 15:20, codie1103
This os integrated the processing power of windows nt with the easy-to-use gui of windows 98. windows 2000 windows 3.11 windows for workgroups windowa millennium edition
Answers: 1
image
Computers and Technology, 22.06.2019 17:40, math31343
Gabe wants to move text from one document to another document. he should copy the text, paste the text, and open the new document highlight the text, select the cut command, move to the new document, make sure the cursor is in the correct location, and select the paste command select the save as command, navigate to the new document, and click save highlight the text, open the new document, and press ctrl and v
Answers: 1
image
Computers and Technology, 23.06.2019 09:00, paulusl19
The first screen you see when you open word2016 what is called?
Answers: 1
image
Computers and Technology, 24.06.2019 02:10, sIatt
Consider the usual algorithm to convert an infix expression to a postfix expression. suppose that you have read 10 input characters during a conversion and that the stack now contains these symbols: (5 points) | | | + | | ( | bottom |_*_| now, suppose that you read and process the 11th symbol of the input. draw the stack for the case where the 11th symbol is
Answers: 2
You know the right answer?
1.An algorithm used to find a value in an array is called a . 2.A search algorithm returns the elem...

Questions in other subjects:

Konu
Mathematics, 23.10.2019 23:00
Konu
Biology, 23.10.2019 23:00