MCQ King
SQLite – Creating Tables
1 / 25
1. What is the primary purpose of creating tables in an SQLite database?
2 / 25
2. Which SQL command is used to create a new table in an SQLite database?
3 / 25
3. In SQLite, how do you specify the name of the table when creating it?
4 / 25
4. What is the purpose of the “PRIMARY KEY” constraint when creating a table?
5 / 25
5. Which of the following is a valid SQLite data type for storing date and time values?
6 / 25
6. How do you specify the data type of a column when creating a table in SQLite?
7 / 25
7. In SQLite, how do you add a new column to an existing table?
8 / 25
8. Which keyword is used to specify that a column should allow NULL values when creating a table?
9 / 25
9. What is the maximum length of a VARCHAR column in SQLite?
10 / 25
10. Which SQL statement is used to remove a column from an existing table in SQLite?
11 / 25
11. How do you specify a default value for a column when creating a table in SQLite?
12 / 25
12. In SQLite, what is the purpose of the “AUTOINCREMENT” keyword when creating a table?
13 / 25
13. What is the purpose of the “CHECK” constraint when creating a table in SQLite?
14 / 25
14. Which keyword is used to specify a unique constraint on a column when creating a table?
15 / 25
15. What does the “DEFAULT CURRENT_TIMESTAMP” constraint do in SQLite?
16 / 25
16. What is the primary purpose of the “FOREIGN KEY” constraint when creating a table in SQLite?
17 / 25
17. How do you specify a foreign key constraint on a column when creating a table in SQLite?
18 / 25
18. Which SQL command is used to create a unique index on a column when creating a table in SQLite?
19 / 25
19. What is the purpose of the “IF NOT EXISTS” clause when creating a table in SQLite?
20 / 25
20. Which of the following is a valid SQLite data type for storing binary data, such as images?
21 / 25
21. In SQLite, how do you specify that a column should have a unique constraint when creating a table?
22 / 25
22. What is the primary difference between VARCHAR and CHAR data types in SQLite?
23 / 25
23. Which keyword is used to specify a column as the primary key when creating a table in SQLite?
24 / 25
24. What is the purpose of the “DEFAULT” keyword when creating a table in SQLite?
25 / 25
25. In SQLite, what is the maximum number of columns that a table can have?
Your score is
Restart quiz