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
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
Get Answers For Free
Most questions answered within 1 hours.