Aspire Faculty ID #18655 · Topic: UGC NET Computer Science Dec 2022 Shift II (Paper II) · Just now
UGC NET Computer Science Dec 2022 Shift II (Paper II)

Given an expression

$(A+B*D)/(E-F)+G$

  1. The prefix notation is $+/+A*DB-EFG$
  2. The prefix expression is the reverse of the postfix expression
  3. The order of operands in infix expression and postfix expression are the same.
  4. 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:

Solution

Given expression is:

$(A+B*D)/(E-F)+G$

First solve according to operator precedence:

$B*D$

So, expression becomes:

$(A+(B*D))/(E-F)+G$

Prefix of $B*D$ is:

$*BD$

Prefix of $A+B*D$ is:

$+A*BD$

Prefix of $E-F$ is:

$-EF$

Now prefix of $\frac{A+B*D}{E-F}$ is:

$/+A*BD-EF$

Finally add $G$:

$+/+A*BD-EFG$

So, statement $1$ is true.

Prefix is not simply the reverse of postfix.

So, statement $2$ is false.

The order of operands in infix and postfix remains:

$A,B,D,E,F,G$

So, statement $3$ is true.

The order of operands in infix, prefix, and postfix also remains the same:

$A,B,D,E,F,G$

So, statement $4$ is true.

Correct statements are:

$1,3,$ and $4$

Previous 10 Questions — UGC NET Computer Science Dec 2022 Shift II (Paper II)

Nearest first
1
Circuit satisfiability problem: Given a Boolean combinatorial circuit composed of AND, OR, and NOT gates, is it satisfi…
Topic: UGC NET Computer Science Dec 2022 Shift II (Paper II)
2
Mr. X designed open source software which must comply with some criteria. Choose the false statement in respect of the …
Topic: UGC NET Computer Science Dec 2022 Shift II (Paper II)
3
Software project manager is responsible for the following tasks: A. Project Planning B. Project status tracking C. Reso…
Topic: UGC NET Computer Science Dec 2022 Shift II (Paper II)
4
How do you create agile processes to manage unpredictability? Requirements gathering must be conducted very carefully…
Topic: UGC NET Computer Science Dec 2022 Shift II (Paper II)
5
In the design protocol of the critical section problem, each process must ask permission to enter the critical section …
Topic: UGC NET Computer Science Dec 2022 Shift II (Paper II)
6
Which of the following statements are true? Shortest remaining time first scheduling may cause starvation Preemptiv…
Topic: UGC NET Computer Science Dec 2022 Shift II (Paper II)
7
Identify the correct operation that produces the below-given output based on two relations R1 and R2.R1 NameClass&…
Topic: UGC NET Computer Science Dec 2022 Shift II (Paper II)
8
Which of the following database model, we have a parent-child relationship? hierarchical databases network database…
Topic: UGC NET Computer Science Dec 2022 Shift II (Paper II)
9
What are the drawbacks of using file systems to store data? Data inconsistency Difficulty in accessing data Data …
Topic: UGC NET Computer Science Dec 2022 Shift II (Paper II)
10
Which of the following lists defined in HTML share a similar element Unordered lists Ordered lists Definition Lis…
Topic: UGC NET Computer Science Dec 2022 Shift II (Paper II)

Next 10 Questions — UGC NET Computer Science Dec 2022 Shift II (Paper II)

Ascending by ID
1
Which of the following is (are) correct about the regular expression? a a* b b* c c* d d* The language for the given …
Topic: UGC NET Computer Science Dec 2022 Shift II (Paper II)
2
Consider two hosts P and Q are connected through a router R. The maximum transfer unit $MTU$ value of the link between …
Topic: UGC NET Computer Science Dec 2022 Shift II (Paper II)
3
Which of the following statements are correct? The first three-address instruction in the intermediate code is a lead…
Topic: UGC NET Computer Science Dec 2022 Shift II (Paper II)
4
Which of the following are correct on regular expressions? a. $\varphi + L = L + \varphi = L$ b. $\epsilon L = L\epsilo…
Topic: UGC NET Computer Science Dec 2022 Shift II (Paper II)
5
The Solution to Silly Window Syndrome problem is/are: I. Nagle's Algorithm II. Clark's Algorithm III. Jacobson's Algori…
Topic: UGC NET Computer Science Dec 2022 Shift II (Paper II)
6
Which AI System mimics the evolutionary process to generate increasingly better solutions to a problem? I. Self organiz…
Topic: UGC NET Computer Science Dec 2022 Shift II (Paper II)
7
Consider the following Learning algorithms.I. Logistic regression. II. Back propagation. III. Linear regression. IV. Fo…
Topic: UGC NET Computer Science Dec 2022 Shift II (Paper II)
8
Which Boolean operation on two variables can be represented by a single perception layer? I. X1 AND X2 II. X1 OR X2 III…
Topic: UGC NET Computer Science Dec 2022 Shift II (Paper II)
9
Match the List-I and List-II List-IList-II  a. Planar GraphI. Probabilistic Model  b. Bipartit…
Topic: UGC NET Computer Science Dec 2022 Shift II (Paper II)
10
Match List-I and List-II List-IList-II  a. Direct AddressingI. MVI A, FFH  b. Indirect address…
Topic: UGC NET Computer Science Dec 2022 Shift II (Paper II)
Ask Your Question or Put Your Review.

loading...