MCQ IN COMPUTER SCIENCE & ENGINEERING

COMPUTER SCIENCE AND ENGINEERING

DATA STRUCTURES

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
This data types can only hold whole number values.
A
int
B
double
C
String
D
char
Explanation: 

Detailed explanation-1: -The INTEGER data type stores whole numbers that range from-2, 147, 483, 647 to 2, 147, 483, 647 for 9 or 10 digits of precision. The number 2, 147, 483, 648 is a reserved value and cannot be used.

Detailed explanation-2: -Integral types represent only whole numbers (positive, negative, and zero), and nonintegral types represent numbers with both integer and fractional parts.

Detailed explanation-3: -The int data type is the primary integer data type in SQL Server. The bigint data type is intended for use when integer values might exceed the range that is supported by the int data type. bigint fits between smallmoney and int in the data type precedence chart.

Detailed explanation-4: -1. Numeric: These can be either integers or floats. Integers are positive or negative whole numbers without a decimal point. Floats are real numbers with a decimal point.

Detailed explanation-5: -The Byte data type stores integer values. Valid values for the byte data type are-128 to +127.

There is 1 question to complete.