subject

Assume that an integer array named intValues contains intNUM elements. Which of the following code segments most efficiently finds the largest element in the array and displays it in a text box named txtMax? Assume that values have already been inserted into the array.

a. For intIndex = 0 To intNUM – 1

If (intValues(intIndex) > CInt(txtMax. Text)) Then

txtMax. Text = intValues(intIndex).ToString

End If

Next intIndex

b. intMax = intValues(0)

For intIndex = 1 to intValues. length - 1

If intValues(intIndex) > intMax Then

intMax = intValues(intIndex)

End If

Next

txtMax. text = intMax. ToString

c. For intIndex = 0 To intNUM

If intValues(intIndex) > intMax Then

intValues(intIndex) = intMax

End If

Next

txtMax. Text = intMax. ToString

d. intMax = intValues(0)

For intIndex = 1 To intValues. length

If intValues(intIndex) > intMax) Then

intMax = intValues(intIndex)

maxText. Text = intMax. ToString

End If

Next

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 12:00
What type of slide show is a dynamic and eye-catching way to familiarize potential customers with what your company has to offer? a. ole b. photo album c. brochure d. office clipboard
Answers: 2
question
Computers and Technology, 23.06.2019 23:30
Match the following errors with their definitions. a. #name b. #value c. #ref d. 1. when a formula produces output that is too lengthy to fit in the spreadsheet cell 2. when you enter an invalid cell reference in a formula 3. when you type text in cells that accept numeric data 4. when you type in a cell reference that doesn’t exist
Answers: 1
question
Computers and Technology, 24.06.2019 16:30
What is the item which could be matched with a statement below? software installed on a computer that produces pop-up ads using your browser an example of social engineering malware loads itself before the os boot is complete type of spyware that tracks your keystrokes, including passwords windows key + l the practice of tricking people into giving out private information or allowing unsafe programs into the network or computer when someone who is unauthorized follows the employee through a secured entrance to a room or building a type of malware that tricks you into opening it by substituting itself for a legitimate program a computer that has been hacked, and the hacker is using the computer to run repetitive software in the background without the user's knowledge an infestation designed to copy itself repeatedly to memory, on drive space, or on a network
Answers: 1
question
Computers and Technology, 24.06.2019 18:30
In what way is your social media footprint related to your digital id
Answers: 1
You know the right answer?
Assume that an integer array named intValues contains intNUM elements. Which of the following code s...
Questions
question
Mathematics, 03.08.2019 01:30
Questions on the website: 13722367