0% found this document useful (0 votes)
19 views

Class 12 Cs Rivision

Uploaded by

Poonam Sharma
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
19 views

Class 12 Cs Rivision

Uploaded by

Poonam Sharma
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

MA SARADA PUBLIC SCHOOL SECT-09, BHILAI

RIVISION TEST 2024-25


CLASS XII
COMPUTER SCIENCE (CODE-083)
1
Time allowed: 1 Hours Maximum Marks: 50
2
General Instructions:
• Please check this question paper contains 35 questions.
• The paper is divided into 4 Sections- A, B, C, D and E.
• Section A, consists of 18 questions (1 to 12). Each question carries 1 Mark.
• Section B, consists of 7 questions (13 to 16). Each question carries 2 Marks.
• Section C, consists of 5 questions (17 to 20). Each question carries 3 Marks.
• Section D, consists of 2 questions (21 to 22). Each question carries 4 Marks.
• Section E, consists of 3 questions (23 to 24). Each question carries 5 Marks.
• All programming questions are to be answered using Python Language only.
Qu Question Mark
e s
s No
SECTION A
1 State true or false: 1
Do both the following represent the same list.
[‘a’, ‘b’, ’c’]
[‘c’, ‘a’, ‘b’]
2 Which of the following is not an aggregate function? 1
a)Min b)With c)Avg d)Sum
3 CDMA stands for? 1
a) Call Division Multiple Access b)Channel Division Multiple Access
c)Cell Division Multiple Access d)Code Division Multiple Access
4 To read the entire remaining contents of the file as a string from a file object infi, we use 1
a)infi.readlines() b)infi.read(all) c)infi.readline() d)infi.read()
5 Which command is used to display the name of existing databases? 1
a)Show databases; b)display databases; c)result databases; d)output databases;
6 Which operator performs pattern matching? 1
a) LIKE operator b) BETWEEN operator c)INTO operator d)EXISTS operator
7 Identify the statement from the following which will raise an error: 1
(a)print(“A”*3) (b)Print (5*3) (c)print (“15”+3) (d)print (“15” +”13”)
8 What is the best way to represent attributes in a large database? 1
a)All of these b) Concatenation c)Dot Representation d)Relational-and
9 Consider the following python statement: 1
F = open (CONTENT .TXT’)
Which of the following is an invalid statement in python?
(a)F. seek (1,0) (b)F. seek (0,1) (c)F. seek (0, -1) (d)F. seek (0,2)
10 What is the correct way to add an element to the end of a list in python? 1
(a)list, add(element) (b)list. Append(element)
(c)list. insert(element) (d)list. extend(element)
Q11 and 12 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
11 Assertion (A): By using "a" access mode, it appends the content to the file if the file already exists 1
With the specified name.
Reason(R): By using "w" access mode, It overwrites the existing file.

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

ORDNO ITEM QTY RATE ORDATE


1001 RICE 23 120 2023-09-10
1002 PULSES 13 120 2023-10-18
1003 RICE 25 110 2023-11-17
1004 WHEAT 28 65 2023-12-25
1005 PULSES 16 110 2024-01-15
1006 WHEAT 27 55 2024-04-15
1007 WHEAT 25 60 2024-04-30

1) SELECT ITEM, SUM(QTY) FROM ORDERS GROUP BY ITEM;


2) SELECT ITEM, QTY FORM ORDERS WHERE ORDATE BETWEEN ‘2023-11 -01’
AND ’2023-12-31’;
3) SELECT ORDNO, ORDATE FROM ORDERS WHERE ITEM=’WHEAT ‘ AND
‘RATE>=60;
18 A SQL table BOOKS contains the following column names: 3
BOOKNO, BOOKNAME, QUANTITY, PRICE, AUTHOR
i. Write the SQL statement to add a new column REVIEW to store the reviews of the book.
ii. Write the names of any two commands of DDL and any two commands of DML in SQL
19 Consider the following tables-LOAN and BORROWER 3
Table :LOAN
LOAN_N B_NAME AMOUNT
O
L-170 DELHI 3000
L-230 KANPUR 4000
Table: BORROWER
CUST_NAME LOAN_NO
JOHN L-171
KISH L-230
RAVYA L-170

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

