+1 vote
in Class 12 by kratos

(a) Write the value that will be assigned to variable C after executing the following statement:

C = 25 - 5 * 4/2 - 10 + 4;

(b) Consider the statement :

first_name = "Ayana";

(i) What is the datatype of first_name?

(ii) Is 325 the same as "321"? Give reason.

1 Answer

+2 votes
by kratos
 
Best answer

(a) C = 9.

(b) (i) String.

(ii) No they are not same. 325 represents integer(int) type of value, whereas "321" represents String type value.

...