Home

Designed for school students & undergraduate entrance aspirants preparing for board exams, NEET, JEE and more.

JEE (Mains & Adv)NEET (UG)CBSE BoardISC BoardUP BoardCUET

Built for graduates & professionals targeting competitive exams — UPSC, CAT, GMAT, GRE, IELTS, banking & more.

GREGMATCATUPSCIBPSIELTSTOEFLSATACT

Core school & undergraduate subjects aligned with CBSE, ISC, UP Board, NEET and JEE syllabi.

PracticeMock TestsResources
Back to Computer Science
Question 1 of 20

Random Computer Science Practice

20 randomly selected questions from all Computer Science topics

Progress: 0%
Success Rate: 0%
Question 1
computational-thinking-and-programming-2 > data-structures

A list contains following record of course details for a University: [Course_name, Fees, Duration] Write the following user defined functions to perform given operations on the stack named Univ: (i) Push_element(): To push an object containing the Course_name, Fees and Duration of a course, which has fees greater than 100000 to the stack. (ii) Pop_element(): To pop the object from the stack and display it. Also, display "Underflow" when there is no element in the stack.

For example: If the lists of courses details are: ["MCA", 200000, 3] ["MBA", 500000, 2] ["BA", 100000, 3]

The stack should contain: ["MBA", 500000, 2] ["MCA", 200000, 3]

0 of 20 answered

Random Practice Session

Questions Answered0 / 20
Correct Answers0
Session Success Rate0%
Random Practice Ready! 🎯

Community Stats

Active Learners30
Questions Attempted601
Community Success Rate70%

Track Your Random Practice

Sign up to save your random practice progress and compare your performance across different subjects.

We Value Your Privacy

Edvaya uses cookies to enhance your learning experience, analyze platform usage, and provide personalized content. You can customize your preferences or accept all cookies to continue.

By continuing, you agree to our Cookie Policy and Privacy Policy