An arithmetic Operation involving both real and integer operands is called as_____________ arithmetic?

Home » Programming & Design » An arithmetic Operation involving both real and integer operands is called as_____________ arithmetic?
Programming & Design No Comments

Other answer:

Chetna:
The term I've seen used is "mixed arithmetic", but that's not an official Java term.

Java defines most arithmetic operations to accept arguments of any primitive numeric type, and the process of finding a common type to perform the computation as "numeric promotion".

That's important because promotion can happen even when both arguments are integer types. Addition of two short(16-bit) or byte(8-bit) values will always convert the values to int format and produce an int result. Java has no way to perform arithmetic on integers shorter than int(32-bits).

EddieJ:
As roderick said, "mixed" is the best answer, and since, "none of these" is available, then that's probably the correct answer.

If there was only 1 answer with a form of "mixed" in it, then I would have gone with that one. But, since there are 2, it seems the question is being tricky. It's not horseshoes — close is NOT good enough.

But, if you want to get it right, you are going to have to look through the chapter in your textbook and see if you can find the author using the term "mixed".

By the way, I wrote my first program 43 years ago and was a professional programmer for 25 years, and, after the class ends, you won't ever need to know this particular vocabulary again.

How often does someone ask you how many vowels are in your name?

Chetna:
1.mix
2.real and integer
3.mix mode
4.nome of these
roderick_young:
I would say "mixed" in the context of programming. So either 1 or 3.
joe:
I guess you are too lazy to do your own homework!

LEAVE A COMMENT