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
iogann1982 [59]
3 years ago
13

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 deque elements. Which indices of the internal array elements hold the remaining elements? a) 0 to 2 b) 7 to 9 c) 2 to 4 d) 1 to 3
Computers and Technology
1 answer:
Anika [276]3 years ago
7 0

Full question:

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 deque 2 elements. Which indices of the internal array elements hold the remaining elements? a) 0 to 2 b) 7 to 9 c) 2 to 4 d) 1 to 3

Answer and Explanation:

If you instantiate a capacity of 10 for the queue, you have the queue a capacity of not more than 10 values.

To enqueue means to add an element to the array(if it's not full, n<10)

To dequeue means to delete an element from the array or queue(if n! =0)

From the question, for example:

We create a queue of capacity 10:

Queue q(10);

We add elements/enqueue 5 elements to the queue :

q.queueEnqueue(10);

q.queueEnqueue(5);

q.queueEnqueue(8);

q.queueEnqueue(9);

q.queueEnqueue(2);

If we print this out:

q. queueDisplay()

We would get:

10, 5, 8, 9, 2

We remove elements/dequeue 2 elements from the queue :

q. queuedequeue();

q. queuedequeue();

We print it out:

q. queueDisplay()

8 ,9, 2

We observe that deletion/dequeue starts from the front/first index.

We are left with indices 2, 3, 4 or 2 to 4

Note: the above methods/ functions and objects used are merely for example purposes. The queue uses a floating front design approach.

You might be interested in
A virtual meeting is the same thing as a/an A. online meeting. B. VoIP. C. seminar. D. convention.
Kryger [21]
I believe it's A. online meeting
5 0
3 years ago
You bought a laptop assuming it had application software loaded so you could use it right away, but it did not. What quality con
docker41 [41]

The quality consideration that this laptop did not meet is: fitness for use.

<h3>What is a laptop?</h3>

A laptop can be defined as a small, portable computer that is embedded with a keyboard and mousepad, and it is usually light enough to be placed on an end user's lap while he or she is working.

In this scenario, the laptop you purchased didn't have preinstalled software applications that you could use right away. Thus, we can conclude that the laptop is not <u>fit for use</u> because it didn't meet the quality consideration.

Read more on a laptop here: brainly.com/question/26021194

6 0
2 years ago
Can someone tell me what this means Higfaa
Arisa [49]

Answer:

it's a Jamaican slang

Explanation:

it depends on the wah it is used

7 0
3 years ago
Which options or tools can be used to overlap objects on a slide? Check all that apply.
MArishka [77]

Answer:

1. Launch PowerPoint and open one of your presentations. Click the "Insert" tab on the ribbon, click the "Shapes" button and then click the "5-Point Star" shape to select it.

2. Click anywhere on your slide, hold down your left mouse button and drag it to create a star large enough to cover the object you want to overlay. For example, if you want to overlay a heading, make the star large enough to surround the heading.

3. Right-click the star and select "Format Shape" to open the Format Shape dialog box.

4. Click the "Color" button and then click the color you want to make the star.

5. Drag the "Transparency" slider until the text box next to the slider displays "90%." This value creates a star that is almost transparent but still displays the fill color.

6. Click "Close" to view your star overlay. It will be translucent and display a slight fill color that matches the color you selected.

7. Click inside the star and drag it so that it fits evenly around the object. If the star is too large or too small, click one of the handles along the star's edges and drag the handle to resize the star.

Explanation:

6 0
3 years ago
While loop for python<br> Plz help!!!! It’s due today
DIA [1.3K]

Loop for python and Java developer ghjfgj

6 0
3 years ago
Other questions:
  • When using Internet explore what options will empty the log of Internet sites you have recently viewed
    6·1 answer
  • When the print server processes documents waiting in the queue until the print device is available to accept the print job is ca
    14·1 answer
  • if an open cut or wound is exposed to contamination washing it in hot water and hand soap is not sufficient to keep safe
    14·2 answers
  • a sign is to be hung from the end of a thin pole, and the pole supported by a single cable. your design firm brainstorms the six
    13·1 answer
  • 1.6.M - Assignment: Understanding If Else Statements in Python
    7·1 answer
  • Which of the following is a correct statement about writing down passwords on a ""cheat sheet?""
    7·1 answer
  • what security threats do you face in your everyday computer usage? list the current security you use on your digital devices wha
    9·1 answer
  • What is the purpose of using variables in programming?
    11·1 answer
  • .13 LAB: Library book sorting Two sorted lists have been created, one implemented using a linked list (LinkedListLibrary linkedL
    14·1 answer
  • A(n) _________ produces dynamic reports, supports alerts/rss functionality, and supports user subscriptions.
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!