Computers and Technology
Computers and Technology, 17.10.2020 06:01, Ideen

Steve wrote the given code having an array numArray where i is given the location of the first occurrence of numKey in the array. If numKey is not present in numArray, i is given value of -1. i=0

while(numArray[i]!=numKey)

i++;

if(numArray[i]!=numKey)

i=-1;

In which of the given options will Steve find that the program has failed?

A.
when numKey is the largest element
B.
when numKey is the smallest element
C.
when numKey is 0
D.
when numKey is not in the array

answer
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 21.06.2019 17:30, josephvcarter
Who invented the tv .hint it was 2 people
Answers: 1
image
Computers and Technology, 22.06.2019 00:50, Cnolteb5663
Is one of the most injurious events that can happen to a person in a crash.
Answers: 1
image
Computers and Technology, 22.06.2019 16:20, Aleja9
It policy compliance and emerging technologies respond to the following: propose at least three control measures that organizations need to put in place to ensure that they remain complaint with emerging technologies and in a continually changing it environment. examine the correlation of effective configuration management and change control procedures to remain compliant with emerging technologies and it security changes.
Answers: 2
image
Computers and Technology, 23.06.2019 18:40, brooklyn4932
How does is make you feel when you're kind to others? what are some opportunities in your life to be more kind to your friends and loved ones? imagine a world where kindness has be outlawed. how would people act differently? would your day-to-day life change significantly? why or why not?
Answers: 2
Do you know the correct answer?
Steve wrote the given code having an array numArray where i is given the location of the first occur...

Questions in other subjects:

Konu
Mathematics, 04.03.2021 22:20
Konu
Mathematics, 04.03.2021 22:20
Konu
Social Studies, 04.03.2021 22:20
Konu
Mathematics, 04.03.2021 22:20