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.
Answer:
Explanation:
In computing, a device driver is a computer program that operates or controls a particular type of device that is attached to a computer. ...
Answer:
B) shared workspace
Explanation:
There are various terms which are shown below:
Blogging: Blogging is the site in which the person shares its views and opinions about a certain topic. So that it can spread their knowledge throughout the world
Shared workspace: As the name suggests it is a document that is shared with the team members so that they can track any change made by the other team members so that it avoids the duplicate of files. It also reduced the cost and time.
Instant messaging: It is an online chat in which the receiver and the sender communicate with each other in a real-time
Cross-linking: The cross-linking is the technique which links one site to another with a motive to access another site.
So, according to the given scenario, the most appropriate option is b.
Answer:
a) to persuade
she is doing this to propose an idea to the boss of the company
Answer:
1). organizing and leading religious services.
3). praying and promoting spirituality.
4). preparing and delivering sermons or talks.
5). reading from sacred texts.
Explanation:
The clergy is defined as the 'body of persons including ministers, sheiks, priests, and rabbis who are trained and ordained for religious service.' Thus, <u>the more common tasks performed by them include arranging and directing the religious services along with calling upon and encouraging spirituality amongst people</u>. <u>While the less common tasks carried out by them include assembling and carrying out sermons and studying the religious texts</u>. Thus, <u>options 1, 3, 4, and 5</u> are the correct options.