XII STANDARD COMPUTER SCIENCE
Data Manipulation through SQL
1. Which is the object used to perform all SQL commands?
(a) Table (b)Cursor
(c) field (d) record
2. How do you define a SQL command?
(a)single quoted string (b) double quoted string
(c)triple quoted string (d) string
3. Which is the command used to populate a table?
(a) INSERT (b) NULL
(c) ADD (d) DROP
4. Which method uses the SQL command to get all the data from the table?
(a) Get (b) select
(c) execute (d) Query
5. Which command is used to retrieve a single record of a query?
(a) Fetch() (b) fetchall()
(b) Fetchone() (d) fetchmany()
6. Which clause avoids duplicate entries present in a table?
(a)where (b) distinct
(c) Groupby (d) Having
7. Identify which is not a SQL clause.
(a) GROUP BY (b)ORDER BY
(c) HAVING (d) CONDITION
8. Which SQL clause helps to filter the data based on condition?
(a) HAVING (b) WHERE
(c)NOT (d) AND
9. Identify which is not a aggregate function?
(a) COUNT() (b) RESULT()
(c)MAX() (d) SUM()
10. Which command in python accepts data during run time?
(a) input() (b) accept()
(c) get()s (d)gets()