Computer Science, asked by vritikamishra4769, 1 year ago

Define the term Hierarchy of operations.Write the hierarchical order of the arithmetic operators in QBasic.

.
.
.
.
.
PLZ ANS IT FAST
.
.
.
.
.
NO SPAM❌❌❌❌
.
.
.
CORRECT ANSWER✔✔✔✔✔
.
.
.
.
#BE BRAINLY#

Answers

Answered by GaganG
23
Hierarchy Of Operations

In a programming language, when an expression involves multiple operations, the hierarchy of operations instructs the compilers and interpreters on the order in which the expression has to be executed. Usually, the expression consists of operations like, addition, subtraction, multiplication, division, exponents, and parentheses.

The hierarchy of operations is as follows:

• Parentheses ()

• Exponents

• Multiply or Divide

• Addition or Subtraction

Parentheses

Execution of the expressions inside the parentheses starting from the innermost parenthesis. Other than parentheses the special characters like brackets [ ], braces { } and square root also fall under this category.

Exponents

After solving the operations in the parentheses, choose the exponents for execution.

Multiplication or Division

The order of multiplication and division in an expression has the third priority. Perform the multiplication or division operation in the left to right order.

Addition or Subtraction

The order of addition or subtraction in an expression has the last priority. Perform the addition or subtraction operation in the left to right order.

Example:

Solve the following expression:

a = 3*2/2+2/2+6-1+5/8

a = 3*2/2+2/2+6-1+5/8

a = 6 / 2 + 2 /2 + 6 - 1 + 5 / 8

operation: *

a= 3 + 2 / 2 + 6 - 1 + 5 / 8

operation: /

a = 3 + 1+ 6 - 1 + 5 / 8

operation: /

a = 3 + 1 + 6 - 1 + 0

operation: /

a = 4 + 6 - 1 + 0

operation: +

a = 10 - 1 + 0

operation: +

a = 9 + 0

operation: -

a = 9

operation: +


GaganG: abhi baat nhi kar sakta jii
GaganG: baad me karunga
GaganG: ok byy
GaganG: take care
GaganG: and again congratulations
GaganG: hloo
Answered by Vritika2007
1

Answer:

People participate in the process of government through the following various ways:

By taking interest in the working of the government.

By criticising the government on various unpopular issues.

By taking out rallies.

By holding signature campaigns

Similar questions