+91-8076753736 support@wiredfaculty.com
logo
logo

NCERT Classes

  • Class 7
  • Class 8
  • Class 9
  • Class 10
  • Class 11
  • Class 12

Previous-Year-Papers

  • CBSE Class 10 and 12
  • NEET Class 12
  • IIT JEE-Main Class 12
  • ICSE Class 10 Class 12
  • CLAT Class 12

Entrance Exams

  • IIT-JEE
  • NEET
  • CLAT
  • SSC-CGL
  • SSC-CHSL

State Boards

  • Assam Board
  • UP Board English Medium
  • Up Board Hindi Medium
  • CBSC Board English Medium
  • CBSC Board Hindi Medium
  • Manipur Board
  • Goa Board
  • Gujrat Board
  • Haryana Board English Medium
  • Haryana Board Hindi Medium
  • Uttarakhand Board English Medium
  • Uttarakhand Board Hindi Medium
  • Himachal Board English Medium
  • Himachal Board Hindi Medium
  • ICSE Board
  • Jharkhand Board English Medium
  • Jharkhand Board Hindi Medium
  • Karnataka Board
  • Meghalya Board
  • Nagaland Board
  • Punjab Board
  • Rajasthan Board English Medium
  • Rajasthan Board Hindi Medium

For Daily Free Study Material Join wiredfaculty

Home > Stacks & Queues In List

Sponsor Area

Stacks & Queues In List

Question
CBSEENCO12011593
Wired Faculty App

Evaluate the following Postfix notation of expression:
4,2,*,22,5,6,+,/,-

Solution
Short Answer
Element Stack Contents  
4 4
2 4,2
* 8
22 8, 22
5 8, 22, 5
6 8, 22, 5, 6
+ 8, 22, 11
/ 8, 2
- 6

  • Bookmark
  • Facebook
  • WhatsApp
  • Twitter
  • Linkedin
  • Copy Link
  • twitter button
  • facebook logo
  • watsapp logo

Some More Questions From Stacks & Queues in list Chapter

Write a statement in Python to perform the following operations:

  • To open a text file “BOOK.TXT” in read mode
  • To open a text file “BOOK.TXT” in write mode

Write a method in python to write multiple line of text contents into a text file myfile.txt line.

Consider the following definition of class Staff, write a method in python to search and display the content in a pickled file staff.dat, where Staff code is matching with ‘S0105’.

class Staff:

	def __init__(self,S,SNM):
		self.Staffcode=S
		self.Name=SNM
	def Show(self):
		print(self.Staffcode,' ',
			self.Name)

 

Write PUSH (Books) and POP (Books) methods in python to add Books and remove Books considering them to act as Push and Pop operations of Stack.

Write a method in python to find and display the prime numbers between 2 to N. Pass N as an argument to the method.

Evaluate the following postfix notation of expression. Show status of the stack after every operation.
84, 62, –, 14, 3, *, +

Mock Test Series

Mock Test Series

  • NEET Mock Test Series
  • IIT-JEE Mock Test Series
  • CLAT Mock Test Series
  • SSC-CGL Mock Test Series
  • SSC-CHSL Mock Test Series

NCERT Sample Papers

  • CBSE English Medium
  • CBSE Hindi Medium
  • ICSE

Entrance Exams Preparation

  • NEET
  • IIT-JEE
  • CLAT
  • SSC-CGL
  • SSC-CHSL

ABOUT US

  • Company
  • Term of Use
  • Privacy Policy

NCERT SOLUTIONS

  • NCERT Solutions for Class-8th
  • NCERT Solutions for Class-9th
  • NCERT Solutions for Class-10th
  • NCERT Solutions for Class-11th
  • NCERT Solutions for Class-12th

CONTACT US

Phone Number

+91-8076753736

Email Address

support@wiredfaculty.com

Location

A2/44 Sector-3 Rohini Delhi 110085

Copyright © 2025 wiredfaculty. Powered by -wiredfaculty.com