>
Exams
>
Computer Science & Information Technology
>
Programming and Data Structures
>
what is the postfix expression of p q r s p
Question:
What is the postfix expression of $P + Q / R * (S - P)$?
Show Hint
Postfix expressions evaluate left-to-right; write operands first, then operators.
TS PGECET - 2024
TS PGECET
Updated On:
Jun 17, 2025
PQRSP/-*+
+P/Q*R-SP
PQRSP/-*+
**-/PQRSP
Show Solution
Verified By Collegedunia
The Correct Option is
A
Solution and Explanation
Given infix expression: \(P + \frac{Q}{R} \times (S - P)\)
First convert to postfix:
- \(Q / R \rightarrow QR/\)
- \(S - P \rightarrow SP-\)
- Then \(QR/ \times SP- \rightarrow QR/SP/-*\)
- Finally add P: \(P QR SP/- * +\)
Download Solution in PDF
Was this answer helpful?
1
0
Top TS PGECET Computer Science & Information Technology Questions
The transition a pushdown automation made by is additionally dependent upon
TS PGECET - 2024
Computer Science & Information Technology
Theory of Computations
View Solution
Moore machine is an example of
TS PGECET - 2024
Computer Science & Information Technology
Theory of Computations
View Solution
For a machine to surpass all the letters of alphabets excluding vowels, how many states in DFA would be required?
TS PGECET - 2024
Computer Science & Information Technology
Theory of Computations
View Solution
A language $L$ is said to be Turing machine (TM) decidable if
TS PGECET - 2024
Computer Science & Information Technology
Theory of Computations
View Solution
A Turing machine that is able to simulate other Turing machines is known as
TS PGECET - 2024
Computer Science & Information Technology
Theory of Computations
View Solution
View More Questions
Top TS PGECET Programming and Data Structures Questions
Which data structure is used in processor scheduling in an operating system?
TS PGECET - 2024
Computer Science & Information Technology
Programming and Data Structures
View Solution
Which of the following is a binary tree in which all the nodes have either zero or two children?
TS PGECET - 2024
Computer Science & Information Technology
Programming and Data Structures
View Solution
What is the minimum number of edges possible in a directed graph having 6 vertices and no self-loops?
TS PGECET - 2024
Computer Science & Information Technology
Programming and Data Structures
View Solution
What is return value of strcmp() if the two parameters are identical?
TS PGECET - 2024
Computer Science & Information Technology
Programming and Data Structures
View Solution
Which operator is used to get value at address stored in a pointer variable?
TS PGECET - 2024
Computer Science & Information Technology
Programming and Data Structures
View Solution
View More Questions
Top TS PGECET Questions
If \( P = \begin{pmatrix} 1 & 1 & 1 \\ 0 & 1 & 2 \\ 0 & 0 & 1 \end{pmatrix} \) is the modal matrix of \( A = \begin{pmatrix} 1 & 1 & 0 \\ 0 & 2 & 2 \\ 0 & 0 & 3 \end{pmatrix} \) then the sum of all the elements of \( P^{-1}AP \) is
TS PGECET - 2024
Matrices
View Solution
If the system of equations \( kx + y + z = k - 1 \), \( x + ky + z = k - 1 \), and \( x + y + kz = k - 1 \) has infinite solutions, then \( k \) is
TS PGECET - 2024
Linear Programming
View Solution
The value of the integral \( \int_C (2xy - x^2) \, dx + (x^2 + y^2) \, dy \) where \( C \) is the boundary of the region enclosed by \( y = x^2 \) and \( y^2 = x \), described in the positive sense, is
TS PGECET - 2024
Calculus
View Solution
Let \( f(x) = \log x \). The number \( C \) strictly between \( e^2 \) and \( e^3 \) such that its reciprocal is equal to \( \frac{f(e^3) - f(e^2)}{e^3 - e^2} \) is
TS PGECET - 2024
Calculus
View Solution
The solution of the differential equation \( (D^2 + 2)y = x^2 \) is
TS PGECET - 2024
Differential Equations
View Solution
View More Questions