--:--









Quiz for CREATE Table

Course: SQL | Subject: SQL | Topic: Data Definition Language (DDL)



Logo

Q1: Which SQL command is used to create a new table?

Logo

Q2: Which SQL keyword is used to define a new table?

Logo

Q3: Which of the following is correct syntax to create a table?

Logo

Q4: How do you define a primary key while creating a table?

Logo

Q5: Which constraint ensures a column cannot have NULL values?

Logo

Q6: To create a table with a default value for a column, you use:

Logo

Q7: Which data type is used to store variable-length strings in SQL?

Logo

Q8: Which of the following is NOT a valid SQL data type?

Logo

Q9: What does the AUTO_INCREMENT attribute do in MySQL?

Logo

Q10: Which SQL command is used to ensure a column has unique values?

Logo

Q11: Which command creates a table only if it does not already exist?

Logo

Q12: What is the maximum length of a VARCHAR in MySQL?

Logo

Q13: Which keyword is used to set a column as the primary key?

Logo

Q14: How many primary keys can a table have?

Logo

Q15: Which of the following allows a column to have NULL values?

Logo

Q16: What is the purpose of the FOREIGN KEY constraint?

Logo

Q17: Which clause is used to define constraints while creating a table?

Logo

Q18: Which of these defines a composite primary key?

Logo

Q19: Which SQL command creates a copy of an existing table’s structure?

Logo

Q20: Which column constraint automatically fills in a column value?

Logo

Q21: Which of these is a valid SQL syntax to create a table with an integer column?

Are you ready to start test? Set your time limit