KVS Sample Paper Xii CS 2021
KVS Sample Paper Xii CS 2021
KVS Sample Paper Xii CS 2021
SAMPLE PAPER
PRE BOARD EXAMINATION 2021-22
XII COMPUTER SCIENCE TERM-II
Maximum Marks: 35 Time: 2 hours
General Instructions
• The question paper is divided into 3 sections – A, B and C
• Section A, consists of 7 questions (1-7). Each question carries 2 marks.
• Section B, consists of 3 questions (8-10). Each question carries 3 marks.
• Section C, consists of 3 questions (11-13). Each question carries 4 marks.
• Internal choices have been given for question numbers 7, 8 and 12.
Section 'A'
each question carries 2 marks
1. What do mean by 'LIFO' property of Stack? What is 'PUSH' and 'POP' in stack? 2
2. Give full form of 2
HTTP , FTP
3. (i) Which of the following is privately owned and links the devices in a 2
single office, building or campus?
(LAN, MAN, WAN)
(ii) Which topology uses a single cable which connects all the including
nodes?
(STAR, BUS, RING)
4. Differentiate between 'INT' and 'FLOAT' data type with respect to databases? 2
5. A resultset is extracted from the database using the cursor object (that has 2
been already created) by giving the following statement.
Mydata=cursor.fetchone()
(a) How many records will be returned by fetchone() method?
(b) What will be the datatype of Mydata object after the given command is
executed?
6. Write the output of the queries (i) to (iv) based on the table, 'COURSE' given 2
below:
CourseID CourseName CourseFee Discount
M001 MBA 60000 5
B002 BPHARM 66000 2
D003 DPHARM 50000 3
BT04 BTECH 55000 10
MT05 MTECH 45000 10
B006 BED 35000 15
PE07 MPED 28000 5
[1]
i) SELECT SUM(DISCOUNT) FROM COURSE
WHERE COURSEFEE>48000;
iii) SELECT * FROM COURSE WHERE DISCOUNT>5 AND COURSEID LIKE "B%";
For Example:
If the sample Content of the list is as follows:
N=[12, 13, 34, 56, 21, 79, 98, 22, 35, 38]
Sample Output of the code should be:
23 21 79 35
9. i) A table, ITEM has been created in a database with the following fields: 1
ITEMCODE, ITEMNAME, QTY, PRICE, DISCOUNT
Give the SQL command to remove field, ‘DISCOUNT’ of ‘ITEM’ table.
[2]
ii) Categorize following commands into DDL and DML commands? 2
INSERT INTO, DROP TABLE, ALTER TABLE, UPDATE...SET
10. Vaibhav want’s to create a table with the following specifications. Help him by 3
writing the correct command in SQL.
Table : CHOCOLATE
CHOKOID NAME PRICE
CH235 PERK 20
CH356 MUNCH 15
CH467 KINDER 30
CH621 KISMI BAR 5
CH765 ECLAIRS 2
(c) Which kind of network (PAN/LAN/WAN) will be formed if the Noida office is 1
connected to its head office in Mumbai?
(d) Which fast and very effective wireless transmission medium should preferably be 1
used to connect the head office at Mumbai with the centre at Noida?
[4]