Class 12 Cs Rivision
Class 12 Cs Rivision
12 Assertion (A):While creating series by specifying data as a scalar value, the index must be 1
provided.
Reason(R): The scalar value is repeated to match the length of the index.
SECTION B
13 Differentiate between wired and wireless transmission. 2
14 Explain the concept of “Alternate Key” in Relational Database management System with an 2
appropriate example.
15 a)Write the full forms of the following: 2
i)HTML ii)TCP
b)What is the need of Protocol?
Or
Write two point of difference between Circuit Switching and Packet Switching ?
16 Write the python statement for each of the following tasks using BUILT -IN functions/methods only: 2
(A) To insert an element 200 at the third position < in the list L1.
(B) To check whether a string named, message ends with a full stop/period or not .
SECTION C
17 Consider the table ORDERS given below and write the output of the SQL queries that follow: 1×3
How many rows and column will be there in the natural join of these two tables.
20 Write Addnew (Book) and Remove(Book) methods in Python to Add a new Book and Remove a 3
Book from a List of Books, considering them to act as PUSH and POP operations of the data
structure stack.
OR
Write a function Start_with_I() in Python, which should read a text file ‘Gratitude.txt’ and then
display lines starting with ‘A’.
Gratitude is a humble heart’s radiant glow,
A timeless gift that nurtures and bestows.
It’s the appreciation for the love we’re shown,
In moments big and small, it’s truly known.
Then the output should be
A timeless gift that nurtures and bestows.
SECTION D
21 Write a point of difference between append (a) and write (w) modes in a text file. Write a program 4
in Python that defines and calls the following user defined functions:
i. Add_Teacher() : It accepts the values from the user and inserts the record of a teacher
to a csv file 'Teacher.csv'. Each record consists of a list with field elements as T_id,
Tname and design to store teacher ID, teacher name and designation respectively.
ii. Search_Teacher():TodisplaytherecordsofallthePGT(designation)teachers.
22 Find output for following SQL queries as per given table(s): 4