You are on page 1of 3

KENDRIYA VIDYALAYA SANGATHAN BHUBNESWAR REGION

SESSION ENDING EXAM (2019-20)


XI – Computer Science (CS)
Time – 3HOURS Marks – 70
Q1 a. What is the function of memory? 1
b. How operating system is different from application software? 1
c. Perform binary addition of 12 and -13. 1
d. Explain DeMorgan’s law. 2
e. Convert the following: 2
i) (101)16 = ( )8
ii) (56)10= ( )2
iii) (10011)2= ( )10
iv) (23.5)10 = ( )2
f. Explain UTF-8 unicode encoding scheme with example. 3
Q2 a. What is the output of the following code: 1
print(“abc” , “56” , sep = “*” , end = “+”)

b. What is the main difference between compiler and interpreter? 1


c. Identify valid & invalid variable name:- 2
a. 1abc d. for
b. _12ram e. true
d. What are the literals? Explain the rules to define the identifiers. 2
e. Write any two benefits and two drawbacks to working with python. 2
Q3 Explain elif using one example. 1
What is difference between break and continue statements using example. 2
Give the output of following code:- 2
for I in range (0,4):
for i in range (0,i):
print(i,j)
print()
What is flowchart? Draw a flow chart to find out the greatest number among three 3
numbers.
Write a program to find out the factorial of a number using while loop. Number will be 4
taken from the user.

Q4 a. Why dictionary can’t be considered as a sequence? 1


b. Write a program which will take a empty list and then will fill 5 elements in it using the for 2
loop.
c. Write a program to find the largest number in a list and then remove it. 2
d. Write a program which willprint reverseof a string taken from the user without using 3
library function or slicing.
e. Consider the following code 3
str = “abcdefgh”
for I in range(0,4):
print(str[0:i] + str[::i])
print(str[-3])
What will be the output of following code?
f. What is sorting? Write a program to perform insertion sort. 4
5 a. Why DBMS is beneficial over the traditional file system. 1
b. What isprimary key? 1
c. Write MySQL commands to delete any table. 1
d. What is the difference between DDL and DML commands? 2
e. Explain candidate key, alternate key and foreign key using an example. 2
f. What is the difference between degree and cardinality of a table? What is the degree and 2
cardinality of the following table?
Name Salary
EnO
101 JohnFedrick 45000
103 Raya 50600
Mazumdar

g Write SQL queriesof any four from (a) to (f) and write the outputs for the SQL queries 6
mentioned in (h1) and (h2) parts on the basis of tables ITEMS and TRADERS
Table: ITEMS
Code INAME QTY PRICE COMPANY TCODE
1001 DIGITAL PAD12i 120 11000 XENTA T01
1006 LED SCREEN 40 70 38000 SANTORA T02
1004 CAR GPS SYSTEM 50 50 21500 GEOKNOW T01
1003 DIGITAL CAMERA 12X 160 8000 DIGICLICK T02
1005 PEN DRIVE 32 CB 600 600 1200 STOREHOME T03
Table: TRADERS
TCODE TNAME CITY
T01 ELECTRONICSALE MUMBAI
S
T03 BUSYSTORECORP DELHl
T02 DISPHOUSEINC CHENNAI
(a) To display the details of all the items in ascending order of item names (i.e. INAME).
(b)To display item name and price of all those items, whose price is in the range of 10000
and 22000 (both values inclusive).
(c) To display the number of items, which are traded by each trader. The expected output of
this query should be:
T01 2
T02 2
T03 1
(d) To display the price, item name and quantity (i.e. qty) of those items which hate quantity
more than 150.
(e) To display the names of those traders, who are either from DELHI or from MUMBAI.
(f) To display the names of the companies and the names of the items in descending order
ofcompany names.
(h) Obtain the outputs of the following SQL queries based on the data given in tables ITEMS
and TRADERS above.
h1) SELECT MAXTRICE) ,MIN(PRICE) FROM ITEMS;
h2) SELECT PRICE*QTY A4OJNT
Q6 a. How can we safely browse over the internet? 1
b. Should we hide our name while using internet? 1
c. What are the malwares? Explain its various types. 2
d. What is cyber bullying and cyber stalking? 2
e. What is identity protection and confidentiality? 2
f. What is digital footprint? How digital foot prints can be used to trace any person and his 2
activities?

********************************THE END*****************************************
Prepared by :-Gajendrasinghrathore
PGT CS (KV KEONJHAR)

You might also like