COACH- COACHNAME AGE SPORTS DATEOFAPP PAY SEX


ID
1. KUKREJA 35 KARATE 27/03/1996 1000 M
2. RAVINA 34 KARATE 20/01/1998 1200 F
3. KARAN 34 SQUASH 19/02/1998 2000 M
4. TARUN 33 BASKETBAL 01/01/1998 1500 M
L
5. ZUBIN 36 SWIMMING 12/01/1998 750 M
6. KETAKI 36 SWIMMING 24/02/1998 800 F
7. ANKITA 39 SQUASH 22/02/1998 2200 F
8. ZAREEN 37 KARATE 22/02/1998 1100 F
9. KUSH 41 SWIMMING 13/01/1998 900 M
10. SHAILYA 37 BASKETBAL 19/02/1998 1700 M
L

i. SELECT COUNT(DISTINCT SPORTS) FROM CLUB;


ii. SELECT MIN(AGE) FROM CLUB WHERE SEX="F";
iii. SELECT AVG(PAY) FROM CLUB WHERE SPORTS="KARATE";
iv. SELECT SUM(PAY) FROM CLUB WHERE DATEOFAPP >{31/01/98};
SECTION E
23 Knowledge Supplement Organisation has set up its new centre at Mangalore for its office and web-
based activities. It has 4 blocks of buildings as shown in the diagram below:

Canter to centre distances between various blocks


Block A to Block B 50m
Block B to Block C 150m
Block C to Block D 25m
Number of Computers
Block A 25
Block B 50
Block C 125
Block D 10
i. What type of network will be formed if all blocks are connected? 1
ii. Suggest the most suitable place (i.e., block) to house the server of this organisation with a 1
suitable reason.
iii. Suggest the placement of the following devices with justification 2
Repeater
Hub/Switch
iv. The organization is planning to link its front office situated in the city in a hilly region 1
where cable connection is not feasible, suggest a economic way to connect it with
reasonably highs peed.
24 Write SQL queries for(i)to(vii) on the basis of tables given below: 5
Table: PRODUCTS
PID PNAME QTY PRICE COMPANY SUPCODE
101 DIGITAL CAMERA14X 120 12000 RENBIX SOI
102 DIGITAL PAD 100 22000 DIGIPOP S02
104 PEN DRIVE16GB 500 1100 STOREKING SOI
106 LED SCREEN32 70 28000 DISPEXPERTS S02
105 CARGPS SYSTEM 60 12000 MOVEON S03
Table: SUPPLIERS
SUPCODE SNAME CITY
S01 GETALLINC KOLKATA
S03 EASY MARKET CORP DELHI
S02 DIGI BUSY GROUP CHENNAI
i. To display the details of all the products in ascending order of product names (i.e.
PNAME).
ii. To display product name and price of all those products, whose price is in the range of
10000 and15000 (both values inclusive).
iii. To display the number of products, which are supplied by each supplier, i.e., the expected
output should be;
S012
S022
S031
iv. To display the price, product name, and quantity (i.e., qty) of those products which have a
quantity of more than 100 .
v. To display the names of those suppliers, who are either from DELHI or from CHENNAI .
vi. To display the name of the companies and the name of the products in descending order of
company names.
Or
Obtain the outputs of the following SQL queries based on the data given in tables
PRODUCTS and SUPPLIERS above.
a. SELECT DISTINCT SUPCODE FROM PRODUCTS;
b. SELECT MAX(PRICE), MIN(PRICE) FROM PRODUCTS;
c. SELECT PRICE* QTY FROM PRODUCT S WHERE PID=104;
d. SELECT PNAME, SNAME FROM PRODUCTS P, SUPPLIERS S WHERE P.
SUPCODE = S. SUPCODE AND QTY >100;
e. SELECT PANME, PRICE,CITY FORM PRODUCT,SUPPLIERS;

You might also like