Std12 Practice QP 1
Std12 Practice QP 1
1. Which of the following functions is used to write data in the binary mode? (1)
(a) write (b) output (c) dump (d) send
2. ______ keyword is used to display non-repeated values in MySQL. (1)
3. Which of the following is the correct syntax of file object ‘fobj’ to write sequence data type using (1)
writelines() function?
(a) file.writelines(sequence) (b) fobj.writelines()
(c) fobj.writelines(sequence) (d) fobj.writeline()
4. The HAVING clause is used in combination with ____________ clause. (1)
Which of the following commands will change row(s) of the table from (1)
5. MySQL database?
(a) REPLACE TABLE (b) CHANGE TABLE
(c) UPDATE (d) ALTER TABLE
6. Which of the following is not a file access mode (1)
a. rb b. rb+ c. wb d. rw
7. The ____________command can be used to makes changes in the rows of a table in SQL. (1)
a. Alter b. Modify c. Insert d. Update
8. Suggest the suitable command to remove the pre-existing database named Clients. (1)
(a) delete database Clients (b) drop Clients (c) drop
database Clients (d) Alter table drop Clients
9. A column or a group of columns which can be used as the primary key of relation is called a (1)
__________.
(a) Primary Key (b) Candidate Key (c) Alternate key (d) Foreign Key
12. Which function is used to display the maximum value in a column of records from table in a database? (1)
(A) max() (B) high() (C) maximum() (D) large()
13. Which of the following function can work with NULL values in a database?
(a) avg() (b) sum() (c) count(*) (d) total(*)
Q14 and 15 are ASSERTION AND REASONING based questions. Mark the correct
choice as
(a) Both A and R are true and R is the correct explanation for A
(b) Both A and R are true and R is not the correct explanation for A
(c) A is True but R is False
(d) A is false but R is True
14. Assertion (A): Pickle in Python is primarily used in serializing and deserializing a Python object (1)
structure.
Reason (R): pickle.dump() method is used to read the object in file and pickle.load() method is
used to write the object from pickled file.
15. Assertion (A): The key word DISTINCT is used with select command
Reason (R): Distinct Keyword eliminates duplicate rows
16. While using SQL pattern matching, what is the difference between ‘_’(underscore) and ‘%’ wildcard (2)
symbols? OR
Categorize the following commands as DDL or DML:
DROP TABLE, INSERT, ALTER, DELETE
17. Differentiate between the Primary key and Alternate key of a table with the help of an example. (2)
18. (a) Consider the following tables – Salesperson and item (1)
II) SEARCHR() – To count and return the number of records present in the CSV file named ‘emp.csv’ who
are working in DEPT = “FINANCE”
22. a) Write the output of the SQL commands for (i) to (iv) on the basis of tables (2+1)
BOOKS and ISSUES.
23. A company in Mega Enterprises has 4 wings of buildings as shown in the diagram : (5)
A)Suggest the most suitable cable layout or Networking Topology of connections between the zones.
(b) Suggest the most suitable place (i.e., Zone) to house the Server of this organization. Give a suitable
reason with justification.
(c) Suggest the placement of the following devices with justification:
(i) Repeater (ii) Hub/Switch
(d) Which is the most economic type of cable for the selected topology?
e) Suggest a device/software to be installed in each branch to take care of data security.
25. Naveen creates a table “TOY” for keeping records. (1+1 +2+2)