Question
63. An expression contains relational, assign ment and anthmetic operators.if Parenthens are not present, the order will be a. Assignment, relational, arithmetic b. Assignment, arithmetic,relations c. Relational, arithmetic, assignment d. Arthmetic, relational, assignment Question 17 Notyet answered Marked out of 1 P Flag question 39. The operator + in a+=4 means a a+4=a b. a=a+4 a=4 d. a=4+4
Solution
4.5
(310 Votos)
Vasco
Avançado · Tutor por 1 anos
Resposta
For the first question:The correct answer is d. Arithmetic, relational, assignment.Explanation: In an expression without parentheses, the order of operations follows the PEMDAS/BODMAS rule, which stands for Parentheses/Brackets, Exponents/Orders, Multiplication and Division (from left to right), Addition and Subtraction (from left to right). In this case, arithmetic operations are performed before relational and assignment operations. Therefore, the correct order is arithmetic, relational, assignment.For the second question:The correct answer is b.
.Explanation: The operator + in
is a shorthand for
. It means that the value of
is increased by 4. Therefore, the correct answer is
.