MCQ IN COMPUTER SCIENCE & ENGINEERING

COMPUTER SCIENCE AND ENGINEERING

SQL

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
What type of data is stored as REAL?
A
Whole numbers
B
Decimal numbers
C
Strings
D
Yes / No ____ True / False
Explanation: 

Detailed explanation-1: -NUMERIC Data Types. There are two different data types that allow us to store precise numerical data in SQL: NUMERIC and DECIMAL. Both of these types store decimal numbers and use exact arithmetic – as opposed to floating point numbers (REAL, FLOAT, etc.), which store binary numbers and use inexact arithmetic.

Detailed explanation-2: -Numbers that contain a decimal point are stored in a data type called REAL. Variables that use the real data type can accept both positive and negative numbers with a decimal place.

Detailed explanation-3: -Real values are written as standard floating point numbers with a period for a decimal point and no thousands separator.

Detailed explanation-4: -Floating-Point Data Type Floating-point data types are used to define variables that can hold real numbers.

There is 1 question to complete.