answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
liubo4ka
2 months ago
6

3. What is the error in the following pseudocode? // The searchName function accepts a string containing the name // to search f

or, an array of strings containing the names, and // an integer specifying the size of the array. The function // searches for the name in the array. If the name is found, the // string containing the name is returned; otherwise a message // indicating that the name was not found in the array is // returned. Function String searchName(String name, String names[], Integer size) Declare Boolean found Declare Integer index Declare String result // Step through the array searching for the // specified name. While found == False AND index <= size − 1 If contains(names[index], name) Then Set found = True Else Set index = index + 1 End If End While // Determine the result. If found == True Then Set result = names[index] Else Set result = "That name was not found in the array." End If Return result End Function
Computers and Technology
1 answer:
zubka84 [1K]2 months ago
5 0
The answer is "In the provided pseudo-code, there are three inaccuracies."
You might be interested in
8. In time series, which of the following cannot be predicted? A) large increases in demand B) technological trends C) seasonal
Natasha_Volkova [1026]

Answer: Random fluctuations.

Explanation: A time series consists of data points ordered chronologically, arranged in equal intervals. Typically, this data sequence is systematic and has defined intervals. However, there’s no allowance for randomness, making unpredictable variations, or random fluctuations, absent in such series. Thus, option (D) is the correct choice.

6 0
2 months ago
Write an expression that will print "Dollar or more" if the value of num_cents is at least a dollar (100 cents is a dollar). Sam
amid [951]
num_cents = 109 if num_cents >= 100: print('Dollar or more') else: print('not a dollar')
7 0
1 month ago
On a typical microprocessor, a distinct I/O address is used to refer to the I/O data registers and a distinct address for the co
maria [1035]

Answer:

First I/O instruction format -> 256 ports

Second I/O instruction format -> 65536 ports

Explanation:

  • The initial instruction format can address 256 ports, computed from eight bits for port addressing as 2^8 = 256 ports.
  • The second instruction format allows for 65536 ports, which can be calculated using sixteen bits for addressing as 2^16 = 65536 ports.

Changing the opcode facilitates the selection between the first and second instruction format, allowing one input or output operation at a given moment.

5 0
2 months ago
While Angela is making modifications to Katie’s Word document, she would like to inform Katie of the reasoning for the change. W
ivann1987 [1066]

Answer:

Using email would be effective.

6 0
2 months ago
Other questions:
  • Why were the practitioners of alternative software development methods not satisfied with the traditional waterfall method?
    9·1 answer
  • In the Scrum board, prioritizing the issue backlog is done in the ———- mode.
    7·1 answer
  • Write a program with total change amount as an integer input, and output the change using the fewest coins, one coin type per li
    11·1 answer
  • (Java)Write a program that calculates and displays the conversion of an entered number of dollars into currency denominations—20
    11·1 answer
  • In 2007, this wireless security algorithm was rendered useless by capturing packets and discovering the passkey in a matter of s
    6·2 answers
  • Define a new object in variable sculptor that has properties "name" storing "Michelangelo"; "artworks" storing "David", "Moses"
    12·1 answer
  • What problem does the DNS solve? How does the DNS help the world wide web scale so that billions of users can access billions of
    11·1 answer
  • Write a program whose input is a string which contains a character and a phrase, and whose output indicates the number of times
    8·1 answer
  • This assignment is based on Exercise 8.4 from your textbook. Each of the following Python functions is supposed to check whether
    11·1 answer
  • A _________ level breach of security could cause a significant degradation in mission capability to an extent and duration that
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!