Question
Download Solution PDFGiven an expression
(A + B * D)/(E - F) + G
A. The prefix notation is +/+A*DB - EFG
B. The prefix expression is the reverse of the postfix expression
C. The order of operands in infix expression and postfix expression are the same.
D. The order of operands in infix expression, prefix expression and postfix expression are the same.
Choose the most appropriate answer from the options given below:
Answer (Detailed Solution Below)
Detailed Solution
Download Solution PDFThe correct answer is C and D Only
Key PointsLet's analyze each option:
- The prefix notation is +/+A*DB - EFG
- This is incorrect. The correct prefix notation for the given expression (A + B * D)/(E - F) + G is: + / + A * B D - E F G
- The prefix expression is the reverse of the postfix expression
- The postfix expression for the given expression is: A B D * + E F - / G +
- If we reverse this, we get: + G / - F E + * D B A
- This is not the same as the correct prefix notation, so option B is not correct.
- The order of operands in infix expression and postfix expression are the same.
- This statement is true. In infix notation (the typical mathematical notation), the operands are placed between the operators. In postfix notation, the order of operands remains the same as in infix notation.
- The order of operands in infix expression, prefix expression, and postfix expression are the same.
- The order of operands in infix expression, prefix expression and postfix expression are the same" is true. Even though the arrangement of operators varies between these notation formats, the occurrence of operands remains the same.
So, the correct answer is 2) C and D Only.
Last updated on Jun 11, 2025
-> The UGC NET Exam Schedule 2025 for June has been released on its official website.
-> Check UPSC Prelims Result 2025, UPSC IFS Result 2025, UPSC Prelims Cutoff 2025, UPSC Prelims Result 2025 Name Wise & Rollno. Wise
-> The UGC NET Application Correction Window 2025 is available from 14th May to 15th May 2025.
-> The UGC NET 2025 online application form submission closed on 12th May 2025.
-> The June 2025 Exam will be conducted from 21st June to 30th June 2025
-> The UGC-NET exam takes place for 85 subjects, to determine the eligibility for 'Junior Research Fellowship’ and ‘Assistant Professor’ posts, as well as for PhD. admissions.
-> The exam is conducted bi-annually - in June and December cycles.
-> The exam comprises two papers - Paper I and Paper II. Paper I consists of 50 questions and Paper II consists of 100 questions.
-> The candidates who are preparing for the exam can check the UGC NET Previous Year Papers and UGC NET Test Series to boost their preparations.