Class 12 Computer Science Chapter 4 Structured Query Language (Sql) Quiz 1 (60 MCQs)

Quiz Instructions

Select an option to see the correct answer instantly.

1. If you don't specify ASC or DESC after a SQL ORDER BY clause, the following is used by default
2. Which statement is used to extract data from a database?
3. .... datatype precision up to a maximum of 64.
4. Which operator test the column for absence of data?
5. Define the type of SQL that used to insert, delete and retrieve data within the database tables.
6. What does the SQL statement 'SELECT name FROM world WHERE population > (SELECT population FROM world WHERE name = Algeria)' do?
7. What is the built-in MySQL function that gives you the current time in an SQL statement?
8. The ..... statement is used to delete a table.
9. Which of the following types of tables often are created without a primary key?
10. When editing the columns in a pre-existing table, which command adds a new column?
11. What is a field (column) in a database table?
12. What is the purpose of the 'join' keyword in SQL?
13. When editing columns in a pre-existing table, which command allows you to delete a column?
14. .... helps to set a limit value placed for a field.
15. State True or False:1. FROM statement groups rows with similar values in the specified grouping field.
16. What is the label we give to a column that is an integer and used to point to a row in a different table?
17. Which key is used to execute a query?
18. .... which helps to uniquely identify a record.
19. What is the purpose of the 'order by' command in SQL?
20. Can the result of a SELECT statement contain duplicate rows?
21. How can you perform an SQL query on more than one table?
22. .... is a computer programming language used for adding, removing, and modifying data in a database.
23. Which of the following is NOT a good rule to follow when developing a database model?
24. State True or False:1. SELECT statement is used to extract records from one or more tables
25. What does * mean when writing code?
26. Which type of language is SQL?
27. What could be the correct datatype for 'H.NO. 234, SEC-14' data
28. State the use of WHERE clause.
29. Pernyataan SQL manakah yang digunakan untuk mengekstrak data daripada pangkalan data?
30. Choose SQL command to display the name of cake that end with word cheese.
31. SELECT *FROM BarangORDER BY NamaBarang DESCPernyataan diatas bertujuan untuk
32. TRUE OR FALSE:when adding data to all fields in a table, you still have to specify the field names
33. Choose the CORRECT query for using comparison operators in SQL.
34. Which of the following SQL clauses is used to DELETE tuples from a database table?
35. What is the default sorting order of the ORDER BY clause in SQL?
36. Arthur is working on a database for his school project and wants to retrieve specific data from a table. Which SQL statement should he use?
37. Apakah maksud SQL?
38. What does the SQL command 'DROP TABLE' do?
39. Which of the following is the label we give a column that the "outside world" uses to look up a particular row?
40. Which function is used to calculate the summary values?
41. .... have a special meaning in SQL.
42. SQL query to find all the cities whose humidity is 95.
43. The ..... consist of SQL statements used to define the database structure or schema.
44. Images, PDF, movies cannot be stored in a database.
45. Apakah penyataan SQL untuk mengemas kini nombor telefon '012345678' hanya untuk attribut DesignerID, "SMI01" dalam jadual "Designer" ?
46. What does the SQL statement 'SELECT * FROM world WHERE name = Algeria' do?
47. The UPDATE SQL clause can .....
48. Pilih arahan SQL yang digunakan untuk memasukkan data ke dalam jadual SQL?
49. Your friend accidentally runsDROP TABLE users;instead ofCREATE TABLE users;.What happens?
50. TRUE OR FALSE:when inserting data into a table you must specify field names
51. If you were wanting to filter data, which clause would you use?
52. A relation may have multiple foreign keys.
53. What does the ALTER TABLE clause do?
54. In SQL, the truth value of (FALSE OR NULL) is .....
55. What does the SQL statement 'SELECT name, population FROM world WHERE name LIKE 'A%' OR name LIKE 'B%" do?
56. When editing columns in a pre-existing table, which command allows you to change the data type of a column?
57. What MySQL keyword is added to primary keys in a CREATE TABLE statement to indicate that the database is to provide a value for the column when records are inserted.
58. Which word is missing from the following SQL statement?Select * table ..... name
59. Identify if there is an error in the SQL statement below in deleting a record:DELETE FROM Employee ..... details WHERE Employee ..... details.ID = 10;
60. Which of the following indexes would be best for fast look up for exact key matches but not so good for prefix lookups or sorting?