Problemas
Which of the following statements are true? (Select two answers) square Addition precedes multiplication. square The right argument of the square operator cannot be zero. square The result of the square operator is always an integer value. square The square operator uses right-sided binding.
Roztwór
Rebeca
experto · Tutor durante 3 años
4.7
(249 Votos)
Respuesta
The correct answers are:
The result of the
operator is always an integer value.
The
operator uses right-sided binding.Explanation:1. The statement "Addition precedes multiplication" is not true. In most programming languages, multiplication has higher precedence over addition.2. The statement "The right argument of the
operator cannot be zero" is not true. The
operator does not have any restrictions on its arguments.3. The statement "The result of the
operator is always an integer value" is true. The
operator performs integer division, which always results in an integer value.4. The statement "The
operator uses right-sided binding" is true. In most programming languages, the
operator has right-sided binding, meaning that it has higher precedence than other operators on its right side.