Skip to main content

MySQL MCQs PART 1

Top MySQL MCQs for UGC NET, SET, EMRS, KVS, ISRO, and Assistant Professor and other competitive exams...


1. Which of the following is true about MySQL?

A) MySQL is an open-source database management system
B) MySQL is a NoSQL database
C) MySQL does not support relational database features
D) MySQL is a proprietary database

Answer: A) MySQL is an open-source database management system


2. What is the default storage engine used by MySQL as of version 5.5?

A) MyISAM
B) InnoDB
C) HEAP
D) CSV

Answer: B) InnoDB


3. Which command is used to view all databases in MySQL?

A) SHOW DATABASES;
B) DISPLAY DATABASES;
C) LIST DATABASES;
D) VIEW DATABASES;

Answer: A) SHOW DATABASES;


4. Which data type is used to store large text data in MySQL?

A) VARCHAR
B) TEXT
C) INT
D) BLOB

Answer: B) TEXT


5. What is the function of the AUTO_INCREMENT attribute in MySQL?

A) Automatically increases a column value when a new row is inserted
B) Decreases the column value after every insert
C) Assigns random values to the column
D) None of the above

Answer: A) Automatically increases a column value when a new row is inserted


6. What is the maximum number of columns a MySQL table can have?

A) 256
B) 512
C) 1024
D) 4096

Answer: C) 1024


7. Which MySQL clause is used to filter the records retrieved by a SELECT statement?

A) ORDER BY
B) WHERE
C) GROUP BY
D) HAVING

Answer: B) WHERE


8. What does the UNION operator do in MySQL?

A) Merges two SELECT queries but removes duplicate rows
B) Merges two SELECT queries and retains duplicate rows
C) Joins two tables based on a common column
D) None of the above

Answer: A) Merges two SELECT queries but removes duplicate rows


9. Which of the following statements is true about indexing in MySQL?

A) Indexes slow down SELECT queries
B) Indexes improve query performance
C) Indexes are automatically created for all columns
D) Indexes can only be applied to primary keys

Answer: B) Indexes improve query performance


10. What will happen if you use the DELETE statement without a WHERE clause?

A) It will delete only one record
B) It will delete all records in the table
C) It will throw an error
D) It will not affect the table

Answer: B) It will delete all records in the table

Comments

Popular posts from this blog

Top 5 Safe Chat Apps for Kids with Parental Controls

Now a days kids are growing up with technology at their fingertips. While communication apps help children stay connected with family and friends, safety remains a top concern for parents. Unregulated platforms can expose children to inappropriate content, online predators, and cyberbullying. That’s why choosing a kid-friendly chat app with parental controls is essential. To help parents find the best options, we’ve compiled a list of the top five safest chat apps for kids that offer safe and controlled environment. 1. Messenger Kids (By Meta) Best for: Safe video calls and text messaging with parental supervision Features: Parents approve all contacts No ads or in-app purchases Fun filters, stickers, and games Monitored messaging and activity reports Why It’s Safe: Messenger Kids is designed for children under 13 and requires parental approval for every contact. Parents can monitor chats and control screen time through the Parent Dashboard. Download Messenger Kids 2...

10 Distance Vector and Link-State Routing MCQ

  10 multiple-choice questions  on  Distance Vector and Link-State Routing with explanations, useful for  UGC NET, SET, GATE, ISRO, and other competitive exams . Question 1: Basic Concept of Distance Vector Routing Q1: In a distance vector routing protocol, how do routers share routing information? A) By flooding the entire network with routing updates B) By periodically exchanging routing tables with their immediate neighbors C) By using a link-state database to determine the shortest path D) By dynamically updating paths based on link failure reports Answer: B) By periodically exchanging routing tables with their immediate neighbors Explanation: In Distance Vector Routing, routers share their routing tables with neighbors at regular intervals, leading to a simple but slow convergence mechanism. Question 2: Example of Distance Vector Routing Protocol Q2: Which of the following is an example of a Distance Vector routing protocol? A) OSPF ...

10 Routing Protocol MCQ

10 multiple-choice questions on Routing protocol s  with explanations, useful for UGC NET, SET, GATE, ISRO, and other competitive exams . Question 1: Purpose of Routing Protocols Q1: What is the primary purpose of a routing protocol? A) To assign IP addresses to devices B) To determine the best path for data packets to reach their destination C) To encrypt data during transmission D) To physically connect different networks Answer: B) To determine the best path for data packets to reach their destination Explanation: Routing protocols help routers determine the most efficient path for data transmission across a network, ensuring fast and reliable communication. Question 2: Classification of Routing Protocols Q2: Routing protocols can be broadly classified into which two main categories? A) TCP and UDP B) Distance Vector and Link-State C) IPv4 and IPv6 D) Static and Dynamic Answer: B) Distance Vector and Link-State Explanation: Routing prot...