This quiz works best with JavaScript enabled. Home > Class 12 > Class 12 Computer Science Chapter 4 Structured Query Language (Sql) – Quiz 1 🏠 Homepage 📘 Download PDF Books 📕 Premium PDF Books Class 12 Computer Science Chapter 4 Structured Query Language (Sql) Quiz 1 (25 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 A) ASC. B) DESC. C) There is no default value. D) None of the mentioned. Show Answer Correct Answer: A) ASC. 2. Which statement is used to extract data from a database? A) Extract. B) Get. C) Open. D) Select. Show Answer Correct Answer: D) Select. 3. .... datatype precision up to a maximum of 64. A) Int. B) Char. C) Float. D) Small int. Show Answer Correct Answer: C) Float. 4. Which operator test the column for absence of data? A) Not operator. B) And operator. C) Is null operator. D) None of these. Show Answer Correct Answer: C) Is null operator. 5. Define the type of SQL that used to insert, delete and retrieve data within the database tables. A) Data Control Language (DCL). B) Data Definition Language (DDL). C) Data Manipulation Language (DML). D) Transaction Control Language (TCL). Show Answer Correct Answer: C) Data Manipulation Language (DML). 6. What does the SQL statement 'SELECT name FROM world WHERE population > (SELECT population FROM world WHERE name = Algeria)' do? A) Retrieves the name of countries with a population greater than Algeria from the 'world' table. B) Deletes records from the 'world' table. C) Updates records in the 'world' table. D) Inserts new records into the 'world' table. Show Answer Correct Answer: A) Retrieves the name of countries with a population greater than Algeria from the 'world' table. 7. What is the built-in MySQL function that gives you the current time in an SQL statement? A) CURR DATE(). B) NOW(). C) TODAY(). D) DATE(false). Show Answer Correct Answer: B) NOW(). 8. The ..... statement is used to delete a table. A) DROP TABLE. B) DELETE TABLE. C) DEL TABLE. D) REMOVE TABLE. Show Answer Correct Answer: A) DROP TABLE. 9. Which of the following types of tables often are created without a primary key? A) Many-to-many. B) One-to-many. C) Hash Map. D) One-to-one. E) B-Trees. Show Answer Correct Answer: A) Many-to-many. 10. How can you delete all records from a table with a population larger than 10 million? A) DELETE FROM table WHERE population > 10 million. B) DELETE FROM table WHERE population < 10 million. C) DELETE FROM table WHERE population = 10 million. D) DELETE FROM table WHERE population >= 10 million. Show Answer Correct Answer: A) DELETE FROM table WHERE population > 10 million. 11. When editing the columns in a pre-existing table, which command adds a new column? A) ADD. B) CREATE NEW. C) DROP. D) MODIFY COLUMN. Show Answer Correct Answer: A) ADD. 12. What is a field (column) in a database table? A) A single entry in a table. B) A single piece of data or attribute stored for all records in a table. C) A collection of data in a database. D) A type of database that organises data into related tables. Show Answer Correct Answer: B) A single piece of data or attribute stored for all records in a table. 13. What is the purpose of the 'join' keyword in SQL? A) To delete records from a table. B) To modify existing records. C) To combine data from two or more tables. D) To create new tables. Show Answer Correct Answer: C) To combine data from two or more tables. 14. When editing columns in a pre-existing table, which command allows you to delete a column? A) ADD. B) DROP. C) DELETE. D) MODIFY COLUMN. Show Answer Correct Answer: B) DROP. 15. Which of the following is NOT a characteristic of a relational database? A) Data is organised into related tables. B) Each table has a unique primary key. C) Data is stored in a single, flat file. D) Relationships are used to link data across tables. Show Answer Correct Answer: C) Data is stored in a single, flat file. 16. .... helps to set a limit value placed for a field. A) DEFAULT Constraint. B) Primary Key Constraint. C) Check Constraint. D) TABLE CONSTRAINT. Show Answer Correct Answer: C) Check Constraint. 17. State True or False:1. FROM statement groups rows with similar values in the specified grouping field. A) True. B) False. C) All the above. D) None of the above. Show Answer Correct Answer: B) False. 18. What is the label we give to a column that is an integer and used to point to a row in a different table? A) Primary key. B) Logical key. C) Local key. D) Foreign key. E) Remote key. Show Answer Correct Answer: D) Foreign key. 19. Which key is used to execute a query? A) Car Key. B) F5 Key. C) House Key. D) F4. Show Answer Correct Answer: B) F5 Key. 20. .... which helps to uniquely identify a record. A) Primary key Constraint. B) Unique Constraint. C) Default constraint. D) Check constraint. Show Answer Correct Answer: A) Primary key Constraint. 21. What is the purpose of the 'order by' command in SQL? A) To filter records based on a condition. B) To update existing records. C) To order the output in ascending or descending order. D) To join multiple tables. Show Answer Correct Answer: C) To order the output in ascending or descending order. 22. Can the result of a SELECT statement contain duplicate rows? A) Yes. B) No. C) All the above. D) None of the above. Show Answer Correct Answer: A) Yes. 23. How can you perform an SQL query on more than one table? A) JOIN. B) INSERT INTO. C) DELETE FROM. D) UPDATE. Show Answer Correct Answer: A) JOIN. 24. .... is a computer programming language used for adding, removing, and modifying data in a database. A) DCL. B) TCL. C) DQL. D) DML. Show Answer Correct Answer: D) DML. 25. Which of the following is NOT a good rule to follow when developing a database model? A) Never repeat string data in more than one table in a data model. B) Use integers as primary keys. C) Use a persons email address as their primary key. D) Each "object" in the application should be modeled as one or more tables. Show Answer Correct Answer: C) Use a persons email address as their primary key. Next →Related QuizzesClass 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 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