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: 3

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 13:10
What is domain name system (dns)? allows dynamic ip address allocation so users do not have to have a preconfigured ip address to use the network converts ip addresses into domains, or identifying labels that use a variety of recognizable naming conventions the efficient coexistence of telephone, video, and data communication within a single network, offering convenience and flexibility not possible with separate infrastructures the integration of communication channels into a single service
Answers: 2
question
Computers and Technology, 23.06.2019 13:30
What is the primary difference between the header section of a document and the body? a. the body is displayed on the webpage and the header is not. b. the header is displayed on the webpage and the body is not. c. the tag for the body is self-closing, but the tags for the headers must be closed. d. the tag for the header is self closing, but the tag for the body must be closed.
Answers: 3
question
Computers and Technology, 23.06.2019 16:30
How to do this programming flowchart?
Answers: 3
question
Computers and Technology, 23.06.2019 17:30
Write pseudocode to represent the logic of a program that allows the user to enter a value. the program multiplies the value by 10 and outputs the result.
Answers: 1
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
question
Mathematics, 20.09.2020 17:01
question
Mathematics, 20.09.2020 17:01
question
Mathematics, 20.09.2020 17:01
Questions on the website: 13722361