Question

A) In C++ a linked list is implement as STL. i)vector ii)array iii)list iv)queue B) Which...

A) In C++ a linked list is implement as STL.

i)vector

ii)array

iii)list

iv)queue

B) Which of the following characterizes a stack?

i)first in, first out

ii)first in, never out

iii)last-in, first-out

iv)last in, last out

C) Which of the following characterizes a queue?

i)first in, first out

ii)first in, never out

iii)last-in, first-out

iv)last in, never out

Homework Answers

Answer #1

Answer 1:C
list uses linked list in background
Answer 2: last in first out (LIFO)
elements which inserted last will be removed first
Answer 3: A
first in first out (FIFO)
Elements which are inserted first will be removed first
NOTE : PLEASE COMMENT BELOW IF YOU HAVE CONCERNS.
I AM HERE TO HELP YOUIF YOU LIKE MY ANSWER PLEASE RATE AND HELP ME IT IS VERY IMP FOR ME

NOTE : PLEASE COMMENT BELOW IF YOU HAVE CONCERNS.
I AM HERE TO HELP YOUIF YOU LIKE MY ANSWER PLEASE RATE AND HELP ME IT IS VERY IMP FOR ME

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
A Queue is a linked list with pointers to both the head of the list as...
A Queue is a linked list with pointers to both the head of the list as well as the tail (or the last element) of the list. Given a queue Q, Q.head gives the head of the queue and Q.tail gives the tail of the queue. Give O(1) time algorithms for the following tasks. Enqueue • Input: A queue Q of distinct integers and a queue element a not in Q. 1 • Output: Q with the element a added...
Which of the following are dimensions of product quality? I) aesthetics II) safety III) price IV)...
Which of the following are dimensions of product quality? I) aesthetics II) safety III) price IV) special features Select one: a. I, II only b. I, II, III c. II, III, IV d. I, II, IV e. I, III, IV
   vi. Assume that a linked list stores the data, 20, 11, 13, 19, 12, 14...
   vi. Assume that a linked list stores the data, 20, 11, 13, 19, 12, 14 in that order. Assume that Node head references the first item in the list. What is the result to the linked list of       the following instructions? Assume that newNode          is a Node, already constructed. newNode.data = 1;                         newNode.next = head.next;                         head = newNode;       a. The value 1 is inserted into the linked list before 20       b. The...
The language is Java. Using a singly-linked list, implement the four queue methods enqueue(), dequeue(), peek(),...
The language is Java. Using a singly-linked list, implement the four queue methods enqueue(), dequeue(), peek(), and isEmpty(). For this assignment, enqueue() will be implemented in an unusual manner. That is, in the version of enqueue() we will use, if the element being processed is already in the queue then the element will not be enqueued and the equivalent element already in the queue will be placed at the end of the queue. Additionally, you must implement a circular queue....
Write a C program: Implement the abstract data type (ADT) queue (FIFO) of strings. ADT has...
Write a C program: Implement the abstract data type (ADT) queue (FIFO) of strings. ADT has the following methods: clear – clears the queue; is_empty – returns 1 if the queue is empty, otherwise 0; is_full – returns 1 if the queue is full, otherwise 0; add – adds a new string at the end of the queue; remove – removes the string from the front of the queue. Use ADT queue to solve the following problems: • Write an...
C PROGRAMMING Doubly Linked List For this program you’ll implement a doubly linked list of strings....
C PROGRAMMING Doubly Linked List For this program you’ll implement a doubly linked list of strings. You must base your code on the doubly linked list implementation given in my Week 8 slides. Change the code so that instead of an ‘int’ each node stores a string (choose a suitable size). Each node should also have a next node pointer, and previous node pointer. Then write functions to implement the following linked list operations: • A printList function that prints...
(b) Which is not on-site wastewater treatment system? i) Septic system ii) Pit privy iii) Absorption...
(b) Which is not on-site wastewater treatment system? i) Septic system ii) Pit privy iii) Absorption field iv) Carbonation (f) DNA alternation is caused by i) Carcinogen ii) Teratogen iii) Acetogen iv) Mutagen (g) The relationship between substrate and growth rate of aerobes can be explained by (j) If F/M is high, then i) Longer SRT ii) High yield iii) Better effluent quality iv) Microbes are starving (k) During biological P removal, PAOs i) release S in anaerobic condition ii)...
Enzyme activity in cells is controlled by which of the following? I) covalent modifications II) modulation...
Enzyme activity in cells is controlled by which of the following? I) covalent modifications II) modulation of expression levels III) feedback inhibition IV) allosteric effectors Select one: A. I B. II C. III D. III, IV E. I, II, III, IV
Which one of the following are zero-coupon bonds? I) Treasury bill II) Treasury note III) Treasury...
Which one of the following are zero-coupon bonds? I) Treasury bill II) Treasury note III) Treasury bond IV) Commercial paper V) Agency bonds I, V I, II, III I, IV, V II, III I, IV You buy a call option on Citibank with the strike price of 100. Suppose the Citibank's stock price is 110 on the option expiration date. What is your payoff? 0. 10. 20. -10. -20. According the lectures, what one of the following signals can be...
The functions of the vertebrate skeleton include which of the following? I.           maintenance of body posture II.          calcium...
The functions of the vertebrate skeleton include which of the following? I.           maintenance of body posture II.          calcium homeostasis III.         transfer of muscle forces a. I and II b. II and III c. III d. I and III e. I, II, and III What might cause a person to produce very large amounts of urine? a. drinking large volumes of water relative to their body size b. taking medication that causes increased secretion of antidiuretic hormone (ADH) c. a genetic defect leading to...