This quiz works best with JavaScript enabled. Home > Class 12 > Class 12 Computer Science Chapter 4 Structured Query Language (Sql) – Quiz 6 🏠 Homepage 📘 Download PDF Books 📕 Premium PDF Books Class 12 Computer Science Chapter 4 Structured Query Language (Sql) Quiz 6 (25 MCQs) Quiz Instructions Select an option to see the correct answer instantly. 1. What does the SQL statement 'INSERT INTO world (name, capital, population) VALUES ('Ours', 'Emerald City', 1000000)' do? A) Inserts a new record with the given values into the 'world' table. B) Deletes records from the 'world' table. C) Updates records in the 'world' table. D) Retrieves data from the 'world' table. Show Answer Correct Answer: A) Inserts a new record with the given values into the 'world' table. 2. Write a code for the following:Return the names and imdb ..... ratings of all movies with 'day' in the name. A) SELECT * FROM movies WHERE name LIKE 'day';. B) RETURN name, imdb rating FROM movies WHERE name LIKE '%day%';. C) SELECT name, imdb rating FROM movies WHERE name LIKE '%day%';. D) SELECT * FROM movies WHERE imdb rating AND name LIKE '%day%';. Show Answer Correct Answer: C) SELECT name, imdb rating FROM movies WHERE name LIKE '%day%';. 3. What is the command used to delete entire tables in SQL? A) Remove table. B) Erase table. C) Drop table. D) Delete table. Show Answer Correct Answer: C) Drop table. 4. How can you select records from a table where the name starts with 'A' and the population is greater than 1 million? A) SELECT name, population FROM table WHERE name = 'A' AND population > 1 million. B) SELECT name, population FROM table WHERE name LIKE 'A%' AND population > 1 million. C) SELECT name, population FROM table WHERE name = 'A' OR population > 1 million. D) SELECT name, population FROM table WHERE name LIKE 'A%' OR population > 1 million. Show Answer Correct Answer: B) SELECT name, population FROM table WHERE name LIKE 'A%' AND population > 1 million. 5. .... ensure database integrity . A) Arguments. B) Constraints. C) Clauses. D) Variable. Show Answer Correct Answer: B) Constraints. 6. A column of type CHAR cannot be indexed. A) True. B) False. C) All the above. D) None of the above. Show Answer Correct Answer: B) False. 7. Which statement allows us to add a record to a table? A) Add To. B) Update To. C) Add Into. D) Insert Into. Show Answer Correct Answer: D) Insert Into. 8. You're creating a table for a pizza delivery app.Which column might allow NULL values? A) Pizza size VARCHAR(20). B) Extra cheese BOOLEAN. C) Delivery address VARCHAR(100). D) Customer comments TEXT. Show Answer Correct Answer: D) Customer comments TEXT. 9. Which SQL command is used to insert new records into a table? A) INSERT INTO. B) DELETE FROM. C) UPDATE. D) SELECT. Show Answer Correct Answer: A) INSERT INTO. 10. Identify the SQL command use to add price column into PRODUCT table. A) ALTER TABLE PRODUCTADD price decimal (6, 2);. B) ALTER TABLE PRODUCTADD COLUMN price decimal (6, 2). C) ALTER TABLE PRODUCTMODIFY COLUMN price decimal (6, 2). D) ALTER TABLE PRODUCTMODIFY price decimal (6, 2). Show Answer Correct Answer: A) ALTER TABLE PRODUCTADD price decimal (6, 2);. 11. Yang manakah BUKAN fungsi agregat SQL?Apakah penyataan SQL untuk memilih semua attribut dari Jadual Designer? A) SELECT * FROM Designer. B) SELECT FROM Designer. C) SELECT Designer.*. D) SELECT All FROM Designer. Show Answer Correct Answer: A) SELECT * FROM Designer. 12. Pernyataan SELECT digunakan untuk mencapai data-data daripada jadual dalam pangkalan data. SELECT terdiri daripada tiga pernyataan asas KECUALI: A) SELECT. B) FROM. C) WHERE. D) AND. Show Answer Correct Answer: D) AND. 13. Which command is used to retrieve all records from the table? A) SELECT all FROM Users. B) RETRIVE all FROM Users. C) SELECT * FROM Users. D) RETRIVE * FROM Users. Show Answer Correct Answer: C) SELECT * FROM Users. 14. What does the SQL statement 'UPDATE world SET population = 2000000, name = 'Wonderland' WHERE capital = 'Emerald City" do? A) Updates the population and name of records with the capital 'Emerald City' in the 'world' table. B) Deletes records from the 'world' table. C) Inserts new records into the 'world' table. D) Retrieves data from the 'world' table. Show Answer Correct Answer: A) Updates the population and name of records with the capital 'Emerald City' in the 'world' table. 15. Return all dramas made after 2004. A) SELECT * FROM movies WHERE genre = 'drama';. B) SELECT * FROM movies WHERE genre = 'drama' AND year > 2004;. C) SELECT * FROM movies WHERE genre = "drama' AND year < 2004;. D) SELECT * FROM movies WHERE imdb rating = 7 AND LIMIT = 7. Show Answer Correct Answer: B) SELECT * FROM movies WHERE genre = 'drama' AND year > 2004;. 16. Identify if there is an error in the SQL statement below in deleting a record:DELETE WHERE Employee ..... details WHERE Employee ..... details.ID = 10; A) ( ). B) ;. C) Spelling error. D) No errors. E) WHERE. Show Answer Correct Answer: E) WHERE. 17. Berikut menunjukkan pernyataan SQL untuk mengemaskini stok barangan. Jika stok kurang daripada 20 unit, sebanyak lima unit barang akan ditambah.1 ..... A ..... BARANG2 ..... B ..... Kuantiti = Kuantiti + 53 ..... C ..... Kuantiti < 20 A) SELECTB. FROMC. WHERE. B) ALTER TABLEB. ADDC. WHERE. C) UPDATEB. SETC. WHERE. D) UPDATEB. FROMC. WHERE. Show Answer Correct Answer: C) UPDATEB. SETC. WHERE. 18. Which of the following statements is true about a relational database? A) It stores data in a single, flat file. B) It uses relationships to link data across tables. C) It does not require a primary key for each table. D) It cannot store data electronically. Show Answer Correct Answer: B) It uses relationships to link data across tables. 19. Which clause allows you to SORT data? A) ORDER BY. B) WHERE. C) FROM. D) HAVING. Show Answer Correct Answer: A) ORDER BY. 20. In creating a table named "Students2024" . Can you identify which is missing or error in the statement below:CREATE Students2024(Employee ..... ID INTEGER, LASTNAME TEXT (50), FIRSTNAME TEXT (50)) A) TABLE. B) Comma (s). C) Spelling error. D) No error. Show Answer Correct Answer: A) TABLE. 21. It is a DML command that is used to display record. A) DISPLAY. B) STRUCTURE. C) WHERE. D) SELECT. Show Answer Correct Answer: D) SELECT. 22. WHICH QUERY?defines the list of fields to be displayed A) SELECT. B) FROM. C) WHERE. D) ORDER BY. Show Answer Correct Answer: A) SELECT. 23. DDL stands for ..... A) Data Definition Limit. B) Data Definition Language. C) Data Defined Language. D) Digital Definition Language. Show Answer Correct Answer: B) Data Definition Language. 24. The original version of SQL was developed at ..... A) Microsoft. B) IBM. C) Sun Microsystems. D) Honeywell. Show Answer Correct Answer: B) IBM. 25. Which of the following is true about SQL joins? A) An outer join returns only matching rows. B) An inner join returns the results of the outer join as well as the unmatched rows. C) A full outer join returns results of an inner join as well as the results of a left and right join. D) None of these is true. Show Answer Correct Answer: C) A full outer join returns results of an inner join as well as the results of a left and right join. ← 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 4Class 12 Computer Science Chapter 4 Structured Query Language (Sql) Quiz 5Class 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