1answer.
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
Olegator [25]
2 years ago
9

Assume you are using the text's array-based queue and have just instantiated a queue of capacity 10. You enqueue 5 elements and

then dequeue 2 elements. Which indices of the internal array elements hold the remaining elements
Computers and Technology
1 answer:
ASHA 777 [7]2 years ago
3 0

The indices of the internal array elements that hold the remaining elements is c) 2 to 4

<h3>Calculations and Parameters:</h3>

For us to create a capacity of 10 for the queue, we would enqueue:

We would create a queue of capacity 10:

<h3>Queue q(10);</h3>

We add elements/enqueue 5 elements to the queue :

  • q.queueEnqueue(10);
  • q.queueEnqueue(5);
  • q.queueEnqueue(8);
  • q.queueEnqueue(9);
  • q.queueEnqueue(2);

Printing this would give:

q. queueDisplay()

10, 5, 8, 9, 2

Next, we would remove elements/dequeue 2 elements from the queue :

q. queuedequeue();

q. queuedequeue();

Printing it would be:

q. queueDisplay()

8 ,9, 2

Observing this, the deletion/dequeue starts from the front/first index.

The remaining indices of the internal array elements are: 2, 3, 4 or 2 to 4

Read more about arrays and enqueue here:

brainly.com/question/24188935

#SPJ1

You might be interested in
HELP ME PLEASE ASAP!!!
Ratling [72]

The answer should be: True

5 0
3 years ago
Read 2 more answers
What is the foundational domain for business
mr Goodwill [35]

a fundamental domain or fundamental region is a subset of the space which contains exactly one point from each of these orbits . It serves as a geometric realisation for the abstract set of representatives of the orbits . There are many ways to choose a fundamental domain .

hope this help

7 0
3 years ago
A measure of technological evolution is the web year which is
olya-2409 [2.1K]
The correct answer is: <span>1/7 of a calendar year

</span>A Web year has been said to be the length of time it takes for Internet technology to evolve as much as technology in another environment might evolve in a calendar year. The term was coined at a time when the Internet and Web technology and culture were progressing at a phenomenal rate. 

<span>The term is sometimes attributed to Lou Gerstner, then head of IBM. According to Larry Kunz, then the editor of IBM's Network Connection, the idea of a Web year was introduced by an unnamed female colleague in 1996. </span>

<span>In a 1996 interview in the WWW Journal, Tim Berners-Lee, chief inventor of the Web technologies, said: "What is a Web year now, about three months? And when people can browse around, discover new things, and download them fast, when we all have agents - then Web years could slip by before human beings can notice." When the interviewer suggested that such a pace would "take a physical toll" on people who work on the Web, Berners-Lee agreed that was true, but added that they would also "be able to live for three or four hundred Web years, which will be very exciting."</span>
7 0
3 years ago
What is the best way to delete a program that you downloaded that says that its open but its not opened in your screen? I will g
NNADVOKAT [17]

Answer:

Ctrl+Alt+Del and open Task Manager. Right-click and select End Process. Proceed with uninstalling the program as normal, now that the program has been closed.

Explanation:

7 0
3 years ago
Read 2 more answers
Wassup everyone. what are you up to ?
ASHA 777 [7]

Answer:

Today is my birthday

Explanation:

And I'm very excited

6 0
3 years ago
Read 2 more answers
Other questions:
  • What is the purpose of a title slide? A) To add titles to each slide B) To introduce the presentation C) To describe the resolut
    12·2 answers
  • Technician A says that a ratio is a comparison between two values. Technician B says that in a compression ratio, the main value
    5·1 answer
  • According to the chart, which degree would you have to earn in order to make the most amount of money? A bar graph titled Averag
    13·2 answers
  • When is it most appropriate to quote from an e-mail message in a response?
    9·2 answers
  • A(n) is a list of commands that tell your computer what to do.
    14·2 answers
  • Which type of financial institution typically has membership requirements?
    9·2 answers
  • Open the same text file that you have created in Exercise-Four ( in the sample output, I have created the file name personal). W
    7·1 answer
  • Edhesive assignment 1 movie ratings
    9·1 answer
  • A falsh movies consist of how many frame? ​
    12·2 answers
  • Please help me i’ll give you brainlist
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!