MCQOPTIONS
Saved Bookmarks
This section includes 2 Mcqs, each offering curated multiple-choice questions to sharpen your Data Structure knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
What are the set of functions that are to be executed to get the following output?cat |
| A. | push(c, s); push(a, s); push(t, s); |
| B. | n pop(s); pop(s); pop(s); |
| C. | push(c,s); pop(s); push(a,s); pop(s);push(t,s);pop(s); |
| D. | pop(c ); pop(a); pop(t); |
| E. | push(c,s); push(a,s); pop(t); |
| Answer» C. push(c,s); pop(s); push(a,s); pop(s);push(t,s);pop(s); | |
| 2. |
What will be the word obtained if the word abbcabb is reversed using a stack? |
| A. | bbabbca |
| B. | abbcabb |
| C. | bbacbba |
| D. | bbacabb |
| Answer» D. bbacabb | |