Question
1. Which of the following is an example of compounded assignment statement? a. ab=c b. a=b C. at=5 d. a=5 32 Which operator has the highest priority? a. 4. b. % C. II d. 4+ Clear my choice 2. The operator 88 is an example for __ operator. a. Assignment b Rational C. Increment d. Logical
Solution
3.9
(299 Votos)
Vicente
Elite · Tutor por 8 anos
Resposta
1. The correct answer is option d.
. A compounded assignment statement is a combination of an assignment operation and an arithmetic operation. In this case, the statement
assigns the value 5 to the variable
.2. The correct answer is option b.
. The modulo operator, represented by
, has the highest priority among the given options. It calculates the remainder of a division operation.3. The correct answer is option c. Increment. The operator `88` is not a valid operator in most programming languages. However, if we assume it to be a typo and the intended operator is `++`, then it represents an increment operator. The increment operator increases the value of a variable by 1.