MySQL is the most common open-source software, nowadays every other person relies on MYSQL for its database. As it is open source so anyone in this world can use this system. This system is developed by ORACLE cooperation.
MySQL MCQs: This section contains multiple-choice questions and answers on the various topics of MySQL. Practice these MCQs to test and enhance your skills on MySQL.
Title | |
---|---|
In which language MYSQL is written? |
|
To see the list of options provided by MYSQL which of the following command is used?To see the list of options provided by MYSQL which of the following command is used?
The answer is:
C. -- HELP
|
|
What do you mean by HOST in MYSQL?What do you mean by HOST in MYSQL?
The answer is:
B. HOST is the representation of where the MYSQL server is running.
|
|
Is a semicolon necessary after every query? |
|
To know your MYSQL version and current date which of the following command you should use?To know your MYSQL version and current date which of the following command you should use?
The answer is:
C. SELECT VERSION(), CURRENT_DATE;
|
|
What is the work of UPDATE command?What is the work of UPDATE command?
The answer is:
C. Database data can be updated or changed using this command.
|
|
In which form MYSQL query results are displayed?In which form MYSQL query results are displayed?
The answer is:
C. ROWS AND COLUMNS
|
|
What does the marked time represent in the given picture?What does the marked time represent in the given picture?
The answer is:
C. WALL CLOCK TIME
|
|
In MYSQL, can we write keywords in any letter case? |
|
In MYSQL, can you write multiple statements in a single line? |
|
If you want to stop the processing query then which of the following command you should use?If you want to stop the processing query then which of the following command you should use?
The answer is:
C. /c
|
|
To see all the databases which command is used?To see all the databases which command is used?
The answer is:
B. Show databases;
|
|
Can we create a database named 01_test? |
|
In the following statement, what do you mean by the 'student'?In the following statement, what do you mean by the 'student'?
The answer is:
A. Database name
|
|
If our database name is 'schooldb' and we want to drop this database will the query work if we will write our database name in capital letters?If our database name is 'schooldb' and we want to drop this database will the query work if we will write our database name in capital letters?
The answer is:
A. YES
|
|
Which of the following command is used to delete a database?Which of the following command is used to delete a database?
The answer is:
C. DROP DATABASE DATABASE_NAME;
|
|
ALTER command is a type of which SQL command? |
|
Which of the following is the correct syntax to add a field using alter command?Which of the following is the correct syntax to add a field using alter command?
The answer is:
A. ALTER TABLE table_name ADD field_name data type;
|
|
Can you change the column name using alter command? |
|
Suppose you have a table named to test and inside this table you have a column named CGPA now if you are asked to change the column named CGPA to total percentage, using alter command then which of the following statement you will write?Suppose you have a table named to test and inside this table you have a column named CGPA now if you are asked to change the column named CGPA to total percentage, using alter command then which of the following statement you will write?
The answer is:
A. ALTER TABLE test CHANGE COLUMN 'cgpa’ 'total_percentage’ int;
|
MCQs
Views
Best Answers
Points