TN Online TestSamacheer Kalvi practice

12th Standard Computer Science — Data manipulation through SQL: Additional Online Practice Test

Share this chapter: Telegram

Pick how many questions you want and set a time limit, then start. You'll get your score at the end with the correct answer and an explanation for every question. Free, in Tamil and English — 15 questions available.

Set up your test

Time remaining00:00
Q1
Which Python module is imported natively to work with SQLite databases?
Q2
When creating an SQLite database connection using sqlite3.connect("Academy.db"), what happens if the database file does not exist?
Q3
What is the primary purpose of a cursor object in Python's sqlite3 module?
Q4
In SQLite3, if a column is declared as INTEGER PRIMARY KEY and a NULL value is inserted into it, what does SQLite automatically do?
Q5
Which cursor method in the sqlite3 module returns the next single row of a query result set, or None if no rows remain?
Q6
Which symbol is used in Python to unpack database query results when printing them with the sep argument?
Q7
Which attribute of the SQLite database connection object can be used to check the total number of database rows that have been modified, inserted, or deleted since the connection was opened?
Q8
Which keyword must be used in a Python script to permanently save any modifications made to SQLite database records?
Q9
What type of placeholders does the sqlite3 module support for writing parameterized, secure SQL statements?
Q10
Which built-in SQLite system table holds key information about the database structure and can be queried to list all user-created tables?
Q11
What does the first element (index 0) of each tuple inside a cursor's description attribute represent?
Q12
If a student database table contains a column named Average with some NULL values, what is the behavior of the AVG(AVERAGE) aggregate function?
Q13
Why are SQL statement strings in Python often enclosed inside triple quotes (""") when working with the sqlite3 module?
Q14
Which SQL clause can be used with aggregate functions in Python database queries but cannot be used in a standard SQL WHERE clause?
Q15
When writing SQLite query results to a CSV file in Python, why is the replace() method commonly used during the subsequent reading of the CSV file?

More for this chapter

Book Back Questions10 textbook MCQs · solved Additional MCQs15 extra MCQs · solved Practice TestInteractive · instant score Book Back TestTest yourself on the textbook set Study NotesConcepts & methods Formula SheetAll key formulas

About this Data manipulation through SQL test

This free online practice test covers Data manipulation through SQL from the 12th Standard Computer Science (Samacheer Kalvi) syllabus. Choose the number of questions and an optional time limit, then answer and submit — everything is checked in your browser, with the correct answers and a worked explanation shown at the end. For the full solutions to every question in this set, see the solved MCQs page.

More chapters in Computer Science

View all
1 Function 2 Data Abstraction 3 Scoping 4 Algorithmic Strategies 5 Python -Variables and Operators 6 Control Structures 7 Python functions 8 Strings and String manipulation 9 Lists, Tuples, Sets and Dictionary 10 Python Classes and objects 11 Database Concepts 12 Structured Query Language (SQL) 13 Python and CSV files 14 Importing C++ programs in Python. 16 Data visualization using pyplot: line chart, pie chart and bar chart