Vidyalelo
MySQL · Q761

MySQL

Programming · MySQL · question 761

Q761

The minimum value stored by signed TINYINT is . . . . . . . .

A.
-256
B.
-128
Answer
C.
0
D.
128

Answer: Option B

Solution

Answer: Option B
Solution:
This question is about data types in MySQL. TINYINT is a data type used to store small integers.
Signed means that the TINYINT can store both positive and negative values.
To figure out the minimum value, we need to understand how signed TINYINT works:
* It uses 8 bits of memory.
* One bit is used to represent the sign (positive or negative).
* The remaining 7 bits are used to store the actual number.
This means the range of values for a signed TINYINT is -128 to 127.
Therefore, the correct answer is Option B: -128.