QUESTION 17 Consider the following Java statement: index = 50 * count + 170; Whi
ID: 3587089 • Letter: Q
Question
QUESTION 17
Consider the following Java statement: index = 50 * count + 170; Which of the following is true regarding this statement?
A. The tokens are: identifier, equal_sign,int_literal,mult_op,identifier,plus_op,int_literal and semicolon.
B. The tokens are: index, =, 50,*count,+,170 and ;
The lexemes are: identifier, equal_sign,int_literal,mult_op,identifier,plus_op,int_literal and semicolon.
There is not enough information provided to deduce anything about this Java statement.
A. The tokens are: identifier, equal_sign,int_literal,mult_op,identifier,plus_op,int_literal and semicolon.
B. The tokens are: index, =, 50,*count,+,170 and ;
C.The lexemes are: identifier, equal_sign,int_literal,mult_op,identifier,plus_op,int_literal and semicolon.
D.There is not enough information provided to deduce anything about this Java statement.
Explanation / Answer
A. The tokens are: identifier, equal_sign,int_literal,mult_op,identifier,plus_op,int_literal and semicolon
The reason is that the token will be identified for the as the following identifiers stated above.