× Didn't find what you were looking for? Ask a question
Top Posters
Since Sunday
a
5
k
5
c
5
B
5
l
5
C
4
s
4
a
4
t
4
i
4
r
4
r
4
New Topic  
ovrpaid ovrpaid
wrote...
Posts: 285
Rep: 0 0
5 years ago
The following pseudocode searches for an item. Which variable represents a flag to indicate whether or not the item being searched for has been found? There are N elements in the array named A.
   Input SearchItem         
   Set X = 0
   Set Y = 0
   While (Y == 0) AND (X < N – 1)
      If A[X] == SearchItem Then
         Set Y = 1
      End If
      Set X = X + 1
   End While
a.     X   b.     Y   c.    A[X]   d.     N
Textbook 
Prelude to Programming

Prelude to Programming


Edition: 6th
Authors:
Read 119 times
1 Reply
Replies
Answer verified by a subject expert
penia_smilespenia_smiles
wrote...
Posts: 241
5 years ago
Sign in or Sign up in seconds to unlock everything for free
More solutions for this book are available here
1

Related Topics

ovrpaid Author
wrote...

5 years ago
Helped a lot
wrote...

Yesterday
this is exactly what I needed
wrote...

2 hours ago
I appreciate what you did here, answered it right Smiling Face with Open Mouth
New Topic      
Explore
Post your homework questions and get free online help from our incredible volunteers
  939 People Browsing
Related Images
  
 36
  
 278
  
 90
Your Opinion
Which industry do you think artificial intelligence (AI) will impact the most?
Votes: 352