MCQ King
SQLite – Creating a Database
1 / 26
1. What is the primary step in creating a new SQLite database?
2 / 26
2. Which command is used to create a new SQLite database file?
3 / 26
3. What is the file extension commonly used for SQLite database files?
4 / 26
4. Which SQLite command is used to connect to an existing database?
5 / 26
5. What is the purpose of the SQLite command “ATTACH DATABASE”?
6 / 26
6. Which SQL command is used to create a new table in an SQLite database?
7 / 26
7. In SQLite, how do you specify the columns of a table during creation?
8 / 26
8. Which clause is used to define a primary key in an SQLite table?
9 / 26
9. What happens if you try to create a table with the same name as an existing one in an SQLite database?
10 / 26
10. Which data type is commonly used to store integer values in SQLite?
11 / 26
11. What is the maximum length of a VARCHAR column in SQLite?
12 / 26
12. Which SQLite command is used to delete a table from a database?
13 / 26
13. How do you specify a default value for a column when creating a table?
14 / 26
14. In SQLite, what is the purpose of the “AUTOINCREMENT” keyword?
15 / 26
15. What is the purpose of the SQLite command “BEGIN TRANSACTION”?
16 / 26
16. How do you terminate a transaction in SQLite without making any changes?
17 / 26
17. What is the purpose of the SQLite command “COMMIT”?
18 / 26
18. Which SQL statement is used to add a new column to an existing table in SQLite?
19 / 26
19. Which keyword is used to remove a column from an existing table in SQLite?
20 / 26
20. In SQLite, what is the purpose of the “IF NOT EXISTS” clause when creating a table?
21 / 26
21. Which SQL command is used to rename an existing table in SQLite?
22 / 26
22. What is the purpose of the “DROP TABLE” command in SQLite?
23 / 26
23. Which of the following is NOT a valid way to interact with SQLite?
24 / 26
24. What does “CRUD” stand for in the context of database operations?
25 / 26
25. Which SQL command is used to retrieve data from a SQLite database?
26 / 26
26. In SQLite, how do you specify the columns you want to retrieve in a SELECT statement?
Your score is
Restart quiz