FUNDAMENTALS OF COMPUTER

COMPUTER PROGRAMMING FUNDAMENTALS

WHAT IS PROGRAMMING

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Which of the following is a real / float datatype?
A
3
B
3.5
C
-4
D
All of the above
Explanation: 

Detailed explanation-1: -What Does Float Mean? In computer science, a float is a data type composed of a number that is not an integer, because it includes a fraction represented in decimal format.

Detailed explanation-2: -Every value in a program has a specific type. Integer ( int ): represents positive or negative whole numbers like 3 or-512. Floating point number ( float ): represents real numbers like 3.14159 or-2.5.

Detailed explanation-3: -LReal is a double precision real, float, or floating point variables that is a 64 bit signed value rather then a real is a single precision real, float, or floating point that is made from a 32 bit signed value. So it stores more in a LReal which makes LReal closer to a Double and a Float.

Detailed explanation-4: -A real data type is a data type used in a computer program to represent an approximation of a real number. Because the real numbers are not countable, computers cannot represent them exactly using a finite amount of information. Most often, a computer will use a rational approximation to a real number.

There is 1 question to complete.