Customize Consent Preferences

We use cookies to help you navigate efficiently and perform certain functions. You will find detailed information about all cookies under each consent category below.

The cookies that are categorized as "Necessary" are stored on your browser as they are essential for enabling the basic functionalities of the site. ... 

Always Active

Necessary cookies are required to enable the basic features of this site, such as providing secure log-in or adjusting your consent preferences. These cookies do not store any personally identifiable data.

No cookies to display.

Functional cookies help perform certain functionalities like sharing the content of the website on social media platforms, collecting feedback, and other third-party features.

No cookies to display.

Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics such as the number of visitors, bounce rate, traffic source, etc.

No cookies to display.

Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.

No cookies to display.

Advertisement cookies are used to provide visitors with customized advertisements based on the pages you visited previously and to analyze the effectiveness of the ad campaigns.

No cookies to display.

MCQ

MYSQL MCQ and Answers – Part 3

MYSQL MCQs questions with answers to prepare for exams, tests, and certifications. These questions are taken from a real written exam and some parts are taken from an interview. So you will find questions on MySQL Database, SQL query, Data Model, and more. This MCQ will easily prepare anyone to pass their exam.
 

1. Which of the following statements is correct for choosing the non-default character set?

A

Varchar(20) character set utf8;
Varchar(20) character set utf8;

B

Varchar(20);
Varchar(20);

C

Varchar(20) character set;
Varchar(20) character set;

D None of the above

 

2. Which of the following TEXT type has the maximum number of bytes?

A Tiny text

B Text

C Medium text

D Long text

 

3. Which of the following has the maximum number of bytes?

A Varchar

B Char

C Text

D Both Varchar and Char

[st_adsense]  

4. Which statement makes changes to database attributes?

A CHANGE

B ALTER

C ALTERNATE

D UPDATE

 

5. What happen if the data stored in a column of type Text exceeds the maximum size of that type?

A Extra memory will be allocated

B End the process

C Data will be truncated

D Depends on the system

 

6. Which data type is best suited for storing “small texts” in Mysql?

A Char

B Varchar

C Mediumtext

D Longtext

 

7. Which data type is best suited for storing “documents” in Mysql?

A Char

B Varchar

C Mediumtext

D Longtext

[st_adsense]  

8. Numeric types are used to describe ________?

A Integers numbers

B Natural numbers

C Rational numbers

D Integers and natural numbers

 

9. Which numeric type has the largest range?

A Mediumint

B Smallint

C Int

D Tinyint

 

10. What will be the storage form for “float(4,2)” in Mysql?

A Total of four digits, two to the left of the decimal and two to the right of the decimal

B Total of six digits

C Total of four digits, not evenly distributed

D None of the above

mcq

Leave a Reply

Your email address will not be published. Required fields are marked *