PHP Interview Questions

Laravel Interview Questions

MySQL Interview Questions

What is a stored procedure in MySQL?

Show Answer
Correct Answer: B - A set of SQL statements that can be stored and reused

What does CRUD stand for in database management?

Show Answer
Correct Answer: A - Create, Read, Update, Delete

What is a primary key in a database?

Show Answer
Correct Answer: A - A unique identifier for a record in a table

What is an index in a database?

Show Answer
Correct Answer: B - A structure that improves the speed of data retrieval

Which of the following is used to create a new table in MySQL?

Show Answer
Correct Answer: A - CREATE TABLE

What is an index in MySQL?

Show Answer
Correct Answer: B - A data structure that improves the speed of data retrieval

Which of the following is used to retrieve data from a MySQL database?

Show Answer
Correct Answer: A - SELECT

Which SQL function is used to count the number of rows in a result set?

Show Answer
Correct Answer: A - COUNT()

Which SQL statement is used to update existing records in a table?

Show Answer
Correct Answer: C - UPDATE

What is a JOIN in SQL?

Show Answer
Correct Answer: A - A command to combine rows from two or more tables

What does the term 'foreign key' refer to?

Show Answer
Correct Answer: B - A field in one table that uniquely identifies a row of another table

Which of the following is a valid SQL statement to retrieve all records from a table named 'users'?

Show Answer
Correct Answer: A - SELECT * FROM users;

What does the acronym CRUD stand for in database management?

Show Answer
Correct Answer: A - Create, Read, Update, Delete

What is the purpose of the 'WHERE' clause in SQL?

Show Answer
Correct Answer: B - To filter records based on a condition

What does SQL stand for?

Show Answer
Correct Answer: A - Structured Query Language

Which SQL statement is used to create a new table in MySQL?

Show Answer
Correct Answer: A - CREATE TABLE

What is MySQL?

Show Answer
Correct Answer: B - A relational database management system

Which SQL command is used to retrieve data from a database?

Show Answer
Correct Answer: B - SELECT

What is a primary key in MySQL?

Show Answer
Correct Answer: A - A unique identifier for a record in a table

What is the purpose of indexing in MySQL?

Show Answer
Correct Answer: B - To improve the speed of data retrieval

What is performance tuning in MySQL?

Show Answer
Correct Answer: A - The process of optimizing database performance

What does the term 'foreign key' refer to in MySQL?

Show Answer
Correct Answer: B - A field that links two tables together