All Exams Test series for 1 year @ ₹349 only
Question

Arrange the following prefix expressions in ascending order on the basis of their values. 

A. - * 2 / 8 4 3 

B. $\uparrow$ - * 3 6 * 4 2 5 

C. + - $\uparrow$ 3 2 $\uparrow$ 2 3 / 6 - 4 2 

D. * + 3 + 3 $\uparrow$ 3 + 1 1 3 

Choose the correct answer from the options given below:

The correct answer is
A, C, D, B

Prefix Expression Evaluation

This solution evaluates several prefix expressions and arranges them in ascending order based on their numerical values.

Evaluating Each Prefix Expression

We will systematically evaluate each expression using the standard order of operations for prefix notation.

  • Expression A: $- * 2 / 8 4 3$
    • $/ 8 4$ evaluates to $8 \div 4 = 2$
    • The expression becomes $- * 2 2 3$
    • $* 2 2$ evaluates to $2 \times 2 = 4$
    • The expression becomes $- 4 3$
    • $- 4 3$ evaluates to $4 - 3 = 1$
    Value of A = 1
  • Expression B: $\uparrow$ - * 3 6 * 4 2 5$
    • $* 3 6$ evaluates to $3 \times 6 = 18$
    • $* 4 2$ evaluates to $4 \times 2 = 8$
    • The expression becomes $\uparrow$ - 18 8 5$
    • $- 18 8$ evaluates to $18 - 8 = 10$
    • The expression becomes $10 $\uparrow$ 5$
    • $10 $\uparrow$ 5$ evaluates to $10^5 = 100000$
    Value of B = 100000
  • Expression C: $+ - $\uparrow$ 3 2 $\uparrow$ 2 3 / 6 - 4 2$
    • $\uparrow$ 3 2$ evaluates to $3^2 = 9$
    • $\uparrow$ 2 3$ evaluates to $2^3 = 8$
    • $- 4 2$ evaluates to $4 - 2 = 2$
    • $/ 6 2$ evaluates to $6 \div 2 = 3$
    • The expression becomes $+ - 9 8 3$
    • $- 9 8$ evaluates to $9 - 8 = 1$
    • The expression becomes $+ 1 3$
    • $+ 1 3$ evaluates to $1 + 3 = 4$
    Value of C = 4
  • Expression D: $* + 3 + 3 $\uparrow$ 3 + 1 1 3$
    • $+ 1 1$ evaluates to $1 + 1 = 2$
    • $\uparrow$ 3 2$ evaluates to $3^2 = 9$
    • The expression becomes $* + 3 + 3 9 3$
    • $+ 3 9$ evaluates to $3 + 9 = 12$
    • The expression becomes $* + 3 12 3$
    • $+ 3 12$ evaluates to $3 + 12 = 15$
    • The expression becomes $* 15 3$
    • $* 15 3$ evaluates to $15 \times 3 = 45$
    Value of D = 45

Ordering Expressions by Value

The calculated values for the prefix expressions are:

  • A = 1
  • C = 4
  • D = 45
  • B = 100000

Arranging these values in ascending order:

1 (A) < 4 (C) < 45 (D) < 100000 (B)

Thus, the correct sequence of the prefix expressions in ascending order of their values is A, C, D, B.

Was this answer helpful?
Need Expert Advice?

Start Your Preparation with Prepp Mobile App

Download the app from Google Play & App Store
Download the app from Google Play & App Store
Prepp Mobile App