Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Operation of queue follows the Last-In-First-Out (LIFO) model. Operation of stac

ID: 3692480 • Letter: O

Question

Operation of queue follows the Last-In-First-Out (LIFO) model. Operation of stack follows the First-In-First-Out (FIFO) model. A character array variable can call any member functions belongs to string type cout is a global object of type ostrcam. The declaration char *p, q; declares both p and q to be pointers. The statement int *p: p=new int(100); allocates memory for 100 integers. The statement int *p; p=new int(200); allocates memory for 200 integers. The cin.clear() function is used to throw character away from buffer. The setprecision(4) function in a cout statement limits output to 4 characters We can make more than one pointer in a node for link list The size() member function in the string starts remote runs in C++ returns the address of a string returns the address of a long variable returns the length of the contents in the string which of the following data has been sorted already an array with random number a link list with random number a binary tree a binary search tree The substr () function in string class is used for: return one part of current string replace the content of current string insert new content into current string search content from current string none of the above

Explanation / Answer

1. False (Queue follows FIFO)

2. False (Stack Follows LIFO)

3. False (We can not call string member functions like size() on character array pointer)

4. True (It is a Global instance of ostream)

5. False (It declares only p to be a pointer, q is just a char)

6. False (new int(200) allocate for only integer, but initializes it with 200)

7. True

8. False (It just clears stream's internal error state flags)

9. False (It displays 4 digits after dot for floating point values)

10. True (one in singly linked list and 2 in doubly linked list and more)

11. d

12. d

13. d

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote