subject

Which of the following code segments is the correct solution for the following problem?

Find the first occurrence of the value "Joe" in the array strNames. Save the index of the element containing "Joe" in a variable named intPosition. Discontinue searching the array once the first occurrence of the element "Joe" has been located. Assume any variables you need are already defined.

A. blnFound = False
For intCount = 0 to strNames. Length -1 and Not blnFound
If strNames(intCount) = "Joe" Then
blnFound = True
intPosition = intCount
End If
Next

B. blnFound = True
intCount = 0
Do While (Not blnFound) And (intCount <= strNames. Length Ò€” 1)
If strNames(intCount) = "Joe" Then
blnFound = False
position = intCount
End If
intCount += 1
Loop

C. For intCount = 0 To strNames. length-1
If strNames(intCount) = "Joe" Then
intPosition = intCount
End If
Next

D. blnFound = False
intCount = 0
Do While (Not blnFound) And (intCount < strNames. Length)
If strNames(intCount) = "Joe" Then
blnFound = True
intPosition = intCount
End If
intCount += 1
Loop

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 18:00
While inserting images, the picture command is usually used to insert photos from a digital camera, and the clip art command is usually used to a.edit the sizes and other characteristics of photos that have been inserted. b.take a screenshot of an image and copy it to the clipboard for pasting. c.search for drawings or other images from a library of prepared pictures. d.make illustrations using lines and shapes that are easy to manipulate.
Answers: 1
question
Computers and Technology, 23.06.2019 18:50
Ais a picture icon that is a direct link to a file or folder
Answers: 1
question
Computers and Technology, 24.06.2019 02:10
Which sentences describe the things you need to ensure while creating a sketch and a drawing? while an artistic or creative drawing is a creative expression, a technical drawing is an informative expression. you need to create accurate and neat drawings to convey accurate information. a technical drawing clearly conveys its meaning or information, and does not leave room for interpretation maintain a good speed while creating drawings
Answers: 1
question
Computers and Technology, 24.06.2019 07:00
Selective is defined as paying attention to messages that are consistent with one’s attitudes and beliefs and ignoring messages that are inconsistent.
Answers: 1
You know the right answer?
Which of the following code segments is the correct solution for the following problem?

...
Questions
question
History, 23.02.2021 18:10
question
Mathematics, 23.02.2021 18:10
question
Mathematics, 23.02.2021 18:10