InterviewSolution
This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.
| 51. |
A DEFAULT value cannot be supplied to TEXT types.(a) True(b) FalseThe question was asked in an interview for job.My question comes from MySQL Data Types in section Data Types of MySQL |
|
Answer» Correct answer is (a) True |
|
| 52. |
A DEFAULT value cannot be supplied to spatial types.(a) True(b) FalseThis question was posed to me in an interview.Origin of the question is MySQL Data Types in section Data Types of MySQL |
|
Answer» Correct choice is (a) True |
|
| 53. |
Which spatial datatype is used to store a curve?(a) GEOMETRY(b) POINT(c) LINESTRING(d) POLYGONI had been asked this question in a job interview.I want to ask this question from MySQL Data Types in chapter Data Types of MySQL |
|
Answer» The CORRECT option is (c) LINESTRING |
|
| 54. |
Which data and time datatype stores time value in ‘hh:mm:ss’ format?(a) DATE(b) TIME(c) DATETIME(d) TIMESTAMPI got this question by my college professor while I was bunking the class.Query is from MySQL Data Types in portion Data Types of MySQL |
|
Answer» Correct CHOICE is (b) TIME |
|
| 55. |
Which datatype means a variable length non binary string?(a) VARCHAR(b) BINARY(c) VARBINARY(d) BLOBThis question was addressed to me in an interview for internship.Origin of the question is MySQL Data Types topic in division Data Types of MySQL |
|
Answer» Right answer is (a) VARCHAR |
|
| 56. |
Which datatype is used for a fixed length binary string?(a) VARCHAR(b) BINARY(c) VARBINARY(d) BLOBThe question was posed to me in final exam.Question is taken from MySQL Data Types in division Data Types of MySQL |
|
Answer» Right answer is (b) BINARY |
|
| 57. |
The datatype for single precision floating point number is ____________(a) FLOAT(b) DOUBLE(c) INT(d) BIGINTI have been asked this question by my college director while I was bunking the class.The origin of the question is MySQL Data Types in division Data Types of MySQL |
|
Answer» Correct answer is (a) FLOAT |
|
| 58. |
Which value will show an error when stored in float(4,2)?(a) 12.11(b) 13.1(c) 1.12(d) 123.44This question was posed to me by my college professor while I was bunking the class.The doubt is from MySQL Datatypes topic in division Data Types of MySQL |
|
Answer» RIGHT answer is (d) 123.44 Easiest EXPLANATION: “FLOAT(4,2)” cannot store more than 4 digits. |
|
| 59. |
Is “Datetime” and “Timestamp” are same data type?(a) Yes(b) No(c) Depends(d) None of the mentionedThe question was posed to me in an online quiz.I need to ask this question from MySQL Datatypes in chapter Data Types of MySQL |
|
Answer» The correct answer is (a) Yes |
|
| 60. |
What is the default format for “Time” data type?(a) HHH:MI:SS(b) SS:MI:HHH(c) MI:SS:HHH(d) None of the mentionedI got this question in a job interview.Question is taken from MySQL Datatypes in portion Data Types of MySQL |
|
Answer» CORRECT choice is (a) HHH:MI:SS Explanation: Default MEANS VALUES that are ASSUMED by the server. |
|
| 61. |
What is the default format for “Year” data type?(a) YYYY(b) YYYY-DD-MM(c) MM-YYYY-DD(d) None of the mentionedThis question was addressed to me by my school teacher while I was bunking the class.My query is from MySQL Datatypes in chapter Data Types of MySQL |
|
Answer» Correct ANSWER is (a) YYYY |
|
| 62. |
What is the default format for “Timestamp” data type?(a) YYYY-MM-DDHH:MI:SS(b) MM-YYYY-DDHH:MI:SS(c) DD-YYYY-MMMI:HH:SS(d) None of the mentionedI got this question in an international level competition.The above asked question is from MySQL Datatypes in portion Data Types of MySQL |
|
Answer» CORRECT option is (a) YYYY-MM-DDHH:MI:SS To explain: Default means VALUES that are ASSUMED by the SERVER. |
|
| 63. |
What is the default format for “Datetime” data type?(a) YYYY-MM-DDHH:MI:SS(b) MM-YYYY-DDHH:MI:SS(c) DD-YYYY-MMMI:HH:SS(d) None of the mentionedI have been asked this question in an online quiz.This is a very interesting question from MySQL Datatypes in chapter Data Types of MySQL |
|
Answer» Right answer is (a) YYYY-MM-DDHH:MI:SS |
|
| 64. |
What is the default format for “Date” data type?(a) YYYY-MM-DD(b) MM-YYYY-DD(c) DD-MM-YYYY(d) None of the mentionedThis question was addressed to me in final exam.This key question is from MySQL Datatypes topic in division Data Types of MySQL |
|
Answer» RIGHT option is (a) YYYY-MM-DD The EXPLANATION is: Default means values that are ASSUMED by the SERVER. |
|
| 65. |
Which data type is used to store data and time in Mysql?(a) Numeric data type(b) Text data type(c) Temporal data type(d) Char/VarcharI got this question in final exam.Origin of the question is MySQL Datatypes topic in portion Data Types of MySQL |
|
Answer» Right answer is (c) Temporal data type |
|
| 66. |
Which among the following is the correct representation of “float(1,1)”?(a) Total of 1 digit(b) Total of 2 digit(c) Total of 2 digit, one digit at right of the decimal, one digit at left of the decimal(d) None of the mentionedThe question was posed to me during an interview.This interesting question is from MySQL Datatypes topic in division Data Types of MySQL |
|
Answer» Correct ANSWER is (a) TOTAL of 1 digit |
|
| 67. |
Which among the following is the correct representation of “float(5,0)”?(a) 12345.123(b) 12345.1(c) 12345(d) 123.123I had been asked this question in my homework.The question is from MySQL Datatypes in section Data Types of MySQL |
|
Answer» The correct ANSWER is (c) 12345 |
|
| 68. |
Which among the following is the correct representation of “float(5,0)”?(a) 12345.123(b) 12345.1(c) 12345(d) 123.123This question was addressed to me in an international level competition.I'm obligated to ask this question of MySQL Datatypes topic in chapter Data Types of MySQL |
| Answer» | |
| 69. |
Which among the following are the correct representation of “float(4,2)”?(a) 24.33(b) 124.4(c) 12.123(d) Both 24.33 and 124.4This question was posed to me in an interview.The above asked question is from MySQL Datatypes topic in section Data Types of MySQL |
|
Answer» CORRECT answer is (d) Both 24.33 and 124.4 To explain I would SAY: Float(4,2) allowed at most 2 DIGIT at right of the decimal and left of the decimal. |
|
| 70. |
What will be the storage pattern for “float(4,2)” in Mysql?(a) Total of four digits, two to the left of decimal and two to the right of decimal(b) Total of six digits(c) Total of four digits, not distributed uniformly(d) None of the mentionedI got this question in class test.The doubt is from MySQL Datatypes topic in division Data Types of MySQL |
|
Answer» CORRECT OPTION is (a) Total of FOUR DIGITS, two to the left of decimal and two to the right of decimal Explanation: As per standards. |
|
| 71. |
Which Numeric Data type has the largest range?(a) Mediumint(b) Smallint(c) Int(d) TinyintThe question was posed to me in quiz.This question is from MySQL Datatypes topic in portion Data Types of MySQL |
| Answer» | |
| 72. |
“Numeric Data” is used to store ____________(a) Whole numbers(b) Natural numbers(c) Rational numbers(d) Both Whole and Natural numbersI have been asked this question during an online exam.The question is from MySQL Datatypes topic in portion Data Types of MySQL |
|
Answer» The CORRECT CHOICE is (d) Both Whole and Natural numbers |
|
| 73. |
Which data type is more suitable for storing “documents” in Mysql?(a) Varchar(b) Longtext(c) Mediumtext(d) Either Varchar or LongtextThe question was asked in quiz.This interesting question is from MySQL Datatypes in division Data Types of MySQL |
|
Answer» CORRECT choice is (B) LONGTEXT To explain: Longtext has LARGEST RANGE. |
|
| 74. |
Which data type is more suitable for storing “small notes” in Mysql?(a) Char(b) Varchar(c) Mediumtext(d) LongtextI have been asked this question in an online interview.Question is from MySQL Datatypes topic in division Data Types of MySQL |
|
Answer» CORRECT ANSWER is (C) Mediumtext Explanation: NONE. |
|
| 75. |
What will happen if the data being loaded into a text column exceeds the maximum size of that type?(a) Extra memory will be allocated(b) Process terminate(c) Data will be truncated(d) Depend on the systemI have been asked this question in an interview for internship.Asked question is from MySQL Datatypes topic in section Data Types of MySQL |
|
Answer» CORRECT CHOICE is (c) Data will be truncated To elaborate: Mysql cannot ALLOCATE DYNAMIC memory therefore if data exceeds the memory then EXTRA data will be truncated. |
|
| 76. |
Which among the following have the maximum bytes?(a) Varchar(b) Char(c) Text type(d) Both Varchar and CharThe question was posed to me during an interview for a job.The query is from MySQL Datatypes topic in chapter Data Types of MySQL |
|
Answer» CORRECT ANSWER is (c) Text type Best explanation: None. |
|
| 77. |
Which “text type” has the maximum number of bytes?(a) Tiny text(b) Text(c) Medium text(d) Long textThe question was asked in my homework.The above asked question is from MySQL Datatypes in division Data Types of MySQL |
|
Answer» Right answer is (d) LONG TEXT |
|
| 78. |
Which one is the correct declaration for choosing the character set other than default?(a) Varchar(20) character set utf8;(b) Varchar(20);(c) Varchar(20) character set;(d) None of the mentionedI got this question in examination.This question is from MySQL Datatypes in portion Data Types of MySQL |
|
Answer» The CORRECT ANSWER is (a) VARCHAR(20) character set utf8; |
|
| 79. |
Mysql support different character sets,which command is used to display all character sets?(a) SHOW CHARACTER SET;(b) SHOW;(c) CHARACTER SET;(d) None of the mentionedI got this question in unit test.I'm obligated to ask this question of MySQL Datatypes topic in chapter Data Types of MySQL |
|
Answer» Right answer is (a) SHOW CHARACTER SET; |
|
| 80. |
In oracle database variable length column is declared by ____________(a) Varchar(b) Varchar 3(c) Varchar2(d) None of the mentionedThis question was posed to me in an online quiz.I'd like to ask this question from MySQL Datatypes in chapter Data Types of MySQL |
|
Answer» The CORRECT OPTION is (C) Varchar2 |
|
| 81. |
The maximum length of the varchar columns is ____________(a) Upto 65, 535 bytes(b) Upto 256 bytes(c) Upto 65, 567 bytes(d) None of the mentionedThe question was posed to me in an international level competition.Origin of the question is MySQL Datatypes in portion Data Types of MySQL |
|
Answer» RIGHT choice is (a) UPTO 65, 535 bytes Easy EXPLANATION: None. |
|
| 82. |
The maximum length of the char columns is ____________(a) 255 bytes(b) 65, 535 bytes(c) 256 bytes(d) None of the mentionedThe question was asked in an interview.My question comes from MySQL Datatypes in division Data Types of MySQL |
|
Answer» The CORRECT CHOICE is (a) 255 bytes |
|
| 83. |
Which declaration doesn’t use the same number of bytes and consumption of bytes depends on the input data?(a) Varchar(b) Char(c) Both Varchar and Char(d) None of the mentionedI got this question in homework.My doubt is from MySQL Datatypes topic in chapter Data Types of MySQL |
|
Answer» The CORRECT OPTION is (a) Varchar |
|
| 84. |
Which declaration represents that “character data will consume the same number of bytes as declared and is right padded”?(a) Char(b) Varchar(c) Both Char and Varchar(d) None of the mentionedThis question was posed to me in an interview for job.Question is taken from MySQL Datatypes in chapter Data Types of MySQL |
|
Answer» CORRECT ANSWER is (a) Char For EXPLANATION: NONE. |
|
| 85. |
Character data can be stored as ______________(a) Fixed length string(b) Variable length string(c) Either Fixed or Variable length string(d) None of the mentionedThis question was addressed to me in exam.This key question is from MySQL Datatypes in division Data Types of MySQL |
|
Answer» The CORRECT option is (c) Either FIXED or Variable length string |
|
| 86. |
Which character set variable indicates the character set used for storing identifiers?(a) character_set_system(b) character_set_server(c) collation_server(d) character_set_databaseThis question was addressed to me in class test.This interesting question is from Data Value Categories topic in portion Data Types of MySQL |
|
Answer» Correct answer is (a) character_set_system |
|
| 87. |
To measure the length of a string in bytes, the operator used is __________(a) CHAR_LENGTH()(b) LENGTH()(c) LEN()(d) SIZE()I got this question in final exam.This intriguing question originated from Data Value Categories in chapter Data Types of MySQL |
|
Answer» The CORRECT choice is (b) LENGTH() |
|
| 88. |
What is used to produce a new string from an old string in the desired character set?(a) Introducers(b) CONVERT()(c) CONVERTER()(d) CONVERTS()I had been asked this question by my school teacher while I was bunking the class.The query is from Data Value Categories in portion Data Types of MySQL |
|
Answer» RIGHT option is (b) CONVERT() Explanation: The introducers and CONVERT() CLAUSE are not the same in MySQL. An introducer MODIFIES the way a string is interpreted and does not modify the string. CONVERT() produces a new string from the old ONE. |
|
| 89. |
A binary string is not associated with a character set.(a) True(b) FalseI have been asked this question in an online quiz.This key question is from Data Value Categories topic in portion Data Types of MySQL |
|
Answer» CORRECT choice is (a) True To EXPLAIN I WOULD say: In MySQL, the STRING values are classified into two general categories. They are the binary strings and non binary strings. A binary string is only a sequence of bytes interpreted without a character set. |
|
| 90. |
The number of legal hexadecimal values among 0x0a, 0x0A, 0X0a and 0X0A is ___________(a) 1(b) 2(c) 3(d) 4The question was posed to me in an internship interview.My doubt stems from Data Value Categories in division Data Types of MySQL |
|
Answer» The CORRECT answer is (b) 2 |
|
| 91. |
X’61626364′ and X’61626364′ are respectively __________(a) abcd and 1633837924(b) abcd and 4297383361(c) dcba and 1633837924(d) dcba and 4297383361I had been asked this question during an internship interview.Question is taken from Data Value Categories topic in division Data Types of MySQL |
|
Answer» Right choice is (a) ABCD and 1633837924 |
|
| 92. |
x’ffff’ in decimal is ___________(a) 65534(b) 66535(c) 65536(d) 65537This question was posed to me in an internship interview.Origin of the question is Data Value Categories in chapter Data Types of MySQL |
|
Answer» Right choice is (c) 65536 |
|
| 93. |
Which mode is used to turn off the special meaning of backslash and treat it as an ordinary character?(a) NO_ESCAPES_SLASH(b) NO_ESCAPES_BACKSLASH(c) NO_BACKSLASH_ESCAPES(d) NO_BACKSLASH_ESCAPEThe question was posed to me in an interview for job.This interesting question is from Data Value Categories in portion Data Types of MySQL |
|
Answer» Right answer is (c) NO_BACKSLASH_ESCAPES |
|
| 94. |
The escape sequence for carriage return is ___________(a) ‘\c’(b) ‘\r’(c) ‘\b’(d) ‘\z’The question was asked during an interview.The above asked question is from Data Value Categories topic in portion Data Types of MySQL |
|
Answer» Right choice is (b) ‘\r’ |
|
| 95. |
The NUL (‘\0’) is same as the SQL NULL value.(a) True(b) FalseThe question was posed to me in an internship interview.This intriguing question comes from Data Value Categories in division Data Types of MySQL |
|
Answer» Right option is (B) False |
|
| 96. |
If ANSI_QUOTES is enabled, MySQL treats the double quotes as ________________(a) identifier-quoting character(b) string-quoting character(c) hexadecimal(d) stringI have been asked this question in homework.The origin of the question is Data Value Categories topic in division Data Types of MySQL |
|
Answer» RIGHT option is (a) identifier-quoting character Easiest explanation: The SQL standard specifies the SINGLE quotes so that STATEMENTS are portable across database ENGINES. If ANSI_QUOTES is enabled, MYSQL treats the double quotes as identifier-quoting character. |
|
| 97. |
‘2341’ is a ____________(a) integer(b) floating point(c) hexadecimal(d) stringI have been asked this question in an international level competition.The above asked question is from Data Value Categories in chapter Data Types of MySQL |
|
Answer» Right answer is (d) string |
|
| 98. |
A BIT value in a result set is displayed as a binary string.(a) True(b) FalseThis question was posed to me in an interview.This intriguing question comes from Data Value Categories in section Data Types of MySQL |
|
Answer» Correct ANSWER is (a) True |
|
| 99. |
The bit-field values are prefixed with __________(a) 0b(b) 0bit(c) bit-(d) ‘bit’I had been asked this question in unit test.The query is from Data Value Categories in portion Data Types of MySQL |
|
Answer» The CORRECT OPTION is (a) 0b |
|
| 100. |
If a string is to be converted to a number, it is converted into a _____________(a) double precision floating point(b) single precision floating point(c) decimal integer(d) hexadecimal integerThe question was asked by my college director while I was bunking the class.I'm obligated to ask this question of Data Value Categories in portion Data Types of MySQL |
|
Answer» Right answer is (a) double PRECISION FLOATING point |
|