This quiz works best with JavaScript enabled. Home > Class 12 > Class 12 Computer Science Chapter 4 Structured Query Language (Sql) – Quiz 4 🏠 Homepage 📘 Download PDF Books 📕 Premium PDF Books Class 12 Computer Science Chapter 4 Structured Query Language (Sql) Quiz 4 (25 MCQs) Quiz Instructions Select an option to see the correct answer instantly. 1. What does the SQL statement 'DELETE FROM world WHERE population > 10000000' do? A) Deletes records from the 'world' table if their population is larger than 10 million. B) Inserts new records into the 'world' table. C) Updates records in the 'world' table. D) Retrieves data from the 'world' table. Show Answer Correct Answer: A) Deletes records from the 'world' table if their population is larger than 10 million. 2. What is a record (row) in a database table? A) A single piece of data or attribute stored for all records in a table. B) A single entry in a table, consisting of data for each field within that table. C) A field that uniquely identifies each record in a table. D) A connection between two tables in a database. Show Answer Correct Answer: B) A single entry in a table, consisting of data for each field within that table. 3. What is a special value in SQL that represents missing or unknown data? A) %. B) ?. C) NULL. D) *. Show Answer Correct Answer: C) NULL. 4. Pernyataan (a) ..... dalam SQL digunakan untuk membina jadual daripada pangkalan data, manakala pernyataan (b) ..... dalam SQL digunakan untuk menghapuskan jadual daripada pangkalan data. A) CREATE b)DELETE. B) ALTER TABLE b) DROP. C) ALTER TABLE b)DELETE. D) CREATE b)DROP. Show Answer Correct Answer: D) CREATE b)DROP. 5. SQL query to find the temperature in increasing order of all cities. A) SELECT city FROM weather ORDER BY temperature. B) SELECT city, temperature FROM weather. C) SELECT city, temperature FROM weather ORDER BY temperature. D) SELECT city, temperature FROM weather ORDER BY city. Show Answer Correct Answer: D) SELECT city, temperature FROM weather ORDER BY city. 6. WHICH QUERY?defines the list of search criteria A) SELECT. B) FROM. C) WHERE. D) ORDER BY. Show Answer Correct Answer: C) WHERE. 7. The ..... consists of commands used to query or retrieve data from a database. A) Transfer Control Language. B) Data Query Language. C) Data Control Language. D) Data Manipulation Language. Show Answer Correct Answer: B) Data Query Language. 8. What is the main purpose of a relational database? A) To store data in a single table. B) To organise data into related tables and link data across tables. C) To analyse data using statistical methods. D) To provide a user interface for data entry. Show Answer Correct Answer: B) To organise data into related tables and link data across tables. 9. Which command is used to add a new field to an existing table in SQL? A) Alter table. B) Append column. C) Insert field. D) Add field. Show Answer Correct Answer: A) Alter table. 10. Which SQL command is used to select specific data from a table? A) INSERT INTO. B) DELETE FROM. C) UPDATE. D) SELECT. Show Answer Correct Answer: D) SELECT. 11. What does a NULL value represent in SQL? A) It is treated as a blank or zero. B) It is treated as a non-existent value. C) It is treated as a negative value. D) None of the above. Show Answer Correct Answer: B) It is treated as a non-existent value. 12. Select SQL command to insert values in COURSE table. A) INSERT COURSE VALUES("DFC20203", "Database Design");. B) INSERT VALUES INTO COURSE ("DFC20203", "Database Design");. C) INSERT COURSE VALUES ("DFC20203", "Database Design") INTO COURSE;. D) INSERT INTO COURSE VALUES ("DFC20203", "Database Design");. Show Answer Correct Answer: D) INSERT INTO COURSE VALUES ("DFC20203", "Database Design");. 13. Which of the following scripts will run successfully? A) SELECT customer name FROM customers;. B) SELECT FROM 'customers' 'customer name';. C) SELECT 'customer name' FROM customers ORDER BY zone WHERE cat id = 12;. D) SELECT 'customer name' FROM customers WHERE cat id = 12 ORDER BY cat id;. Show Answer Correct Answer: A) SELECT customer name FROM customers;. 14. "INSERT INTO" is the keyword used to insert data into tables. A) True. B) False. C) All the above. D) None of the above. Show Answer Correct Answer: A) True. 15. What can you do with SQL besides the commands mentioned? A) Define and create tables. B) Add, delete, and change fields in a table. C) Set up relationships between tables. D) All of the above. Show Answer Correct Answer: D) All of the above. 16. What is missing in this code? SELECT * FROM WHERE genre = 'action' ORDER BY year ASC; A) Missing an AND. B) Table name. C) Capitalize action. D) None of these. Show Answer Correct Answer: B) Table name. 17. What is the SQL keyword that reconnects rows with foreign keys with the corresponding data in the table that the foreign key points to? A) CONSTRAINT. B) APPEND. C) COUNT. D) JOIN. E) CONNECT. Show Answer Correct Answer: D) JOIN. 18. What does the SQL command 'SELECT *' do? A) Selects all fields from the table. B) Selects only the primary key field. C) Selects fields with a specific value. D) Selects fields based on a condition. Show Answer Correct Answer: A) Selects all fields from the table. 19. SQL is a ..... language designed for the retrieval and management of relational database. A) Speaking. B) Programming. C) All the above. D) None of the above. Show Answer Correct Answer: B) Programming. 20. What is the purpose of the 'like' keyword in SQL? A) To select records based on a pattern. B) To join multiple tables. C) To insert new records into a table. D) To delete records from a table. Show Answer Correct Answer: A) To select records based on a pattern. 21. Where does the CREATE Command belong? A) DML. B) DDL. C) DCL. D) None of the above. Show Answer Correct Answer: B) DDL. 22. The command to remove rows from a table 'CUSTOMER' is ..... A) DROP FROM CUSTOMER. B) UPDATE FROM CUSTOMER. C) REMOVE FROM CUSTOMER. D) DELETE FROM CUSTOMER WHERE. Show Answer Correct Answer: D) DELETE FROM CUSTOMER WHERE. 23. What is the purpose of the 'update' command in SQL? A) To join multiple tables. B) To modify existing records. C) To delete records from a table. D) To insert new records into a table. Show Answer Correct Answer: B) To modify existing records. 24. The LIMIT clause reduces the number of rows returned by a query. A) True. B) False. C) All the above. D) None of the above. Show Answer Correct Answer: A) True. 25. Differentiate between DELETE and DROP command. A) DELETE is DDL command while DROP is DML command. B) DELETE cannot use with WHERE clause while DROP can use with WHERE clause. C) DELETE is used to remove a table from the database while DROP cannot remove a table from the database. D) DELETE is used to remove a record of a table while DROP is used to remove a structure and records of a table. Show Answer Correct Answer: D) DELETE is used to remove a record of a table while DROP is used to remove a structure and records of a table. ← PreviousNext →Related QuizzesClass 12 Computer Science Chapter 4 Structured Query Language (Sql) Quiz 1Class 12 Computer Science Chapter 4 Structured Query Language (Sql) Quiz 2Class 12 Computer Science Chapter 4 Structured Query Language (Sql) Quiz 3Class 12 Computer Science Chapter 4 Structured Query Language (Sql) Quiz 5Class 12 Computer Science Chapter 4 Structured Query Language (Sql) Quiz 6Class 12 Computer Science Chapter 4 Structured Query Language (Sql) Quiz 7Class 12 Accountancy Chapter 1 Accounting For Partnership Firms Fundamentals QuizClass 12 Accountancy Chapter 2 Accounting For Partnership Firms Admission Of A Partner QuizClass 12 Accountancy Chapter 3 Accounting For Partnership Firms Retirement Death Of A Partner QuizClass 12 Accountancy Chapter 4 Accounting For Companies Issue Of Shares QuizClass 12 Accountancy Chapter 5 Accounting For Companies Issue Of Debentures QuizClass 12 Accountancy Chapter 7 Financial Statements Of Companies QuizClass 12 Accountancy Chapter 8 Analysis Of Financial Statements QuizClass 12 Accountancy Chapter 9 Computerised Accounting System QuizClass 12 Biology Chapter 1 Reproduction In Organisms QuizClass 12 Biology Chapter 10 Microbes In Human Welfare QuizClass 12 Biology Chapter 11 Biotechnology Principles And Processes QuizClass 12 Biology Chapter 12 Biotechnology And Its Applications QuizClass 12 Biology Chapter 13 Organisms And Populations QuizClass 12 Biology Chapter 14 Ecosystem QuizClass 12 Biology Chapter 15 Biodiversity And Conservation QuizClass 12 Biology Chapter 16 Environmental Issues QuizClass 12 Biology Chapter 2 Sexual Reproduction In Flowering Plants QuizClass 12 Biology Chapter 3 Human Reproduction QuizClass 12 Biology Chapter 4 Reproductive Health QuizClass 12 Biology Chapter 5 Principles Of Inheritance And Variation QuizClass 12 Biology Chapter 6 Molecular Basis Of Inheritance QuizClass 12 Biology Chapter 7 Evolution QuizClass 12 Biology Chapter 8 Human Health And Disease QuizClass 12 Biology Chapter 9 Strategies For Enhancement In Food Production QuizClass 12 Business Studies Chapter 1 Nature And Significance Of Management QuizClass 12 Business Studies Chapter 10 Financial Markets QuizClass 12 Business Studies Chapter 11 Marketing Management QuizClass 12 Business Studies Chapter 12 Consumer Protection QuizClass 12 Business Studies Chapter 2 Principles Of Management QuizClass 12 Business Studies Chapter 3 Business Environment QuizClass 12 Business Studies Chapter 4 Planning QuizClass 12 Business Studies Chapter 5 Organising QuizClass 12 Business Studies Chapter 6 Staffing QuizClass 12 Business Studies Chapter 7 Directing QuizClass 12 Business Studies Chapter 8 Controlling QuizClass 12 Business Studies Chapter 9 Financial Management QuizClass 12 Chemistry (Part I) Chapter 1 Solid State QuizClass 12 Chemistry (Part I) Chapter 2 Solutions QuizClass 12 Chemistry (Part I) Chapter 3 Electrochemistry QuizClass 12 Chemistry (Part I) Chapter 4 Chemical Kinetics QuizClass 12 Chemistry (Part I) Chapter 5 Surface Chemistry QuizClass 12 Chemistry (Part Ii) Chapter 10 Haloalkanes And Haloarenes QuizClass 12 Chemistry (Part Ii) Chapter 11 Alcohols QuizClass 12 Chemistry (Part Ii) Chapter 12 Aldehydes QuizClass 12 Chemistry (Part Ii) Chapter 13 Amines QuizClass 12 Chemistry (Part Ii) Chapter 14 Biomolecules QuizClass 12 Chemistry (Part Ii) Chapter 15 Polymers QuizClass 12 Chemistry (Part Ii) Chapter 16 Chemistry In Everyday Life QuizClass 12 Chemistry (Part Ii) Chapter 7 P Block Elements QuizClass 12 Chemistry (Part Ii) Chapter 8 D And F Block Elements QuizClass 12 Chemistry (Part Ii) Chapter 9 Coordination Compounds QuizClass 12 Computer Science Chapter 1 Data Structures Using Python QuizClass 12 Computer Science Chapter 2 Advanced Python Programming QuizClass 12 Computer Science Chapter 3 Database Management Systems QuizClass 12 Computer Science Chapter 5 Networking And Cyber Security QuizClass 12 Computer Science Chapter 6 Boolean Algebra And Logic Gates QuizClass 12 Economics (Indian Economic Development) Chapter 1 Development Experience (1947 90) And Economic Reforms Since 1991 QuizClass 12 Economics (Indian Economic Development) Chapter 2 Current Challenges Facing The Indian Economy QuizClass 12 Economics (Indian Economic Development) Chapter 3 Development Experience Of India A Comparison With Neighbours QuizClass 12 Economics (Macro Economics) Chapter 1 Introduction QuizClass 12 Economics (Macro Economics) Chapter 2 National Income Accounting QuizClass 12 Economics (Macro Economics) Chapter 3 Money And Banking QuizClass 12 Economics (Macro Economics) Chapter 4 Determination Of Income And Employment QuizClass 12 Economics (Macro Economics) Chapter 5 Government Budget And The Economy QuizClass 12 Economics (Macro Economics) Chapter 6 Open Economy Macroeconomics QuizClass 12 English (Flamingo) Chapter 1 The Last Lesson QuizClass 12 English (Flamingo) Chapter 2 Lost Spring QuizClass 12 English (Flamingo) Chapter 3 Deep Water QuizClass 12 English (Flamingo) Chapter 4 The Rattrap QuizClass 12 English (Flamingo) Chapter 5 Indigo QuizClass 12 English (Flamingo) Chapter 6 Poets And Pancakes QuizClass 12 English (Flamingo) Chapter 7 The Interview QuizClass 12 English (Flamingo) Chapter 8 Going Places QuizClass 12 English (Vistas) Chapter 1 The Third Level QuizClass 12 English (Vistas) Chapter 2 The Tiger King QuizClass 12 English (Vistas) Chapter 3 Journey To The End Of The Earth QuizClass 12 English (Vistas) Chapter 4 The Enemy QuizClass 12 English (Vistas) Chapter 5 Should Wizard Hit Mommy QuizClass 12 English (Vistas) Chapter 6 On The Face Of It QuizClass 12 English (Vistas) Chapter 7 Evans Tries An O Level QuizClass 12 English (Vistas) Chapter 8 Memories Of Childhood QuizClass 12 Entrepreneurship Chapter 1 Entrepreneurship And Enterprise QuizClass 12 Entrepreneurship Chapter 2 Entrepreneurial Planning QuizClass 12 Entrepreneurship Chapter 3 Project Formulation And Analysis QuizClass 12 Entrepreneurship Chapter 4 Enterprise Growth And Expansion QuizClass 12 Entrepreneurship Chapter 5 Business Ethics And Corporate Social Responsibility QuizClass 12 Entrepreneurship Chapter 6 Government Policies And Support To Entrepreneurship QuizClass 12 Entrepreneurship Chapter 7 Managing A Growing Enterprise QuizClass 12 Fine Arts Chapter 1 Elements And Principles Of Design QuizClass 12 Fine Arts Chapter 2 Advanced Colour Theory QuizClass 12 Fine Arts Chapter 3 Drawing And Painting Techniques QuizClass 12 Fine Arts Chapter 4 Art Movements Modern And Contemporary QuizClass 12 Fine Arts Chapter 7 Exhibition And Critique QuizClass 12 Geography Chapter 1 Human Geography Nature And Scope QuizClass 12 Geography Chapter 10 Disaster Management QuizClass 12 Geography Chapter 2 Population And Human Settlements QuizClass 12 Geography Chapter 3 Human Development QuizClass 12 Geography Chapter 4 Transport And Communication QuizClass 12 Geography Chapter 5 Primary Activities QuizClass 12 Geography Chapter 6 Secondary Activities QuizClass 12 Geography Chapter 7 Tertiary And Quaternary Activities QuizClass 12 Geography Chapter 8 Regional Development QuizClass 12 Geography Chapter 9 Environmental Geography QuizClass 12 History Chapter 1 The Rise Of Nationalism In Europe QuizClass 12 History Chapter 10 The Cold War Era QuizClass 12 History Chapter 2 Nationalism In India QuizClass 12 History Chapter 3 The Making Of A Global World QuizClass 12 History Chapter 4 The Age Of Industrialisation QuizClass 12 History Chapter 5 Print Culture And The Modern World QuizClass 12 History Chapter 6 The First World War QuizClass 12 History Chapter 7 The Interwar Years QuizClass 12 History Chapter 8 The Second World War QuizClass 12 Home Science Chapter 2 Fabric And Apparel QuizClass 12 Home Science Chapter 3 Food And Nutrition QuizClass 12 Home Science Chapter 4 Human Development QuizClass 12 Home Science Chapter 5 Adolescence And Life Skills QuizClass 12 Home Science Chapter 7 Textiles And Clothing QuizClass 12 Mathematics Chapter 1 Relations And Functions QuizClass 12 Mathematics Chapter 10 Vector Algebra QuizClass 12 Mathematics Chapter 11 Three Dimensional Geometry QuizClass 12 Mathematics Chapter 12 Linear Programming QuizClass 12 Mathematics Chapter 13 Probability QuizClass 12 Mathematics Chapter 2 Inverse Trigonometric Functions QuizClass 12 Mathematics Chapter 3 Matrices QuizClass 12 Mathematics Chapter 4 Determinants QuizClass 12 Mathematics Chapter 5 Continuity And Differentiability QuizClass 12 Mathematics Chapter 6 Applications Of Derivatives QuizClass 12 Mathematics Chapter 7 Integrals QuizClass 12 Mathematics Chapter 8 Applications Of Integrals QuizClass 12 Mathematics Chapter 9 Differential Equations QuizClass 12 Philosophy Chapter 1 Philosophy And Its Relation With Other Disciplines QuizClass 12 Philosophy Chapter 2 Epistemology The Theory Of Knowledge QuizClass 12 Philosophy Chapter 3 Metaphysics QuizClass 12 Philosophy Chapter 4 Ethics QuizClass 12 Philosophy Chapter 5 Indian Philosophy Classical Traditions QuizClass 12 Philosophy Chapter 6 Modern Western Philosophy QuizClass 12 Philosophy Chapter 7 Philosophy In Contemporary Times QuizClass 12 Physical Education Chapter 1 Management Of Sports And Physical Activity QuizClass 12 Physical Education Chapter 2 Planning In Sports QuizClass 12 Physical Education Chapter 3 Children And Women In Sports QuizClass 12 Physical Education Chapter 4 Test, Measurement And Evaluation In Sports QuizClass 12 Physical Education Chapter 5 Kinesiology, Biomechanics And Sports QuizClass 12 Physical Education Chapter 6 Yoga And Lifestyle QuizClass 12 Physical Education Chapter 7 Physical Education And Leadership QuizClass 12 Physical Education Chapter 8 Training And Doping In Sports QuizClass 12 Physical Education Chapter 9 Physiology And Exercise QuizClass 12 Physics (Part I) Chapter 1 Electric Charges And Fields QuizClass 12 Physics (Part I) Chapter 2 Electrostatic Potential And Capacitance QuizClass 12 Physics (Part I) Chapter 3 Current Electricity QuizClass 12 Physics (Part I) Chapter 4 Moving Charges And Magnetism QuizClass 12 Physics (Part I) Chapter 5 Magnetism And Matter QuizClass 12 Physics (Part I) Chapter 6 Electromagnetic Induction QuizClass 12 Physics (Part I) Chapter 7 Alternating Current QuizClass 12 Physics (Part I) Chapter 8 Electromagnetic Waves QuizClass 12 Physics (Part Ii) Chapter 10 Wave Optics QuizClass 12 Physics (Part Ii) Chapter 11 Dual Nature Of Radiation And Matter QuizClass 12 Physics (Part Ii) Chapter 12 Atoms QuizClass 12 Physics (Part Ii) Chapter 13 Nuclei QuizClass 12 Physics (Part Ii) Chapter 14 Semiconductor Electronics Materials QuizClass 12 Physics (Part Ii) Chapter 9 Ray Optics And Optical Instruments QuizClass 12 Political Science Chapter 1 Challenges Of Nation Building QuizClass 12 Political Science Chapter 10 Challenges To Democracy QuizClass 12 Political Science Chapter 2 Planning And Development QuizClass 12 Political Science Chapter 3 India'S Foreign Policy QuizClass 12 Political Science Chapter 4 India After Independence QuizClass 12 Political Science Chapter 5 Democracy And Diversity QuizClass 12 Political Science Chapter 6 Gender, Religion And Caste QuizClass 12 Political Science Chapter 7 Popular Struggles And Movements QuizClass 12 Political Science Chapter 8 Politics Of Planned Development QuizClass 12 Political Science Chapter 9 India'S External Relations QuizClass 12 Psychology Chapter 1 Variations In Psychological Attributes QuizClass 12 Psychology Chapter 10 Industrial Organisational Psychology QuizClass 12 Psychology Chapter 2 Self And Personality QuizClass 12 Psychology Chapter 3 Meeting Life Challenges QuizClass 12 Psychology Chapter 4 Psychological Disorders QuizClass 12 Psychology Chapter 5 Therapies QuizClass 12 Psychology Chapter 6 Attitude And Social Cognition QuizClass 12 Psychology Chapter 7 Social Influence And Group Processes QuizClass 12 Psychology Chapter 8 Psychology And Life QuizClass 12 Psychology Chapter 9 Applications Of Psychology QuizClass 12 Sociology Chapter 1 Structural Change And Development In India QuizClass 12 Sociology Chapter 3 The Demographic Structure Of Indian Society QuizClass 12 Sociology Chapter 5 Patterns Of Social Inequality And Exclusion QuizClass 12 Sociology Chapter 6 Challenges Of Cultural Diversity QuizClass 12 Sociology Chapter 8 Social Change In Modern India QuizClass 12 Sociology Chapter 9 Globalisation And Social Change Quiz 🏠 Back to Homepage 📘 Download PDF Books 📕 Premium PDF Books