XIComp SC S E 89-Merged-Merged

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 86

KENDRIYA VIDYALAYA SANGATHAN, PATNA REGION

SESSION ENDING EXAMINATION, 2018-19


CLASS – XI
COMPUTER SCIENCE
TIME – 3 HOURS ] [ MAX. MARKS - 70
General Instructions:
(i) All questions are compulsory.
(ii) Programming Language: Python
1. (a) What is cloud computing? What are the two type of cloud computing? 2
(b) State and prove DeMorgan,s Theorem. 2
(c) What is the difference compiler and interpreter? 2
(d) Convert (3674)8 to binary and (B2F)16 to octal number. 2
(e) What is utility software? Give two example of it. 2

2. (a) What is sorting? Write a program to sort a list by using insertion sort. 4
(b) Write a python program to find factorial of a number. 3
(c) Rewrite the following code in python after removing all syntax error(s).
Underline each correction done in the code. 2
Val= int(rawinput(“Value”))
Adder= 0
for C in range(1,Val,3)
Adder += C
if C%2 = 0:
Print C*10
Else:
Print C*
print Adder
(d) Write a program to print a pattern like: 2
4321
432
43
4
(e) Write a program to input a number and test if it is a prime number or not. 3
(f) Write program in python to find reverse of a number. 3
(g) Write a program to count and display the number of digits and the number
of alphabet present in a string. 3
3. (a) What is the difference between Local and Global variable? Give suitable
code as example. 2
(b) What is Token? Define any two type of token with example. 2
(c) What is dictionary? Write a command to create a dictionary and delete
an element from dictionary. 2
(d) What will be the output of following code? 2
tup1 = (“comp sc”, “info practices”, 2017, 2018)
tup2 = ( 5, 11, 22, 44, 9, 66)
print(“tup1[0]:”, tup1[0])
print(“tup2[1:5]:”, tup2[1:5])
(e) Write the output of following: 2
list = [‘I’,’N’,’D’,’I’,’A’]
print(list[0:3])
print(list[3:]
print(list[:])
print(list[1:-2])
4. (a) What is the difference between syntax error and semantics error? 2
(b) What is operator? 1
(c) Define flowchart. 1
(d) What is debugging? 1
5. (a) What is the purpose of ALTER TABLE command? How is it different from
UPDATE command? 2
(b) What is primary key? How is it different from candidate key? Explain with
the help of suitable example. 2
(c) Explain the purpose of DDL and DML statement. Give two examples of
each. 2
(d) Define NoSQL database. Write two advantages and two disadvantages of
MongoDB. 3
6. (a) Write a MySQL command to create the table STOCK including its
Constraints. 3
Table: STOCK
Field Type Size Constraint
Book_Id Varchar (6) Primary Key
Book_Name Varchar (25)
Price Integer
Type Varchar (15)
Quantity Integer Not Null

(b) Consider the table Flight given below, write command in SQL for (i) to (ii)
and output for (iii) to (iv): 3
Table: Flight
Flight_No Origin Destination Seats FlightDate Rate
1005 Varanasi Nepal 275 12-Dec-07 3000
2785 Delhi Kerala 290 17-Jan-08 5500
6587 Mumbai Varanasi 435 19-Feb-08 5000
1265 Varanasi Nepal 200 02-Jan-08 5400
4457 Delhi Lucknow 150 22-Feb-08 4500
6856 Varanasi Mumbai 180 03-Mar-08 6000

(i) To display Flight flying between Varanasi and Nepal.


(ii) To display the different Origin of Flights.
(iii)SELECT Flight_No, Destination FROM Flight WHERE Destination LIKE ‘_u%’;
(iv) SELECT Origin, Destination FROM Flight WHERE seats > 400;
7. (a) What is cyber bullying? 1
(b) What is eavesdropping? 1
(c) Define digital footprint. 1
(d) What is use of Firewall? What are the method to implement firewall. 2
(e) What measures should one take while using social networking sites? 2
(f) What is threat to computer security? Define the different type of threat to
computer. 3
KENDRIYA VIDYALAYA SANGATHAN
Half Yearly Exam-2018
CLASS-XI

SUB: COMPUTER SCI M.M:70


Que: 1
a) Is Python a free and open source language. ,how .[1]
b) How python is a cross platform language ? [1]
c) Write the advantages of python programming language.[1]

Que: 2
a) Define keyword with example. [1]
b) What are variables? How we can create variable in python give examples. [1]
c) The following code is not giving desired output. We want to input value as 20 and obtain
output as 40.Identifiy the problem and do the required correction in the code [1]
x =input (“Enter number :”)
y = x*4
print(y)
d) What will be the output of the following code? [1]
x=45
y=x+1
x=20,y+x
print(x,y)
e) Predict the output? [2]
x =10
x= x+15
x=x-5
print(x)
x,y = x-2 , 22
f) Define identifiers. Identify the valid and invalid identifiers in the following list. [2]
i) x_y_z ii) x_abc@1 iii) 1abc_d3 iv) continue
g) Write a program in python to obtain the length and breadth of rectangle and find its area.[2]
h) Write a program in python to obtain the principal amount, rate and time and calculate the
compound interest..[2]
Que:3
a) Explain the use of // (floor division) operator and = = operator with example.
[1]
b) Explain mutable and immutable data types in python. [1]
c) Identify the type of following literals? [2]
i) 45.789 ii) 23789 iii) “True” iv) 0XFACE
d) Explain implicit and explicit type casting . [2]
e) What are comments? How comments are specified in python give example .[2]
f) Write the equivalent python expression for the following expressions. [2]
i) √a2+b2+c2 ii) (p + q) / (r+s)4

g) What will be the output produced by following code? [2]


a,b,c,d =9.2 , 2.0 , 4 , 21
print (a/2)
print(a//4)
print(b**c)
print(a%c)
h) Explain about relational and logical operators in python with example.[3]
Que:4
a) Write a program to find the factorial of a number and draw its flow chart .[3]
b) Write a program in python to calculate the telephone bill of a customer based on the
following criteria. [3]

i. For the first 100 callls the minimum bill amount is 100 Rs.
ii. For the next 50 calls Rs. 0.40 per call will be charged extra.
iii. For the next 50 callls Rs. 0.50 per call will be charged extra.
iv. For the calls beyond 200 Rs. 0.60 per call will be charged extra.
c) Write a program in python to find the roots of a quadratic equation ax2+bx+c. [3]
d) Write a program in python to perform arithmetic operations (+, - , *, /, %). [2]
e) Write a program in python to enter a number and check whether it is positive or
negative. [2]

Que:5
a) Write a program in python to enter a number and check whether it is prime number or
not. [4]
b) Write a program to find the sum of even numbers and odd numbers between 1 to n
separately. [3]
c) Write a program in python to print the following series. [3]
2 5 10 17 26 37
d) Define what are iteration statements .Write the syntax of while loop . [2]
e) Write the following program using while loop. [2]
for I in range(1,16):
if i%3 = =0 :
print(i)

Que:6
a) Explain different types of errors in python with examples. [3]
b) Write the differences between testing and debugging. [1]

Que:7

a) Write a program that reads a string and change the string in uppercase. [2]
b) What is the use of isupper( ) and isalnum( ) methods in python explains with
example.[2]
c) What is string slice? find the output of following python code : [2]

Str=” java program”


Str[2:5]
Str[:6]
d) Write a program to search for an element in a given list of numbers. [2]
e) What is list data type in python? [2]
1

KENDRIYA VIDYALAYA AF, 9 BRD PUNE


II UNIT TEST 2018-19
CLASS-XI
SUBJECT-Computer Science

Time: 90 Min MM:50

Q.1 (a) What is the difference between an Interpreter and a Complier. [2]
(b) What is the function of memory. What are its measuring units. [2]
(c) What is an operating system What is its roles. [2]
(d) Write a short note on mobile processor. [2]
(e) Draw block diagram for basic computer organization. [2]

Q.2 (a) Convert EB4A16 to decimal. [1]


(b) 1011110100011001112 to Octal. [1]
(c) convert number 106 to binary . [1]
(d) Represent HELLO in 7 bit ASCII form. [2]

Q.3 (a) State and verify Absorption law in Boolean Algebra. [2]
(b) Prove algebraically X.Y+X‟Z+YZ=X.Y+X‟Z [2]
(c) Draw logic circuit using NOR gate only (X+Y)(X‟+Y)(X‟+Y‟) [2]
(d) Write the dual form of (A.1)+(A+0+A‟) [2]

Q.4.(a) Differentiate between DDL and DML commands. [2]


(b) Differentiate between CHAR and VARCHAR data types. [2]
(c) Given the following teacher relation: write SQL command for question (c) to(g) [4]
NO NAME DEPARTMENT DATE OF SALARY SEX
JOINING
1 RAJA COMPUTER 21/5/98 8000 M
2 SANGITA HISTORY 21/5/97 9000 F
3 RITU SOCIOLOGY 29/8/98 8000 F
4 KUMAR LINGUISTICS 13/6/96 10000 M
5 VENKARTRAMAN HISTORY 31/10/99 8000 M
6 SIDHU COMPUTER 21/5/86 14000 M
7 AISHWARYA SOCIOLOGY 11/1/1988 12000 F
2

i. To list the names of male teachers in history department.


ii. To list all names of teachers with date of admission in ascending order.
iii.To display teachers name , department and salary of female teachers.
iv.Display the details of those whose name contains A in middle.
Q 5.(a) Define Primary key with example. [2]
(b) Write the resulting output of the following : [1 X 5 = 5]
(i) Select SUBSTR(„Programmer of python‟, 11);
(ii) Select 500 + SQRT(169);
(iii) Select RIGHT(„AMAN SHARMA‟ , 5);
(iv) Select ROUND(675.567 , -2) + MOD (15.44, 3);
(v) select dayofyear(„2018-02-21‟);
(c) In a database there are two tables : [4 X 2 = 8]
Table :ARTICLE
ICode Iname Price
101 Washing Machine 30000
202 Refrigerator 20000
303 TV 25000
404 Computer 45000
Table :BRAND

ICode Brand
101 Videocon
202 Videocon
303 Sony
404 Dell

Write MySql queries for the following :


(i) To display ICode, IName and corresponding Brand of those Item, whose Price is
between 20000 and 30000 (both value inclusive)
(ii) To increase the Price of all the Items by 2% which has Price more than 28000.
(iii) Identify primary key and foreign key in above given table. Justify your answer.
(iv) Find out degree and cardinality of after Cartesian product of above given table.
3

Q.6(a) Write an SQL query to create a table “SPORTS” with the following structure: [2]

Field Type Constraint


SCode Varchar(5) Primary Key
SName Varchar(20) Unique
SLeader Varchar(20)
NoOfMember Integer
SSymbol Chart(1) Not Null
(b) In a database there is a table „Watch‟ as shown below: [2x1 = 2]
Watch
CompID Name CompHQ ContPerson
101 Titan Okhla R.K Jeet
201 Maxima Shahdara V.K. Kohali
301 Ajanta Gurgaon T.K. Mehta
401 Citizen Delhi S. Mohanti

(i) Write a query to add a column „Price‟ with data type integer.
(ii) Suggest suitable candidate key for above given table.

**************************************************************************
KENDRIYA VIDYALAYA SANGATHAN, TINSUKIA REGION
HALF YEARLY EXAMINATION 2018-19
Class: XI
Subject: COMPUTER SCIENCE
Set: A
Maximum Marks: 70 Time Allotted: 3 hours

Important Instruction:
1. Programming Language: Python.
2. All questions are compulsory.
Q1.
A Write a Python statement to accept your name as input from a user and store it in a variable 1
‘NAME’.
B Find and write the output of the following Python program code : 1
i). >>> 25 != 25
ii). >>> False + 10
C Write the data type of variables that should be used to store: 1
i). Marks of a student.
ii). Grades of student (Grade can be ‘A’ or ‘B’ or ‘C’)
D Write the type of Python tokens (keywords and user defined identifiers) from the following : 2
i). For
ii). elif
iii). list
iv). break
E Differentiate between ‘/’ and ‘//’ operators of Python with the help of suitable examples. 2
F Find and write the output of the following Python program code : 2
print (3**2 + 18/9 - 3**4+1)
print ((4 - 16)/8 + (2**4+3))
G Write a Python program to calculate the compound interest. The principal, rate of interest and time 3
must be entered by the user.
(Formula: Compound Interest = Principal (1 + Rate/100)Time )

Q2.
A How many asterisks does the following code fragment print? 1
a=3
while a < 20:
print('*', end='' '')
a += 1
B Rewrite the following Python code after removing any/all syntactical errors with each correction 2
underlined:
Len = 12
for var on range( 1, len):
if var % 2 = 0 :
Print(“Even Number!”)
print(‘END of Program!!”)
C Write a Python program that allows the user to enter exactly five integer values. The program then 3
prints the sum and average (arithmetic mean) of the values entered.
D Write a Python program to print the following pattern using for loop: 3
$
$$
$$$
$$$$
$$$$$
E Consider the following Python code fragment: 4
if i < j:
if j < k:
i=j

Page 1 of 3
else:
j=k
else:
if j > k:
j=i
else:
i=k
print("i =", i, " j =", j, " k =", k)
What will the code print if the variables i, j, and k have the following values?
i). i is 5, j is 6, and k is 7
ii). i is 4, j is 7, and k is 5
iii). i is 8, j is 3, and k is 7
iv). i is 2, j is 7, and k is 1

Q3.
A Differentiate between Tuples and Lists with the help of Python examples. 2
B Write a Python program to perform the Linear Search operation on the following given list: 2
[25,12,28,56,13,19,25]
C Find and write the output of the following Python code : 2
list1 = [10,20,30,40,50]
start = 1
sum = 0
for i in range (start,3):
sum = sum + list1[i]*10
print (i, ":", sum)
D Write the output for the following Python codes. 3
A={1:100,2:200,3:300,4:400,5:500}
print (A.items())
print (A.keys())
print (A.values())
E Create a list that contains the names of 5 students of your class: Write Python codes 4
i). Ask the user to input one name and append it to the list.
ii). Ask user to input a number. Print the name that has the number as index
(Generate error message if the number provided is more than last index value).
iii). Ask the user to type a name. Check whether that name is in the list. If exist, delete the name,
otherwise append it at the end of the list.
iv). Create a copy of the list in reverse order and print the new list.

Q4.
A What is the output of the following? 1
print('INDIA'.capitalize())
B Differentiate between Syntax Error and Run-Time Error. Also, write a suitable example in Python to 2
illustrate both.
C Write a Python program to find and display those place names, in which there are more than 5 2
characters.
For example :
If the list PLACES contains ["Miao", "Tawang", "Chabua", "Kimin", "Imphal", "Dimapur"]
The following should get displayed :
Tawang
Chabua
Imphal
Dimapur
D Write a Python program to check whether a user inputted string is palindrome or not. (Example of 3
Palindrome string: MADAM i.e. a word/sequence that reads the same backwards as forwards.)
E Find and write the output of the following Python code : 4
my_string = 'Tinsukia'
print(my_string[:3])
for i in range(len(my_string)):
print(my_string[i].upper(),end="@")
print()
Page 2 of 3
print (my_string)
print (my_string[3:6])

Q5.
A How RAM (Random Access Memory) is different from ROM (Read Only Memory). 1
B Convert the following: 2
i). (101011)2 to its Decimal equivalent.
ii). (125)10 to its Binary equivalent.
C State and proof the DeMorgan’s Theorem using truth table. 3
D Briefly explain all the functional units/components of a Computer System with help of a diagram. 4

Q6.
A What is the practice of using a network of remote servers hosted on the Internet to store, manage, 1
and process data, rather than a local server or a personal computer is known as?
B ‘Hardware is of no use without software and software cannot be used without hardware.’ Explain. 2
C Explain the following terms: 3
i). Compiler
ii). Application Software
iii). Interpreter
D Find and write the output of the following Python code : 4
x= [1, 2, [3, "KVS", 4], "KV"]
print(x[0])
print(x[2])
print(x[-1])
print(x[0:1])
print(2 in x)
print(x[0]==8)
print(len(x))
x.extend([12,32,4])
print(len(x))

**********************************All the best*************************************

Page 3 of 3
K e n dt’! / a Vid/ B]a ya Sangathan: Raipur Region
SP. S STo Endlng Examlnatlon - zo19
Subject c g= pMter Sctence {Theory) 0B3

Time : 03 Hn. MM : 70
General [ Fl s suct ion:
1 This QM S- t a a l'F £D0L6ins Tota16 Questions.
2. Attempt all questions.
ie e ri e uesti n n bR b e tte t nits

1• (A) I Hear c=0+4.5j iS a complex numbRr, write' python command to find


‹mag part,
' What do you mean by expressive language 7 Explain iF with python
example ?
[C) State Output of the following python program.
t1=(5,7,3,9,12)
Ien(LI)
t1.index(12)
I Under line the errors & Re-write the correct python code :
num=int {i n put [°E nter $ n l f'l t Elge$ (»1000) *t)

reve Se =0

dgitu nu mXl0
rnum=fnum/10

prinroe R e nu is )
y Fit g ygmmzlnd to reverse the given tuple
y = (15, 110,115, 12O)
I f0llowing series:
(F)

HeElo‘ (D) ‘Hello" (E) (HelI0)


ng u•ing a stngle loop(no
{8) ' w•:te a program to print the followi
nested logps)

I1
111
1111

Scanned by CamScanner
(C) WriLe any two difference between LIST and TUPLfi5 Ig python7 _ Z_
{D) Why exception handling equired 7 ./.
(E} Convert the following: 2
1. (FACE), a to binary

(F) Write a python program that reads a string and Check whether }t iS
a palindrome strlng or not7
3. {A) What are state transition diagramsT 1
(B) What is the role of CPU of a mobile system7
(C) Draw the LogiE CTrEuit for Boolean expreSsiOf\ tA+By.(C+D) usi f lg
only NOR gate :
(D) State and Prove Both DeMorgan’s Laws MSIn g Trut h Tdb!^
(E) What Is cloud computing ?
(F ) ExamiI tP- the foIiowin g code a nd Blvd’- t he answer of given below 3
question:
Numlist = eval(input {°Enter list :"))

odds=evens=0
length=Ien(numlist)
white pos<length:
il numfist [poz]R2=' O:
evens=evens+1
else:
odds•adds+1
tf odds>evens:
prlnt(" Balanced oddity*)
Ill what in this progwm calculating ›
(b) What does the progr am fOr the USt [I,S,Zm3,g,6,9j 2
(‹) What does the program print for the list [Z,b,2,3,6,6,9] 7
how can we fix ahis 2
4. (n) What will be the output of following code7

print{x,Y)
(B) Rg-Wri te the code fragmenu using for loop:

while x«5:
x=x+1
rint (x)
state output produced by the following code statement»
81//5.0

Page z of4

Scanned by CamScanner
Consider the following python
N = int(IDput{° Enter N:"))
i=i
sum-a
hTle i< N ;

SUm- sum+1
i-i+1
PSI I (sum)
(a) What is the output when Input values is 57
(b) What is the nutput when Input vslues is 07
(E) StatR output of the following python statement:
*+> string =’heIln‘

(a) >>>string,isIower()
(b) >>>string.isspace()
(F) Write a program to sort a sequence using insexion wn:
aList - i15,6,13,22,3,5Z,2]
5 |A) Define NoSQL database7 1
(B) What do you mean by comments in MySQL7 1
(C) Write one advantage and one disadvantage of NoSQL daFa6ase7 f2 j
.\p\ ENI at do vou mean by Primary Key and Csndfdate Keys7 2 /
(E) consider Che following table names EXAM with details of marks. 4
wriEe command of MyOl for (i) to (iVj and Output far (v) to (Vii). +

Table: EXAM.
j t{qo 5Name ) Percentage Clsecdon Stream
RD01 Sushant 9D.2 12A Science
R0o2 VaidyanaCh 80.5 13B Humanities
R003 Miara 68.9 12B Sci+nce
R004 Nlara t 96.D 12A Commerce
RODs Shin§ni | 88.9 1ZD Commerce

(i) To display all Information ef the student of humanities


In descending order of percentage.
To display Adno, bame, Percentage and Stream of those
students whose nam£? Is less EhBFI 6 characters long.
(III) To add another column BusFees with dataaype and size
as decimal (8,2).
(iv) To incease percentage @ I% of all the humaniti es
students. —

XI-CS./R

Scanned by CamScanner
Scanned by CamScanner
SHREE VALLABH ASHRAM’S MCM KOTHARI INTERNATIONAL GIRLS’
RESIDENTIAL SCHOOL, KILLA PARDI
PERIODIC TEST – II, 2018-19
CLASS XIS COMPUTER SCIENCE (083) M.M 70; TIME 3 HRS
22/10 /18

Instructions:

1) All questions are compulsory


2) Programming Language: Python and MySQL

SECTION A (15 MARKS)


Q1. What is a cross platform software? 1
Q2. What is Dynamic Typing features of Python? 2
Q3. From the following, find out which assignment statement will produce 1
an error. State reason(s) too.
(a) Length=450.17
(b) !Taylor=’Instant’
(c) Z=0o98
(d) 56thnumber = 3300
(e) X=55
Q4. Find out the error in the following fragments: 1
(a) print(“X=”X)
(b) else=21-5
Q5. What are data types? 1
Q6. Predict the output of the following: 2
(a) a,b=12,13
c,b=a*2,a/2
print(a,b,c)
(b) a,b=12,13
print(print(a+b))
Q7. What will be the result of the following: 1
(a) type(6+3)
(b) type(6%3)
Q8. Write the following expression in Python: 2
2 2 2
(a)(x-h) +(y-k) =r
(b) (an)m=anm
Q9. What is entry controlled loop. Mention its example 2
Q10. Rewrite the following code fragment using while loop: 2
min=0
max=min
if num<0:
min=num
max=0
for I in range(min,max+1):
sum+=i
SECTION B (40 MARKS)
Q11. Predict the output of the following: 2
for x in range(3):
for y in range(4):
print(x,y,x+y)
Q12. Predict the output of the following: 2
for x in [1,2,3]
for y in [4,5,6]
print(x,y)
Q13. Which functions would you choose to use to remove leading and trailing 1
white spaces from a given string.

1|Page
Q14. What would following expression return? 2
(a) “Hello World”.upper().lower()
(b) “Hello World”.find(“Wor”,1,6)
(c) “Hello World”.find(“wor”)
(d) “123FGH”.isdigit()
Q15. Suggest appropriate functions for the following tasks: 2
(i) To check whether the string contains digits
(ii) To capitalize all the letters of the string
(iii) To remove all white spaces from the beginning of a string.
(iv) To check whether all letters of the string are in capital letters.
Q16. What will be the output produced by following code fragments: 2
y=str(123)
x=”hello” * 3
print(x,y)
x=”hello”+”world”
y=len(x)
print(x,y)
Q17. What will be the output produced by following code fragments: 2
x=”hello”+”to Python”+”world”
for char in x:
y=char
print(y+”:”,end=” “)
Q18. Given a string S=”CARE DIEM”. If n is length/2 (length is the length of 2
the given string), then what would following return:
(i) S[:n]
(ii) S[n:]
(iii) S[n:n]
(iv) S[1:n]
Q19. What is the result of the given statement: 2
S=”987654321”
print(s[-1],s[-3])
print(s[-3:],s[:-3])
print(s[-100:-3],s[-100:3])
Q20. Find the errors: 2
S=”PURA VIDA”
S1=S[:5]
S2=S[5:]
S3=S1*S2
S4=S2+’3’
S5=S1+3
Q21. What do you understand by mutability of lists, briefly 2
Q22. What are list slices? What for can you use them? 2
Q23. What are the difference between lists and strings? 2
Q24. Given two lists 2
L1=[“this”,”is”,”a”,”List”]
L2=[“this”,[“is”,”another”],”List”]
Which of the following will cause an error and why
(i) L1.upper()
(ii) L1[3].upper()
(iii) L2[1][1].upper()
Q25. Create the table Employee table based on the following table: 2

Column
ID First Name Last Name Dept_ID
Name
Data Type Int varchar Varchar int

Length 8 25 25 8

2|Page
Q26. Write SQL commands for the following on the basis of given table 4
STUDENT:
Table: STUDENT
No Name Stipend Stream AvgMark Grade Class
1 Karan 400.00 Medical 78.5 B 12B
2 Divakar 450.00 Commerce 89.2 A 11C
3 Divya 300.00 Commerce 68.6 C 12C
4 Arun 350.00 Humanities 73.1 B 12C
5 Sabina 500.00 Nonmedical 90.6 A 11A
6 John 400.00 Medical 75.4 B 12B
7 Robert 250.00 Humanities 64.4 C 11A
8 Rubina 450.00 Nonmedical 88.5 A 12A
9 Vikas 500.00 Nonmedical 92.0 A 12A
10 Mohan 300.00 Commerce 67.5 C 12C

(a) Select all the Nonmedical stream students from STUDENT1


(b) List all names of those students who are in class 12 sorted by
Stipend
(c) List all students sorted by AvgMark in descending order
(d) Display a report listing names,stipend, stream and amount of
stipend received in a year assuming that the Stipend is paid
every month.
Q27. Predict the output of the following: 2
a,b,c=[1,2],[1,2],[1,2]
print(a==b)
print(a is b)
Q28. Write a query to display the name, job, title and salary of employee who 1
do not have manager.
Q29. What is foreign key commands different from primary key command? 2
Q30. Write a query to give commission of Rs. 500 to all employees who 1
joined in the year 1982(table.Empl)
Q31. Write a query for the following: Drop the table Empl. 1
SECTION C(15 MARKS)
Q32. Write a program to find all the even numbers between 1 to 10 3
Q33. Write a program to count no of blank spaces present in string. 3
Q34. Write a program to convert any string into title case 3
**Hint:
If the statement is “india is great”
Then the statement will be:
India Is Great
Q35. Write a program, which consider a list and find the average of number 3
entered through keyboard until enter ‘0’, if number is Zero then it will
quit. Finally displays list of numbers.
Q36. Write a program, which consider a list of integers. Create two empty list 3
i..e odd_lst(list for odd numbers), even_lst(list of even numbers) and
store the numbers in the corresponding list, display them.

3|Page
KENDRIYA VIDYALAYA SANGATHAN RANCHI REGION
HALF YEARLY EXAMINATION 2019-20
SUB: COMPUTER SCIENCE, CLASS - XI

SET-2

ANSWER KEY
Ans(1) 1MARKS FOR EACH CORRECT ANSWER
(A) (i)
(B) (i)
(C) (i)
(D) (iii)
(E) (iii)&(iv)
(F) (ii)
(G) Guido Van Rossum
(H) Bit
(I) Bus
(J) Input

Q2. (A) Briefly explain the basic architecture of a computer with diagram? [2]

Ans: 1Marks for explanation and 1Marks for diagram

(B) What is the function of memory? What are its measuring units? [2]

Ans: The memory temporarily holds the data and information during
processing. The smallest unit of memory is bit.
(1Marks for writing function of memory and 1Marks for measuring
unit)

(C) What do you mean by memory devices? Explain RAM and ROM. [2]

Ans: 1Marks for memory devices and 1Marks for explain RAM and ROM

XI/CS/2019-20/SET-2 1|Pageoutof7
(D) What is SoC? How it is different from CPU? [2]

Ans: The major components of a mobile system are integrated on a


single chip called System on chip(SoC). The SoC chips consume
less power compared to other alternatives.
(1Marks for defining SoC and 1Marks writing difference)

(E) What are the advantages of Python programming language? [2]

Ans: ½ Marks for each advantages

Q3. (A) Explain the following terms: [3]

(i) Assembler
(ii) Compiler
(iii) Interpreter

Ans: 1Marks for each explanation correctly

(B) What is cloud computing and what are its types? [2]

Ans: It is a technology of distributed data processing in which some scalable


information resources and capacities are provided as a service to
multiple external consumers through the internet. It allows storing,
accessing data and programs using the internet. There are two types
(i) Public cloud: In this service, the resources such as
memory, hardware devices and network devices are shared
by all clients.(e.g Google Drive)
(ii) Private cloud: It is own by individual or organization, all
the resources such as memory and services dedicated
solely to an organization.
(1Marks for defining Cloud and 1Marks for its Types)

XI/CS/2019-20/SET-2 2|Pageoutof7
(C) What is parallel computing? [1]

Ans:
Parallel computing is a type of computation in which many
calculations or the execution of processes are carried out
simultaneously. Large problems can often be divided into smaller ones,
which can then be solved at the same time.
(2Marks for writing any correct definition)

(D) What are the various category of software explain in brief? [2]

Ans:

(2Marks for writing correct definition)

(E) What is Operating System? Give one example of each single user and [2]

multiuser Operating System

Ans: (1Marks for defining OS and ½ Marks each for example)

Q4. (A) Name the law shown below and verify it using a truth table. [2]

A + B.C=(A+B).(A+C)

Ans: Distributive law


(1Marks for wring name of law and 1 marks for correct Truth table
verification)

XI/CS/2019-20/SET-2 3|Pageoutof7
(B) Write the equivalent Boolean expression for the following Logic Circuit : [2]

Ans: (X+Y’) (x’+Y) (x’+Y)


2 Marks for writing correct output
(C) Convert the following base of number system: [6]
(i) (1010100.011)2  ( ...................)10
(ii) (3674)8  ( ...................... )2
(iii) (72905)10  ( ..................... )16
(iv) (B2F)16 = (… ................. )8

Ans: (i) 84.325


(ii) 11110111100
(iii) 11CC9
(iv) 5457
1½ Marks for giving each of correct answer

Q5. (A) What is the difference between a keyword and an identifier? [2]

Ans: 1Marks for defining keyword and 1Marks for identifier

(B) Name the Primitive data types in python. Explain mutable and [2]

immutable data types in python.


Ans: Built in Data types: (i) Numbers(int, float, complex) (ii) String
(iii)List (iv) Tuple (v) Dictionary
(1Marks for writing primitive data types and 1Marks for explain
mutable and immutable)

XI/CS/2019-20/SET-2 4|Pageoutof7
(C) Predict the output of following code snippet: [2]

(i) x, y=20,60 (ii) a, b=12,13


y, x, y=x, y-10, x+10 c, b=a*2,a/2
print(x, y) print(a, b, c)

Ans: (i) 50 30 (ii) 12 6.0 24


1Marks each for correct output
(D) What is Token? What are categories of Token exist in Python? [2]

Ans: 1Marks for defining Token and 1Marks for its categories
(E) Find and write the output of the following Python program code : [2]

>>>print (3**2 + 18/9 - 3**4+1)


>>>print (12%5*3+(2*6) // 4)

Ans: -69.0
9
(1Marks for each correct line of output)
Q6. (A) Write Python expressions equivalent to the following [2]

arithmetic/algebraic expression:

𝒂+𝒂
(i) ut + ½ ft2 (ii) √𝒂 +
𝒂
2 𝒂𝒂 |2x2 – 4x|
(iii) 3 + (iv) e
𝒂

Ans: (i) u*t+f*t*t/2 (ii) math.sqrt(a)+(a+2)/b


(iii) 3*3+(math.pow(9,3))/5 (iv) math.exp(math.abs(2*x*x-
4*x))
½ marks for each correct answer
(B) Find out the error(s) in following code fragments and rewrite corrected [2]

code?

(i) max temp=30 (ii) a=30


print max temp b= a+b
print(a And b)

XI/CS/2019-20/SET-2 5|Pageoutof7
(iii) a, b, c = 2, 8, 9 (iv) name= “Hari”
print (a ; b; c) print (name)
name[2] = ‘R’
print( name)

Ans:
(i) max_temp=30 (ii) a=30
print(max_temp) b= a+b # b is not define
print(a, b)

(iii) a, b, c = 2, 8, 9 (iv) name= “Hari”


print (a , b, c) print (name)
name[2] = ‘R’
print( name)

SyntaxError: invalid character in


identifier

(C) What is comment? Explain with help of example in python? [2]

Ans: 1Marks for definition and 1Marks for examole


(D) Explain the following with help of suitable example [4]

(i) Flow Chart


(ii) Decision Tree
(iii) Pseudo-code

Ans: (i) 1½ Marks for correct definition and diagram


(ii) 1½ Marks for correct definition and diagram
(iii) 1 Marks for definition

Q7. (A) Write a Python program to calculate the compound interest. The [2]
principal, rate of interest and time must be entered by the user.
(Formula: Compound Interest = Principal (1 + Rate/100)Time )
Ans: p = float(input("Enter the principal amount: "))
r = float(input("Enter the interest rate: "))
t = float(input("Enter the time in years: "))
interest = p * (pow((1 + r / 100), t))
print("Compound interest is %.2f" % interest)
(1Marks for logic(Formula) and 1Marks for input and output)

XI/CS/2019-20/SET-2 6|Pageoutof7
(B) Write a Python program to obtain width and height of a rectangle and [2]
calculate its area.

Ans: width = float(input('Please Enter the Width of a


Rectangle: '))
height = float(input('Please Enter the Height of a
Rectangle: '))
Area = width * height
print("\n Area of a Rectangle is: %.2f" %Area)
(1Marks for logic(Formula) and 1Marks for input and output)

(C) Write a program in python to accept a character from the user and [3]
display whether it is a vowel or consonant.

Ans: ch = input("Enter a character: ")

if(ch=='A' or ch=='a' or ch=='E' or ch =='e' or


ch=='I'
or ch=='i' or ch=='O' or ch=='o' or ch=='U' or
ch=='u'):
print(ch, "is a Vowel")
else:
print(ch, "is a Consonant")
(½ Marks for taking input, ½ displaying output and 2 Marks for logic)
(D) Write a python program to print Fibonacci series’ first 20 elements. [3]
Some initial elements of a Fibonacci series are:
0 1 1 2 3 5 8…………………

Ans: nterms = 20
n1 = 0
n2 = 1
count = 0
print("Fibonacci sequence upto",nterms,":")
while count < nterms:
print(n1,end=' , ')
nth = n1 + n2
# update values
n1 = n2
n2 = nth
count += 1
(2Marks for loop(for/while) and update values, 1Marks for disply)

XI/CS/2019-20/SET-2 7|Pageoutof7
CLASS – XI
COMPUTER SCIENCE WITH PYTHON
TIME – 3 HOURS [MAX. MARKS – 70]
General Instructions:
i) All questions are compulsory.
ii) Mark for each question is mentioned against it.
iii) Programming Language: PYTHON

a) Who developed python Programming language and when? 1


b) Name any two immutable data objects of Python. 1
c) Classify each of the following as a valid or invalid variable: 2
a. i)Length ii)%age iii)2 innings iv)Half_Yearly
nd

d) Given that A=4, B=5, C=4, what will be the result of the following expressions:2
i)A<=C ii)A<=B
e) What is error? 1
f) What are variables? Give example. 2
g) Write the pseudo code that will take a number from the user 2 and print if it is positive,
negative or zero. 2
h) Rewrite the following program using for loop : 2
sum=0
i=1
while (i<=10):
sum=sum+i
i=i+1
print(“sum=”,sum)
i) Write a Python script to print Fibonacci series. 3
j) Identify the errors in the following code: 2
i. i. L1 = [1,2,3,5] ii. L1 = [1,3,5,8]
An = L1.remove(7) An = L1.remove(8)
print(An + 2)
l) Suggest appropriate functions for the following tasks: 2
(i) To check whether the string contains digits
(ii) To capitalize all the letters of the string
(iii) To remove all white spaces from the beginning of a string.
(iv) To check whether all letters of the string are in capital letters.
m) Write a program, which consider a list and find the average of number entered through
keyboard until enter ‘0’, if number is Zero then it will quit. Finally displays list of numbers. 3
n) t1= (1,)*3
t1[0]=2
print(t1) , What is the output ? 1
o) What is the use of json package? 1
p) Write the steps to arrange the elements using insertion sort. 12,5,14,8,3,54,25,10,27,30
2
q) What will be the output 2
t2=(1,2,3)
t3=(6,7)
t4=t3+t2
t5=t2+t3
print(t4)
print(t5)
r) Write a program to find factorial of a given number. 4
s) Write an appropriate for loop to be repeated 100 times, except the loop is to be terminated
if the value of the variable p becomes 50. 2

2.a Expand the following terms: 1


i) EPROM ii)ASCII
b. What is application software? Name any two software. 1
c. Convert following 2
1) (10111001)2=()8
2) (1234)8=()16
d.Prove Distributive law using truth table. 2
e. Draw the logic circuit from the following expression A’B+A’C 2
f. Answer the following 2
(i) Minimize the following A+(A.(B.C))
(ii) Add binary numbers 111.01 and 111.01

3. a What is primary key? 1


b. Give example for degree and cardinality. 1
c. What is the use of distinct in sql. 1
d. Answer the following questions. 6

(a) To list the names all the patients admitted after 15/01/98. 1
(b) To list the names of female patients who are in ENT department. 1
(c) To list names of all patients with their date of admission in ascending order. 1
(d) To display Patient’s Name, Charges, Age for only female patients. 1
(e )Find Out the Output of Following SQL Command:- 2
(i) Select COUNT(DISTINCT charges) from HOSPITAL;
(ii) (ii) Select MIN(Age) from HOSPITAL where Sex="F";
f. Define the following 6
(i) foreign key (ii) DBMS (iii)desc command
(iv) group by clause (v)Order by clause (vi) candidate key
4. Answer the following Questions:
a) What are the rules for using social networking sites 2
b) What is Cracking? Suggest the ways to protect the computer from cyber attack. 2
c) Define eavesdropping and phishing . 2
d) What is cyber stalking? How it is done. 2
e) What are the tips to safely browse the internet. 2
KENDRIYA VIDYALAYA SANGATHAN, PATNA REGION

HALF YEARLY EXAMINATION, 2018-19


CLASS – XI
COMPUTER SCIENCE
TIME – 3 HOURS [MAX. MARKS – 70
General Instructions:
i) All questions are compulsory.
ii) Mark for each question is mentioned against it.
iii) Programming Language: PYTHON.
1.a)What are the components of CPU? 1
b) Expand the following terms: 1
i) EPROM ii)ASCII
c)Name any two commonly used operating systems. 1
d) What role does the output unit play in a computer? 1
e) Write any two differences between RAM and ROM. 2
f)What is utility software? Name any two utility software. 2
g) How is the power managed in a mobile system? 2

2.a)What is cloud computing? Name any one public cloud. 1


b) Convert (330)10 into binary. 1
c) Ad
d binary number 11.01 and 101.11. 1
d)Name the gates: 1
i) ii)
e)Write the truth table for 2-input XOR gate. 2
f) St
ate and verify any one De Morgan’s law using truth table. 2
g)Convert (11011010)2 to decimal number and hexadecimal 2
number.

3.a)Who developed python Programming language and when? 1


b) What does cross platform language mean? 1
c)Write any two shortcomings of Python. 1
d) Name any two immutable data objects of Python. 1
e) What are the rules for naming an identifier? 2
f)Differentiate between interactive mode and script mode. 2
g) Classify each of the following as a valid or invalid variable: 2
i) Length ii)%age
iii)2nd innings iv)Half_Yearly

4.a)What will be the result of 3*2 and 3**2? 1


b) What will be the size of following constants: 1
i) ’\n’ ii) “KV\’s”
c)Given that A=4, B=5, C=4, what will be the result of the following 1
expressions:
i) A<C ii)A<B
d) What is debugging? 1
e) What will be the output of the following code: 2
i) x,y=5,8
x,y=y,x+21
print(x,y)
ii) a=1
a,b=a+1,a+1
print(a)
print(b)
f)Write the output: 2
i) print(“MyPython”*3)
ii) print(3<4 and 4<5)
g) Write following expressions in Python: 2
4
i) V = 𝜋𝜋 2 h ii) A=tanx/cosx + x
3
iii) y = |4z-e2x| iv) F = a + b c + d

5.a)Write the pseudo code that will take a number from the user 2
and print if it is positive, negative or zero.
b) Draw the flow chart to find the area of a triangle using formula 2
𝜋⁄
𝜋 base x height.
c)Rewrite the following program using for loop : 2
sum=0
i=1
while (i<=10):
sum=sum+i
i=i+1
print(“sum=”,sum)
d) Write a program to compute simple interest and compound 3
interest.
e) Write a program to find the greatest among the three integers. 3
f)Write a program to find the sum of the series : 3
S = 1 + x + x2 + x3 +……+ xn
6.a)What do you mean by syntax error and semantics error? 2
b) Why are logical errors harder to locate? 2
c)If P = (5,4,3,2,1,0) evaluate the following expressions : 2
i) P[0] ii) P[1]
iii) P[P[0]] iv) P[P[-1]]
d) Find the output of the following Python code : 3
for Subject in [‘Physics’,’Chemistry’,’Mathematics’,’English’]:
print(Subject)
if Subject[0]==’M’
break
else:
print(‘Compulsory’)
print(‘Optional’)
e) What is a dictionary in Python?How can we access data from a 3
dictionary?What is the main use of a dictionary?
f)Write the algorithm to sort a list in ascending order using bubble 3
sort.
SAMPLE PAPER
Half Yearly Exam-2018
CLASS-XI

SUB: COMPUTER SCI M.M:70


Que: 1
a) Differentiate interactive mode and script mode in python? [1]
b) What does a cross platform language mean,is python cross platform lang. [1]
c) How many types of strings are supported in python explain with example of each.[1]

Que: 2
a) How variable is differ than identifier . [1]
b) What are variables? How we can create variable in python give examples. [1]
c) The following code is not giving desired output. We want to input value as 20 and obtain
output as 40.Identifiy the problem and do the required correction in the code [1]
x =input (“Enter number :”)
y = x*5
print(y)
d) What will be the output of the following code? [1]
x, y =2, 5
x, y =y, x+2
print(x, y)
e) Predict the output? [2]
x =15
x= x+10
x=x-5
print(x)
x,y = x-2 , 22
f) Define identifiers. Identify the valid and invalid identifiers in the following list. [2]
i) x_y125z ii) _abc@5 iii) abc_d53 iv) break
g) Write a program in python to obtain three numbers and print their sum and average .[2]
h) Write a program in python to enter the temperature in Celsius and convert it in to
Fahrenheit.[2]
Que:3
a) Explain the use of %( modulas) operator and = = operator with example. [1]
b) Explain mutable and immutable data types in python. [1]
c) Identify the type of following literals? [2]
i) 23.5789 ii) 237895 iii) True iv) 0XFACE
d) Explain type casting and its type with examples. [2]
e) What are comments? How comments are specified in python give example .[2]
f) Write the equivalent python expression for the following expressions. [2]
i) √a2+b2+c2 ii) (p + q) / (r+s)4

g) What will be the output produced by following code? [2]


a,b,c,d =9.2 , 2.0 , 4 , 21
print (a/5)
print(a//4)
print(b**c)print(a%c)
h) Define operators in python. Explain about relational and logical operators with
example.[3]
Que:4
a) Write a program to find the greatest among three numbers and draw its flow chart .[3]
b) Write a program in python to calculate the telephone bill of a customer based on the
following criteria. [3]

i. For the first 100 callls the minimum bill amount is 100 Rs.
ii. For the next 40 calls Rs. 0.40 per call will be charged extra.
iii. For the next 60 callls Rs. 0.50 per call will be charged extra.
iv. For the calls beyond 200 Rs. 0.60 per call will be charged extra.
c) Write a program in python to find the roots of a quadratic equation ax2+bx+c. [3]
d) Write a program in python to perform arithmetic operations (+, - , *, /, %). [2]
e) Write a program in python to enter a number and print whether it is an even number or
an odd number. [2]

Que:5
a) Write a program in python to print the Fibonacci series up to n terms. [4]
0 1 1 2 3 5…….n
b) Write a program to find the sum of even numbers and odd numbers between 1 to n
separately. [3]
c) Write a program in python to print the sum of following series. [3]
1+ X+ X2 +X3 +…. + Xn
d) Define entry controlled loop in python with example. [2]
e) Rewrite the following program using for loop. [2]
i=100
while(i>0):
print(i)
i-=3
Que:6
a) Explain different types of errors in python with examples. [3]
b) Write the differences between testing and debugging. [1]
Que:7

a) Write a program that reads a string and display it in reverse order. [2]
b) What is the use of islower( ) and isalnum( ) methods in python explains with
example.[2]
c) What is string slice? find the output of following python code : [2]

Str=” python program”


Str[2:5]
Str[:6]
d) Write a program to search for an element in a given list of numbers. [2]
e) What is list data type in python? [2]
SAMPLE PAPER-II
Class XI (Sub-Computer Science)
Periodic Test-2
Max Marks-50 Time-1:30 Hrs
General Instructions:
(i) All questions are compulsory
(ii) Database softwares: MySQL and mongoDB

Q1. What do you mean by RDBMS? Give some examples. [2]

Q2. Briefly Explain the following terms: [4]


(i) Tuple (ii) Relation (iii) Degree (iv) Foreign Key

Q3. What is Primary key? Explain with the help of suitable example. [2]

Q4. Assume a table Emp with 15 rows and 5 columns. Write its degree and cardinality. [2]
3 rows are deleted and one more column is added. What will be the new degree
and cardinality?

Q5. What do you mean by SQL? What are the different categories of commands [2]
available in SQL.

Q6. What is MySQL? Write some features of MySQL. [3]

Q7. Write SQL Commands for (a) to (e) and write the outputs for (f) to (h)on the basis [8]
of the following table :
Table : FURNITURE

NO ITEM TYPE DATEOFSTOCK PRICE DISCOUNT


1 WhiteLotus DoubleBed 2002-02-23 3000 25
2 Pinkfeathers BabyCot 2002-01-29 7000 20
3 Dolphin BabyCot 2002-02-19 9500 20
4 Decent OfficeTable 2002-02-01 25000 30
5 Comfortzone DoubleBed 2002-02-12 25000 30
6 Donald Babycot 2002-02-24 6500 15

(a) To list the details of furniture whose price is more than 10000
(b) To list the Item name and Price of furniture whose discount is between
10 to 20.
(c) To delete the record of all item where discount is 30.
(d) To display the price of ‘Babycot’.
(e) To list item name, type and price all items whose names starts with ‘D’.
(f) Select Distinct Type from Furniture;
(g) Select Max(Price) from Furniture where DateofStock>’2002-02-15’;
(h) Select Count(*) from Furniture where Discount<25;

Q8. Write the outputs of the following: [5]


(i) Select POWER(2,5);
(ii) Select ROUND(10.195,2);
(iii)Select TRUNCATE(10.195,2);
(iv) Select SUBSTR(‘COMPUTER SCIENCE’,3,4);
(v) Select INSTR(‘Technical Teaching’,’ch’);

Q9. What is a constraint? Name some constraints that you apply to enhance database [3]
integrity?
Q10. Differentiate between (i) Char and Varchar (ii) Primary Key and UNIQUE [4]

Q11. What do you mean by ‘JOIN’? [1]

Q12. In a database ‘SCHOOL’ there are two tables ‘MEMBER’ and ‘DIVISION’ as shown [4]
below:
MEMBER
EmpID Name Pay DivNo
101 Rajesh 20000 10
102 Ajay 26000 50
103 Tina 22000 20

DIVISION
DivNo DivName Location
10 Media Delhi
20 Dance Kolkata
30 Song Guwahati

(a) Identify the Foreign key in the table MEMBER.


(b) Identify the Primary Key in table MEMBER with justification.
(c) What output you will get when an equi-join query is executed to get the
name from Member table and corresponding Division table.
(d) Write SQL query to get the output given in question (c).

Q13. What is NoSQL database? Write main features of NoSQL databases? [3]

Q14. What is JSON format? [1]

Q15. What are terms used in mongoDB to refer the following relational database terms: [2]
(i) row (ii) column (iii) table (iv) database

Q16. (i) Write command to create a new database by the name ‘newdb’ in mongoDB. [1]
(ii) Create a collection with the name ‘People’ and insert the following data in it: [2]
 “name”:”Albert”, “age”:21, salary:15000
 “name”:”Bibhash”, “age”:35, salary:50000
(iii) Write query to list all documents in collection ‘People’. [1]

*************
SHREE VALLABH ASHRAM’S MCM KOTHARI INTERNATIONAL GIRLS’
RESIDENTIAL SCHOOL, KILLA PARDI
PERIODIC TEST-3, 2019-20
CLASS XIS COMPUTER SCIENCE (083) M.M 50; TIME 1 HR
/12/19
Instructions:
1) All questions are compulsory

SECTION A (15 MARKS)

Q1. Convert binary numbers into decimal number. 3


(i) 101011
(ii) 111101
(iii) 110001
Q2. Convert hexadecimal number to decimal 3
(i) FACE
(ii) CAD
(iii) BED
Q3. What is code space? How its related to code point? 2
Q4. Add binary numbers: 2
(a) 110101 and 101111
(b) 10110 and 1101
Q5. What do you mean by tautology and fallacy? 2
Q6. What do you mean by principle of duality? 2
Q7. Draw the truth table of (X+Y)’ 1
SECTION B (35 MARKS)
Q8. Write a program to find the sum of all odd number from 1 to 30s 3
Q9. Convert decimal number to binary 3
(i) 100
(ii) 23
(iii) 145
Write a program to swap any two numbers. Ie if a=10 and b=20 then after 3
Q10.
swapping value will be a=20 and b=10
Q11. Draw truth table of 3 input XNOR gate and its circuit diagram 3
Q12. What is significance of UNICODE encoding system? 2
Q13. Fill in the blanks: 2
(i) Each hexadecimal digit has its own value or weight expressed as a
power of
(ii) If X, Y are two logical variable then what is the right hand side value of
the below expression
X+(Y+Z)=
Q14. Why NAND and NOR Gates are more popular? 2
Design a logic circuit to realize the Boolean function 2
Q15.
Y=A’B’C’D+AB’C’D+ABC’D+ABCD’
Q16. Proof Demorgan’s two theorems algebraically. 5
Q17. Write a program to find the area of circle 2
Write the program to count number of vowels present in the given string. 3
Q18.
If the string is “Programming”
Q19. State and Verify Absorption Laws and distributive Law with the help of Truth 5
Table.
SAMPLE PAPER
Half Yearly Examination
Class -XI
MM: 70 Subject: Computer Science (083) Time:3 Hours

All questions are compulsory.

Q. 1. 10 marks

a) Define computer
1
b) Which is computer memory? 1
c) Differentiate compiler and interpreter? 2
d) Define following: 2
i. Operating System ii. Parallel Computing
e) Write difference between SRAM and DRAM. 2
f) Prove De-morgan s law using truth table. 2

Q. 2. 10 marks

a) Convert following 2
1) (101110)2=()8
2) (4156)8=()16
b) Write full form of following 2
1)ASCII
2)ISCII
c) Define proprietary software and write any two example . 1
d) What is data? What is output of data processing system? 1
e) What is bit? How bit, byte and nibble are related with each other? 2
f) What is application software? Write any two example. 2

Q. 3. 8 marks

a) differentiate keyword and identifier? 2


b) From the following, find out the invalid identifier: 2
_abc_d, break, 1rak, doc14, a2bc5,_punc, ray.dat
c) What is literal in python? 2
d) What will be the output produced by following code fragment? 2
x, y= 10, 20
y, x, y=x, y-10, x+10
print (x, y)

Q. 4. 10 marks

a) What are data types? What are python s built in core data types? 2

b) What do you understand by term immutable ? Explain with a suitable example. 2

c) What will be the output of the following code and why? 2


a,b,c=0.1
d=0.3
e=a+b+c-d
f=a+b+c==d
print(e)
print(f)
d) What will be the output of following Python code? 2

a=12
b=7.4
c=1
a-=b
print (a, b)
a*=2+c
print(a)
b+=a*c
print( b )
e) Write a program to determine if the number is even or odd. 2

Q. 5. 10 marks

a) What is the output of the following lines of code? 2

if int( zero ) == 0 :
Print( zero )
elif str(0) == zero :
Print (0)
elif str(0) == 0 :
Print (str(0))
else:
Print( none of the above )

b) What is the output produced by the following code? 2


x=1
if x>3:
if x>4:
printf( A ,end= )
else:
print( B ,end= )
elif x<2:
if (x!=0):
print( C , end= )
print( D )

c) Write a Python script to print Fibonacci series first 20 elements. Some initial elements of a
Fibonaci series are: 3
0 5 8 …….

d) Write programs using nested loops to produce the following patterns: 3


A
AB
ABC
ABCD
ABCDE
ABCDEF
Q. 6. 12 marks

a) Write a program to find the second largest number of a list of numbers. 3

b) Identify the errors in the following code: 2

i. L1 = [1,2,3,5] ii. L1 = [1,3,5,8]


An = L1.remove(7) An = L1.remove(8)
print(An + 2)
c) Find out the output of following code segment: 2
numlist = [2,5,2,3,6,6,9]
pos=0
odds=evens=0
length=len(numlist)
while pos<length:
if numlist[pos]%2==0:
evens=evens+1
else:
odds=odds+1
pos=pos+1
if odds>evens:
print( Balanced oddity )

d) Write a program that reads a string and checks whether it is a palindrome string or not. 3
e) Find the errors in the following code— 2

s= PURA VIDA
s1=s [ : 5]
s2=s [ 5 :]
s3=s1 * s2
s4=s2 + 3
s5=s1+3

Q. 7. 10 marks

a) What do you mean by Syntax errors and Semantics errors? Answer with example. 2

b) How are tuples different from list when both are sequences? 2

c) Consider the following code and then answer the question that follow— 4
myDict={ a :27, b :43, c :25, d :30}
valA=
for I in myDict:
if I > valA
valA=i
valB= myDict[i]
print (valA) #Line1
print (valB) #Line2
print (30 in myDict) #Line3
myLst= (myDict.items())
myLst.sort()
print (myLst[-1]) #Line4

Write the output of the Line 1,2 ,3 and 4

d) What type of objects can be used as keys in dictionaries? Also explain why? 2
Common Annual Examination [2018-19]
Subject: Computer Science (Theory) XI class
Time Allowed: 3:00 hrs. Max. Marks: 70
• All the questions are compulsory.
• Programming Language Python.
• The paper have four sections Section A, Section B, Section C, Section D
 Section A has 10 questions carrying 1 marks each.
 Section B has 15 questions carrying 2 marks each.
 Section C has 6 questions carrying 3 marks each.
 Section D has 2 questions carrying 6 marks each.
Section A
1) What is cyber stalking?
2) What are the advantages of cloud computing?
3) What is the difference between RAM and ROM?
4) What does a cross platform language mean?
5) Arrange the following in ascending order of memory capacity:
TB, Byte, KB, PB, MB, GB
6) Give the full form of PROM
7) Is python a compiled or an interpreted language?
8) Define NoSQL Database.
9) Which Loops are supported by python?
10) What is the use of math.cos(x)?
Section B
11) List the differences between Low Level Languages and High Level Language.
12) What is the difference between input() and raw_input()? Explain with example.
13) Write the output of following program
a=10
b=20
b=b+a
print ”a=,”,a, ”b=”,b
14) How can you define a function in Python? Give proper syntax.
15) Draw a labeled diagram of basic computer system.
16) Identify Errors in the following lines of codes(Underline each correction )
def sin(x,n) #line 1
sine=0
for (i in range [n]):
sine=(-1)*i**I # line 2
sine=sine +((x**(2.0*i-1))/factorial1(2**i-1))*sign
return sine
17) Differentiate between a syntax error and a semantic error with example.
18) Convert the following:
(i) (4A)16 = ( )2
(ii) (106)10 = ( )8

1|Page
19) Write the name of the function used to calculate the length of list and tuples?
20) Write two features of Operating System.
21) Write the output produced by this program below.
x=3
If x!=2:
print ‘First’
else :
print ‘Second’
if 2>x: print ‘Third’
print ‘Fourth’
print ‘Fifth’
22) What are datatypes in python? Give an example.
23) What are Global Variables? What is their scope in program?
24) What is DDL? List the commands used in DDL.
25) Write the developer of python with year of establishment.
Section C
26) Draw a flowchart to calculate greatest of three entered numbers.
27) Write short note on Generation of Computers.
28) What is the difference between lists, tuples and dictionaries? Give an example for their usage.
29) Define eavesdropping, phishing and cyber bullying .
30) Write a short note on cloud computing.
31) Answer the question based on the table given below:

(i) Write the SQL command to create the above table with constraints.
(ii) Insert 2 records with relevant information, in the table student
(iii) Display all the records of the table Student.
Section D
32) What are the types of software in computer system and organization? Explain and give an example of each.
33) Attempt any two python programs given below:
i) Fibonacci Series
ii) Factorial of a number
iii) Palindrome of a string

2|Page
HALF YEARLY EXAMINATION (2018-19)
CLASS- XI
SUBJECT: COMPUTER SCIENCE (083)
Time: 03 Hrs. Max Mark: 70
Instructions:
(i) All questions are compulsory.
(ii) Programming Language: Python
(iii) For output based questions ignore errors (if any)

1 A Name any four primitive data type in Python 1

Numbers, String, List, Tuple, Dictionary etc.

B Which of the following variable names are valid/invalid 1


(i) _main_
(ii) sum of square

(i) valid
(ii) invalid

C What will be output of following statement: 1


(i) >>> 2<3
(ii) >>> True+4

(i) True
(ii) 5

D Python is an interpreted language. Justify 2

In C C++ program source code in converted into binary code through


compiler, and while run time the linker/loader s/w copies the program from
hdd to memory and start running it. Where as in python does not need the
compilation & linking/loading process, Python prpgram can be directly run
from source code. Python internally convert source code into byte code and
translate into native language.

E Explain the concept of R-value & L-value with example 2

In an normal expression, the variable refers to L-value because it resides in


memory and addressable, and expression is an R-value, i.e. not an L-value.
X=1 #x is an L-value
Y=20 # Y is an L-value
Z=X+Y # X+Y is an R-value

F Write a program to enter the sides of rectangle and print area & perimeter. 3

Area=l*b
Perimeter=2*(l+b)

2 A What is difference between / & % operator? Explain with example 1

/ is division, and % is modulus


4/2=2, 4%2 = 0
B What will be output of following expression: 1
(5<10) AND (10<5) OR (3<18) AND NOT 8<18

FALSE
C What will be output of following 2
code: A,B,C,D=9.2, 2.0, 4, 21
print(A/4) print(A//4) print(B**C)
print(A%C)

2.3
2.0
16.0
1.2
D What will be output of following program segment: 3
A,B,C=9,12,3
X=A-B/3+C*2-1
Y=A-B/(3+C)*(2-1) Z=A-
(B/(3+C)*2)-1 print(“X=”,X)
print(“Y=”,Y)
print(“Z=”,Z)

X=10.0
Y=7.0
Z=4.0

E Write a program to find the simple interest of an investment amount. 3

SI=(PTR)/100
P=principal amount, T=Time in years, R=Rate of interest

3 A Write two different forms of IF statements with example 1

If (condition):
Statement

IF(condition):
Statement
ELSE:
Statement

B What will be error in following code (correct it): 1

A=input(“enter value for a”)


B=int(input(“enter value for b”))
if (A>B) print(“A”) else:
print(“B”)
C Construct logical expression to represent the following condition: 1
(i) Weight is greater than of equal to 115 but less than 125 (ii)
Donation is in range 4000-5000 or guest is 1

(i) if Weight>=115 and Weight <125


(ii) if donation>4000 and donation<5000 or guest ==1
D Write a program to test the divisibility of a number with another number 2

n1=int(input(“enter number1”))
n2= int(input(“enter number2”))
rem=n1%n2 if
rem==0:
print(n1,”is divisible by”,n2) else:
print(n1,”is not divisible by”,n2)

E Write a program to find the largest among three numbers. 2

X=INT(INPUT(”ENTER NUMBER1”))
Y=INT(INPUT(”ENTER NUMBER1”))

Z=INT(INPUT(”ENTER
NUMBER1”)) IF (X>Y AND X>Z):
PRINT(X,”IS LARGE”) IF (Y>Z AND
Y>X): PRINT(Y,”IS LARGE”) IF
(Z>X AND Z>Y):
PRINT(Z,”IS LARGE”)
F Write program to read two numbers and an arithmetic operator and display 3
the computed result.

X=FLOAT(INPUT(“ENTER NUMBER1”))
Y=FLOAT(INPUT(“ENTER NUMBER2”))
OP=INPUT(“ENTER OPERATOR:+/-/*//”) RESULT=0
IF OP==‟+‟:
RESULT=X+Y
ELIF OP=‟-„:
RESULT=X-Y
ELIF OP=‟*„:
RESULT=X*Y
ELIF OP=‟/„:
RESULT=X/Y ELSE:
PRINT(“ENTER VALID OPERATOR”)
PRINT(X,OP,Y,‟=‟,RESULT)

4 A Pseudocode is an informal high-level description of the operating principle 2


of a computer program or other algorithm. It uses the structural
conventions of a normal programming language, but is intended for
human reading rather than machine reading. if attendance is greater than
or equal to 75 display ”eligible to appear in exam” else display ”not
eligible to appear in exam”

B (i)0,1,2,3,4,5 (iii)5,9,13,17 2
(ii)7,8,9 (iv)12,10,8,6,4,2
C The continue statement in Python returns the control to the beginning 3
of the while loop. The continue statement rejects all the remaining
statements in the current iteration of the loop and moves the control
back to the top of the loop any example of break and continue
(Two marks for definition and One mark for example)

D n=1 for a in 3
range(5):
print(n)
n=n*10+1
½ marks for input ½ for output and 2 marks for logic
5 A (i)syntax error 1
(ii)Semantics error
B (i)p =print for variable value (ii) h=for help 1
C for any one correct reason one marks 1
D A run-time error typically generates an exception or otherwise terminates 2
program e.g. dividing by zero. The program is doing something that is
undefined.

A logical error is simply that the programmer is doing something wrong in


their algorithm
E An Error "indicates serious problems that a reasonable application should 2
not try to catch." An Exception "indicates conditions that a reasonable
application might want to catch." Error along with Runtime Exception &
their subclasses are unchecked exceptions. All other Exception classes are
checked exceptions

F (i) Type error: raised when an operation or function receives in appropriate 3


value.
(ii) Index error: raised when a sequence out of range (iii)Name
Error: raised when identifier name not found

6 A Define a list. Why it is a dynamic mutable type: 1

A list is an ordered collection of items which can be of any type. It is dynamic


mutable mean we can add or delete the items from the list at any time.

B Define a Dictionary. How we can access the data from it? 1

Dictionary are group of key value pairs. The elements in a dictionary are
indexed by keys. Keys should be unique. we can access the data from
dictionary by using keys
C Write a statement for following: 1
(i) Sum of all elements in a list([1,2,3,…100]) (ii)
sum of all odd numbers in a list ([1,2,3,….100])

(i) Sum (range(101))

(ii) sum(range(1,101,2))
D What will be output of following: 2
(i) >>>[4]*4
(ii) >>>num=[17,123]
>>>num[-1]

(i) [4,4,4,4]
(ii) 123
E Rewrite the following after removing all syntax errors. Underline each 2
correction

for name in [amar,shveta,parag]


IF name[0] =‟S‟:
print(name)

for name in [„amar‟,‟shveta‟,‟parag‟]: if


name[0] ==‟S‟:
print(name)

F Write a program to perform linear search on given list 3


[10,51,2,18,4,31,13,5,23,64,29]

num=[10,51,2,18,4,31,13,5,23,64,29]
print(“list element s are:”,end=” “)
for i in num:
print(i,end=” “) print()
find=int(input(“”enter element to search))
flag=0 for i in num: if(i===find):
flag=1
break if
flag==1:
print(“element found) else:
print(“element not found)

7 A What will be output of following statements: 1


(i) >>> “2”+3
(ii) >>> “2”*3

(i) Error
(ii) 222
B What will be output of following: 1
word=‟AMAZING‟
print(word[0:3])
print(word[-5:-1])

AMA
AZIN

C Write a program to count total number of characters in an input string 2

str=input(“Enter any string:”)


count=0 for ctr in str: count+=1
print(“Total number of characters
are:”,count)

D Write a program to check number of „H‟ present in a string: 3


HEALPS HEALS WITHOUT
HURTING the out will be displayed as:
Total number of „H‟ is: 4

strn=‟ HEALPS HEALS WITHOUT


HURTING‟ count=0 for ch in strn:
if(ch==‟H‟)” count+=1 print(”Total
number of „%c‟ is:%d” %(„H‟,count))

E Write a program to arrange a list on integer elements in ascending order using 3


bubble sort technique. 10 51 2 18 4 31 13 5 23 64 29

num=[10, 51, 2, 18, 4, 31, 13, 5, 23, 64,


29] ctr=i=0 n=len(num)
print(“the list is:”) for
i in range(0,n):
print(num[i], end=” ”)
#bubble sort for i in
range(n): for j in
range (n-1):
if(num[j]>num[j+1]):
ctr+=1
tmp=num[j]
num[j]=num[j+1]
num[j+1]=tmp print(“the
sorted list:”) for i in
range(0,n)
print(num[i],end=” ”)

++ All the Best ++


SAMPLE PAPER

HALF YEARLY

Class XI

Computer Science(083)

Question Paper

SL Question Marks
No
Q1 Answer the following questions:
(a) Define Software? 1
(b) How Many Characters are supported in AsCII? 1
(c) Expand DRAM? 1
(d) Write a python program to print table of 5? 2
Q2 Answer the following questions:
(a) Write two features of Linux Operating system? 2
(b) What is a software interrupt? Give an example? 2
(c) What is the difference between c[:] and c[:-1] assuming c is a list? 1
(d) In which generation integrated Circuits(IC) used? 1
Q3 Answer the following questions:
(a) Write short note on Object oriented approach. 2
(b) List the differences between compiler and interpreter? 2
(c) What is the difference between range() and xrange()? 1
(d) Write a line of code to execute infinite loop in python. 1
Q4 Answer the following questions:
(a) What is Booting? What are the types of booting 2
(b) What is bytecode? 1
(c) Why the statement is not valid? 1
X+1=X
(d) How can you know the datatype of a variable? 1
Q5 Answer the following questions:
(a) Explain rint() and abs() from math module with an example? 2
(b) What do you mean by Logical errors with an example? 2
(c) What is the role of a comment in a comment in a program ? Is it
necessary to comment every line of code? 2
(d) WAP to print area of a circle? 2
Q6 Answer the following questions:
(a) WAP to convert temperature from degree to Fahrenheit. 2
(b) What do you mean by Latency? Should it be less or more for ideal
system? 2
(c) Given the following code, write down the output? 3
a=3
b=1
For I in range(a):
For j in range (b):
Print (“hello”*i+”oswal”*j)
(d) WAP to delete all the even nos from a numeric list. 2
Q7 Answer the following questions:
(a) Convert the following: 2
1. (1011010)2 to Hexadecimal
2. (723)8 to Decimal
(b) Draw a flow chart to calculate factorial of a number. 3
(c) Rewrite the following code after removing syntactical errors. Underline
each correction done in the code. 2
For name in [amar,shweta,parag]
If name[0]=’s’:
Print(name)
(d) Name the function/method required to 2
(i) Check if a string contains only alphabets.
(ii) Give the total length of the list.
Q8 Answer the following questions:
(a) State and prove the DeMorgan’s Theorem algebraically. 3
(b) Draw a logic circuit diagram for the following Boolean expression: 2
X’.(Y’+Z)
(c) Write two characteristics of cloud computing. 2
(d) WAP that computes the real roots of a quadratic equations. 3
(e) WAP to check whether entered string is palindrome or not. 3

Q9 Answer the following questions:


(a) Expand the following: 2
(i) ASCII (ii) MICR (iii) BCD (iv) BOSS
(b) Write two differences b/w SIMD and MIMD. 2
(c) Find 2’s complement of following: 2
(i) -60
(ii) -42
(d) What is Cache memory? How is it different from the primary memory? 2
SAMPLE PAPER-II Class XI (Computer Science) HALF YEARLY

Class XI

Computer Science (083)

Session 2018-19

BLUE PRINT

S no. Typology of VSA(1 mark) SA(2 marks) LA(3 marks) Total No of Total Marks
Questions questions
1 Programming in 6(1) 11(2) 4(3) 21 40
Python(Unit-1
upto List
manipulation)
2 CSA(Unit-2) 5(1) 11(2) 1(3) 16 30
TOTAL 11 44 15 37 70

Question Paper

SL Question Marks
No
Q1 Answer the following questions:
(a) Define Software? 1
(b) How Many Characters are supported in AsCII? 1
(c) Expand DRAM? 1
(d) Write a python program to print table of 5? 2
Q2 Answer the following questions:
(a) Write two features of Linux Operating system? 2
(b) What is a software interrupt? Give an example? 2
(c) What is the difference between c[:] and c[:-1] assuming c is a list? 1
(d) In which generation integrated Circuits(IC) used? 1
Q3 Answer the following questions:
(a) Write short note on Object oriented approach. 2
(b) List the differences between compiler and interpreter? 2
(c) What is the difference between range() and xrange()? 1
(d) Write a line of code to execute infinite loop in python. 1
Q4 Answer the following questions:
(a) What is Booting? What are the types of booting 2
(b) What is bytecode? 1
(c) Why the statement is not valid? 1
X+1=X
(d) How can you know the datatype of a variable? 1
Q5 Answer the following questions:
(a) Explain rint() and abs() from math module with an example? 2
(b) What do you mean by Logical errors with an example? 2
(c) What is the role of a comment in a comment in a program ? Is it
necessary to comment every line of code? 2
(d) WAP to print area of a circle? 2
Q6 Answer the following questions:
(a) WAP to convert temperature from degree to Fahrenheit. 2
(b) What do you mean by Latency? Should it be less or more for ideal
system? 2
(c) Given the following code, write down the output? 3
a=3
b=1
For I in range(a):
For j in range (b):
Print (“hello”*i+”oswal”*j)
(d) WAP to delete all the even nos from a numeric list. 2
Q7 Answer the following questions:
(a) Convert the following: 2
1. (1011010)2 to Hexadecimal
2. (723)8 to Decimal
(b) Draw a flow chart to calculate factorial of a number. 3
(c) Rewrite the following code after removing syntactical errors. Underline
each correction done in the code. 2
For name in [amar,shweta,parag]
If name[0]=’s’:
Print(name)
(d) Name the function/method required to 2
(i) Check if a string contains only alphabets.
(ii) Give the total length of the list.
Q8 Answer the following questions:
(a) State and prove the DeMorgan’s Theorem algebraically. 3
(b) Draw a logic circuit diagram for the following Boolean expression: 2
X’.(Y’+Z)
(c) Write two characteristics of cloud computing. 2
(d) WAP that computes the real roots of a quadratic equations. 3
(e) WAP to check whether entered string is palindrome or not. 3

Q9 Answer the following questions:


(a) Expand the following: 2
(i) ASCII (ii) MICR (iii) BCD (iv) BOSS
(b) Write two differences b/w SIMD and MIMD. 2
(c) Find 2’s complement of following: 2
(i) -60
(ii) -42
(d) What is Cache memory? How is it different from the primary memory? 2
KENDRIYA VIDYALAYA SANGATHAN GUWAHATI REGION
HALF YEARLY EXAMINATION 2019-20
CLASS :XI SUB : COMPUTER SCIENCE TIME: 3 Hrs M.M : 70

General Instruction: General Instruction: -


All Questions Are compulsory. Internal choices are given in some questions.
1. Programming language used is python. Use appropriate variable names.
2. Please check that this question paper contains 2 printed pages.
3. Please check that this question paper contains 31 questions.
4. Please write down the serial number of the question before attempting it. Indent your
program appropriately.

1. State the basic architecture/units of a computer system with example? 2


OR
Write down the main components of a Mobile System?
2. What is the function of memory? What are its measuring units? 2
3. Differentiate between the RAM and ROM? 2

4. Define the following language processors? 3


a) Assembler b) Compiler c) Interpreter
5. Define the various categories of Computer Software with example? 3
6. What is UNICODE? What is its significance? 1
7. Add the following Binary Numbers using binary Addition? 2
a) 10110111 and 1100101 b) 1110.110 and 11010.011
8. Convert the following Numbers? 3
a) (84.375)10 = (?)2 b) (132)8 = (?)10 c) (FACE)16 = (?)8
9. Which Gates are known as Universal Gates and why? 2
10. Draw the circuit diagram for the following Boolean Functions: 2
F(X,Y,Z) = X.Y + X.Z (Using NAND Gates only)
OR
F(X,Y,Z) = (X+Y) . (X+Z’) (Using NOR Gates only)

11. State the De-Morgan’s Theorem? Prove it algebraically? 3


12. How a process is different from a program? 1
13. What is Parallel Computing? 2
OR
Define the term Cloud Computing.
14. What are the functions of an Operating System when multiple processes are running 2
simultaneously?
15. a) What is cross platform language/software? 2
b) What are the advantages of python programming language?
OR
List out the limitations of python programming language?

16. Define the different modes of working in python? 2


17. How keywords are different from identifiers in python? 1
18. What are Tokens? How many types of tokens are allowed in python? 2
19. What will be the output of following code fragment? 2
A, B, C = 10, 20, 30
P, Q, R = C-5, A+3, B-4
print(‘A, B, C :’, A, B, C, end = ‘ ’)
print(‘P, Q, R :’, P, Q, R)
20. Write a Python program to read (using input function) details like NAME, CLASS, 3
AGE of a student and display the details on screen?
21. Differentiate the Immutable and Mutable types in python with suitable examples? 2
22. How many types of strings are supported by python language, name them with 2
example?
23. 2 −𝜋𝜋±�𝜋𝜋𝜋𝜋−𝜋𝜋𝜋𝜋𝜋𝜋 3
3 a) Write the following expression in Python: 𝜋𝜋 𝜋𝜋𝜋𝜋
. =
b) Evaluate and justify the expressions: not ((not b or not a) and c) ora
given that a = False, b=True, c=False
c) Predict the output of following code:
X, Y, Z = 4, 8, 12
result = X/Y*Y + Z
print(result)

24. Write a Python program to read the values of X, Y, and Z from the user and calculate 4
the expression: 5X4+6Y3+3Z+6
25. Define the following terms: Algorithm and Flowchart 2
26. What are jump statements in Python? Name and state the purpose of each? 2
27. Find and correct the errors in following code: 3
# Program to check whether a number is EVEN or ODD
num = input('Enter any Number')
if num%2 = 0:
print('EVEN NUMBER')
else
print('ODD NUMBER')
28. Write a Python program to display first N terms of the Fibonacci series? 3
29. Write a Python program to display the following pattern using loop statements? 4
A
A B
A B C
A B C D
A B C D E
30. Differentiate between Syntax and Semantic errors? 1
31. What is an exception in Python? Name any two of them? 2
***----***---***---***
SHREE VALLABH ASHRAM’S MCM KOTHARI INTERNATIONAL GIRLS’
RESIDENTIAL SCHOOL, KILLA PARDI
PERIODIC TEST I - 2018-19
CLASS XI COMPUTER SCIENCE M.M 50; TIME 3HRS
18/07/18

Programming Language: Python


Question Paper divided into 3 sections… viz.
Section A contains 15 marks
Section B contains 15 marks
Section C contains 20 marks (Programming)

SECTION A(15 MARKS)


Q1. When was Python released? 1

Q2. What is cross platform software? 1

Q3. What are the advantages of Python Programming Language? 2

Q4. Define Computer. 1

Q5. Python is free and open source language? 2

Q6. Define Python Shell? 1

Q7. Which of the following are not valid strings in Python? 1


a) “ Hello ” (b) ‘ Hello ’ (c) “ Hello ’ (d) ‘ Hello “

Q8. What do you understand by block/code block/suite in Python? 2

Q9. What would the following code do: X=Y=7 1

Q10. Find out the errors in following code fragment: 2


(i) temperature=90
print temperature
(ii) print(“X=”,X)

Q11. What do you mean by Name Error? 1

SECTION B (15 MARKS)


Q12. Define 2
(i) Token
(ii) Identifier

Q13. What will be the output of the following: 1

(i) side=int(input(“side”) #side given as 7


area=side*side
print(size,area)

(ii) First =2 2
Second=3
Third=first+second
Print(first,second,third)
First=first+second+third
Third=second+first
Print(first,second,third)
Q14. Can nongraphic characters be used in Python? Give examples to support your 2
answer

Q15. What will be the output of the following? 2


X,Y=20,50
Y,X,Y=X,Y-10,X+10
print(X,Y)

Q16. Find out the errors in the following code fragment: (the input entered is XI) 2
(i) C=int(input(“ENTER YOUR CLASS”))
print(“YOUR CLASS IS”,C)

(ii) a,b,c=2,3,4
a,b,c=a*a, a*b, a*c
print(a,b,c)

Q17. What will be returned by Python as result of the following statements: 4


(i) >>>type(int(1.0))
(ii) >>>type(3/2)
(iii) >>>type(1.0)
(iv) >>>type(“Hello”)

SECTION C(20 MARKS) - PROGRAMMING


Q18. Write a program in Python to find out the area of 3
circle.(area=3.14*radius*radius)

Q19. Write a program in Python to find the simple interest based on the value of 3
principal, rate and time. (Hints. simple_interest=(amount*rate*time)/100)

Q20. Describe functional components of computer system with the help of diagram. 5

Q21. Write a program in Python to convert Fahrenheit amount to Celsius. 3


(Hints.C = (F-32) x 5/9 )

Q22. Write a program in Python to find the value of K=(a+b)/(c+d). 3

Q23. Write a program to read a number n and print n2,n3 and n4 3


SESSION ENDING EXAM PAPER(SAMPLE)
CLASS XI
SUBJECT COMPUTER SCIENCE
TIME : 3 Hours Max Marks: 70
Programming Language: Python

Q 1 a) Name 2 application software. 1


b) Name any 2 devices that run on mobile OS. 1
c) Name 2 public cloud services. 1
d) Convert the Following as Directed 2
(i) (23.25)10=()2 (ii) (C4)16=()8
e) Express -15 in 1’complement as well as 2’s complement form. 1

f) Name the law and verify it using a truth table. 2


A+BC=(A+B)(A+C)
g) Draw the logic circuit from the following expression 1
AB+A’C
h) Minimize the following :: A+{A.(B.C)} 1
Q 2) a) which function of python tells the data type of an object. 1
b) Write a python statement to assign the values “apple”, “50” to fruit,rupees 1
c) Identify the type of Token: 2
i) D_o_b ii) True
iii) * iv) %
d) What are the supported data types in python? 2
e) What are the key features of Python? 2
f) Find the output for the following:: 3
i) str=”vijaya vishwa tiranga pyara”
print(“Line1”,str[14], end=’#’)
print(“\t”, str[4:7])
print(str*3, str[16:]), sep=”***”)
ii) x=20
x=x+5
x=x-10
print (x)
x,y=x-1,50
print (x,y)
g) Write a program to enter the side of a square and print its area and
perimeter. 2
h) Evaluate the following expression with precedence of operator: 1
X = 2* 3/ 5 + 10 //3 - 1

i) Write the following expressions in Python: 3

Q 3) a)Find syntax error(s), if any, in the following code:: 2


MAX=’4’
a=int(input”Enter the value of a:”)
b= int(input”Enter the value of b:”)
if(a>b)
MAX=5
for x in range(0, MY_MESSAGE):
print(“%d” %(x))

b) Write an appropriate for loop to be repeated 100 times, except the loop is to be
terminated if the value of the variable P becomes 50. 2

c) What will be the value of a after executing the following codes? 2

i) a=0 ii) a=0


for i in range(10): for i in range(10):
a=a+1 a=a+1
for j in range(10): for j in range(10):
a=a+1 a=a+1
print(a) print(a)
d) Name the error and error message: 2
i) answer=”Hello”+1
ii) while True print(“Hello World”)

Q4) a) WAP in python to delete all duplicate elements in a list. 4


For eg:
If Alist is: [5,2,4,-5,12,2,7,4]
After deleting duplicate elements, new list should be: [5,2,4,-5,12,7]

b) Differentiate between list and tuple constructs of Python 2


c) Write the Python code to create the dictionary to include the list of
following item
a=10
b=20 2
(d)Refer the following code and predict the output

a=[1,2,3]
b=[4,5,6]
c=a+b
d=c[0:3]
e=d
c[5]=10
c[1]=20
e[0]=30
print(a)
print(c)
print(d)
print(e)

Q 5: Answer the following questions-


a) Define NoSQL Database. 1
b) What does a MongoDB database refers to table and records? 1
c) Find error in the given SQL code: (Consider the table: Language ) 1
insert into values {“CS”,”Python”};
d) Define primary key.
1

.6 Answer the question based on the table given below:

(i) Write the SQL command to create the above table with constraints. 1

(ii) Insert 2 records with relevant information, in the table student 1

(iii) Display all the records of the table Student. 1


(iv) Delete the Student Whose Roll no is 100. 1

(v) Change the Stream of Student to ‘Computer’ Whose Roll no. is 536. 1

(vi) Add one column email of data type VARCHAR and size 30 to the table student. 1

Q7: Answer the question based on the table given below:

(a) To list the names all the patients admitted after 15/01/98. 1

(b) To list the names of female patients who are in ENT department. 1

(c) To list names of all patients with their date of admission in ascending order. 1

(d) To display Patient’s Name, Charges, Age for only female patients. 1

(e )Find Out the Output of Following SQL Command:- 1

(i) Select COUNT(DISTINCT charges) from HOSPITAL;


(ii) (ii) Select MIN(Age) from HOSPITAL where Sex="F";
Q8: Answer the following Questions:
a) What are the rules for using social networking sites 2
b) What is Cracking? Suggest the ways to protect the computer from cyber attack. 2
c) Define eavesdropping and phishing .

d) What is cyber stalking? How it is done. 2


e) What are the tips to safely browse the internet. 2
XI- Computer Science (083)
Session: 2018-19

BLUE PRINT

Long Long
Very Short Short Short Answe
Answer r Total
Answer Answer-I Answer -II
S. No Typology of Questions (L.A.) (L.A.) Marks
(VSA) (SA-I) (SA-II)
(4 (6
(1 mark) (2 marks) (3 marks)
marks) marks)

Programing in Python -
1 3 11 2 1 35
(Unit1)

2 CSO (Unit2) 6 2 -- – -- 10

Data Management (DM-1,


3 5 -- -- 1 15
Unit 3) 1

Society, Law and Ethics


4 (SLE-1)- Cyber Safety – 5 - - - 10
(Unit 4)

Total Marks 10 38 6 4 12 70
ST.JOSEPH CALASANZ CBSE SCHOOL, KANYAKUMARI
SEMESTER I, - 2019-2020
COMPUTER SCIENCE
CLASS : XI Max Marks: 70
TIME: 3 hrs
• All the questions are compulsory
• The paper have four sections Section A, Section B, Section C, Section D
 Section A has 14 questions carrying 1 marks each
 Section B has 15 questions carrying 2 marks each.
 Section C has 6 questions carrying 3 marks each.
 Section D has 2 questions carrying 6 marks each.

Section- A (1 x 15=15)
1. What are the Boolean numbers in python?
2. Which one of the following is not a python’s predefined data type
a) Int b)Tuple c)complex d) Class
3. Draw the logic circuit from the following expression AB+A’C
4. What is the value of X is
X=int(43.55+2/2 )
a) 23 b) 22 c) 44 d) 43
5. Name the function that tells the data type of an object.
6. Write a python statement to assign the values “ Periodic Test”, “ CS”, “XI” to Variables
Exam, sub, clss
7. Name any 2 devices that run on mobile OS.
8. What are the three types of Language Processor.
9. Proof x + xy = x
10. What is the value of the expression 4+2**5//10
a) 1233 b) 7 c) 9 d) 45
11. What is an atom? What is an expression?
12. If you give the following for str1=”Hello” why does python report error str1[2]=’p’
13. Find out the output
a) 13 &12 b) ~8
14. a=True
b=False
c=False
If a or b and c:
Print(“hello”)
else:
Print(“hai”)
15. Find out the error and rectify it
X,Y=3
Z=x+y
Pirnt(the value of z is z)
Section- B (15 x 2 = 30)

16. Write a program to check whether entered Integer is EVEN OR ODD.


17. Convert the Following as Directed
(i) (53.25) 10 =() 2 (ii) (A4) 16 =() 8
18. Name the law and verify it using a truth table:- A+BC=(A+B)(A+C)
19. Write python program to calculate area of circle. The radius being the input.
20. Identify the type of Token:
i) D_o_j ii) True
ii) * iv) @
21. Write an appropriate for loop to be repeated 100 times, except the loop is to be
terminated if the value of the variable P becomes 50.
22. Name the error and error message:
i) answer=”Hello”+1
ii) while True
print(“Hello World”)
23. Differentiate between /,//,% with suitable example?
24. Find out the output
for i in range(2):
print(i)
for i in range(4,6):
print(i)
25. Differentiate between Tuple and List with suitable examples
26. Draw the AND-OR circuit for y=AB’C’D’+ABC’D’+ABCD
27. Define Disk fragmentor?
28. Write short notes about cloud computing?
29. Write a python program to read a c n and compute n+nn+nnn (Let us assume n=3)
30. Write a short notes about advantages of python?
Section- C (5x 3=15)
31. Find the output for the following:
i) for x in range(10,20):
if( x % 2==0):
continue
print(x)
ii) x=20
x=x+5
x=x-10
print (x)
x,y=x-1, 50
print(x,y)
32. Write the following expressions using operators used in Python:
i) x = a3+ b3 + c3
(ii) A=πr(r+h)2
(iii) x=(-b±√(b 2 -4ac))/2a
33. State the DeMorgan’s law(any one) and prove it (Algebraic Expression & Truth table)
34. Leela has 3 children . She bought 12 apples from market. She gave 5 apples to first son, 4
apples to second son, remaining she gave to the last son. Who got more apples find out.
35. Explain briefly about Basic computer Organization

Section- D (2 x 5 =10)
36. Write a python program to generate the numbers (1 to 30) , then the program calculate and
display the sum of odd numbers and even numbers respectively.
e.g. if the user gives the following sequence of numbers:
ex: 1 2 3 4 5 6 7 8 9 10
Then the output should be as follows:
The Sum of even numbers in given input sequence = 25
The Sum of odd numbers in given input sequence = 38
37. a) Get any 2 digit positive number from user(ex:25). Print the Reverse number Check the
Reverse number is Palindrome or not?(3)
b) Find out the factorial value of given number “n”.( Get the n value read from the user). If
the given number is less than 0 then Print the words “We can’t find out the factorial of
negative number.(2)
SAMPLE PAPER

HALF YEARLY

Class XI

Computer Science(083)

Question Paper

SL Question Marks
No
Q1 Answer the following questions:
(a) Define Software? 1
(b) How Many Characters are supported in AsCII? 1
(c) Expand DRAM? 1
(d) Write a python program to print table of 5? 2
Q2 Answer the following questions:
(a) Write two features of Linux Operating system? 2
(b) What is a software interrupt? Give an example? 2
(c) What is the difference between c[:] and c[:-1] assuming c is a list? 1
(d) In which generation integrated Circuits(IC) used? 1
Q3 Answer the following questions:
(a) Write short note on Object oriented approach. 2
(b) List the differences between compiler and interpreter? 2
(c) What is the difference between range() and xrange()? 1
(d) Write a line of code to execute infinite loop in python. 1
Q4 Answer the following questions:
(a) What is Booting? What are the types of booting 2
(b) What is bytecode? 1
(c) Why the statement is not valid? 1
X+1=X
(d) How can you know the datatype of a variable? 1
Q5 Answer the following questions:
(a) Explain rint() and abs() from math module with an example? 2
(b) What do you mean by Logical errors with an example? 2
(c) What is the role of a comment in a comment in a program ? Is it
necessary to comment every line of code? 2
(d) WAP to print area of a circle? 2
Q6 Answer the following questions:
(a) WAP to convert temperature from degree to Fahrenheit. 2
(b) What do you mean by Latency? Should it be less or more for ideal
system? 2
(c) Given the following code, write down the output? 3
a=3
b=1
For I in range(a):
For j in range (b):
Print (“hello”*i+”oswal”*j)
(d) WAP to delete all the even nos from a numeric list. 2
Q7 Answer the following questions:
(a) Convert the following: 2
1. (1011010)2 to Hexadecimal
2. (723)8 to Decimal
(b) Draw a flow chart to calculate factorial of a number. 3
(c) Rewrite the following code after removing syntactical errors. Underline
each correction done in the code. 2
For name in [amar,shweta,parag]
If name[0]=’s’:
Print(name)
(d) Name the function/method required to 2
(i) Check if a string contains only alphabets.
(ii) Give the total length of the list.
Q8 Answer the following questions:
(a) State and prove the DeMorgan’s Theorem algebraically. 3
(b) Draw a logic circuit diagram for the following Boolean expression: 2
X’.(Y’+Z)
(c) Write two characteristics of cloud computing. 2
(d) WAP that computes the real roots of a quadratic equations. 3
(e) WAP to check whether entered string is palindrome or not. 3

Q9 Answer the following questions:


(a) Expand the following: 2
(i) ASCII (ii) MICR (iii) BCD (iv) BOSS
(b) Write two differences b/w SIMD and MIMD. 2
(c) Find 2’s complement of following: 2
(i) -60
(ii) -42
(d) What is Cache memory? How is it different from the primary memory? 2
1

Roll Number………………..

GURUKUL KURUKSHETRA
COMPUTER SCIENCE
SEPTEMBER EXAMINATION
SESSION (2019-20)
CLASS: XI (083)

Time Allowed: 3 Hours Maximum Marks: 70

Note: (i) All questions are compulsory.


(ii) Answer the questions after carefully reading the text.

(iii) Marks of each question are given against it.

(iv) Marks will be given for good hand writing.

1. Answer the following questions based on Python Programming and


Computational Thinking:

(i) ‘Python is an interpreted high level language’. What does it mean to you? 1
(ii) What is Type casting? Elaborate with example. 1
(iii) What is IDLE? 1
(iv) Define a keyword. Give two examples. 1
(v) What are the two modes of working in Python? 1
(vi) Draw a flow chart to find the greatest of 3 numbers. 2
(vii) Write the output of the following: 3
(a) a,b=20,30
a=a+5
b=b+10
a,b=b,a
print (a)
print (b)
2

(b) x=”hello world”


y=2.3
print (type(x))
print (type(y))
(c) Which of the following are invalid identifiers?
(1) Myfile (2) _abc (3) As$swer (4) 99flag
(viii) Write logical expression for the following: 2
(1) Name is Riya and age is between 10 to 15.
(2) CITY is either ‘Delhi’ or Mumbai’ but not ‘Kolkata’.
(ix) Write the output of the following program on execution if x=90. 2
x=90
if x>60:
if x>25:
print("ok")
if x>90:
print("good")
elif x>40:
print("average")
else:
print("no output")

(x) Write the output of the following: 2


L=[ ]
L1=[ ]
L2=[ ]
for i in range(6,10):
L.append(i)
for i in range(10,4,-2):
L1.append(i)
for i in range(len(L1)):
L2.append(L[i]+L1[i])
L2.append(len(L)-len(L1))
print(L2)
3

(xi) Define Bubble sort? Elaborate with an example. 2


(xii) Suppose L=[“Good”,5,[“Students”,”Words”],”few”]
Consider the above list and answer the following: 2
(a) L[2:] (b) L[2] [1]
(xiii) Write the output of the following: 1
L=[‘a’,’z’,’p’,’c’,’m’]
L.remove(‘c’)
print(L)
print(L.pop( ))

(xiv) What will be the output of the following programming code? 1


s1=”My Python Programming”
print(s1[-5:-1])
print(s1[1:5])
(xv) Consider the string s1=”Green Revolution”. 4
Write statements in python to implement the following:
(a) To replace all the occurrences of letter ‘a’ in the string with “*”.
(b) To display the starting index for the substring ‘vo’.
(c) To remove ‘Gre’ from the left of the string.
(d) To repeat the string 3 times.
(xvi) Write will be the output of the following python code, justify your answer. 2
x=5
y=0
print(‘A’)
try:
print(‘B’)
A=x/y
print(‘C’)
except ZeroDivisionError:
print(‘F’)
except:
print(‘D’)
finally:
4

print(‘Over’)
(xvii) Write a program to generate the following series. 2
1 2 3
1 2 3
1
(xviii) Write a program in python to calculate the factorial of 5. 2
(xix) Give the output of the following python statements. 2
y=5
for i in range(1,3):
for j in range(0,i):
z=i+j-1
if(z%2)==0:
y=y+z
elif(z%3)==0:
y=y+z-2
print("y=",y)
(xx) Write the output of the following: 2
L=[10,20,30,40]
L1=[500,600]
L2=[35,45]
L1.extend(L2)
L.insert(25,2)
print(L1+L2)
print(L1)
print(L.index(30))
print(L2*2)
(xxi) Write a program to find and display prime numbers below 50. 3
(xxii) Find the output of the following: 1
T1=(10,20,30,40,50)
T2=(100,200,300)
T1,T2=T2,T1
print(min(T1))
print(max(T2))
5

2. Answer the following questions based on Computer System and


Organization.

(i) What are the components of CPU? What is its role? What is the function of
control unit of CPU? 2
(ii) What is cloud computing? Write two benefits. 1
(iii) Write the difference between compiler and interpreter. 2
(iv) Two devices used by the supermarket point-of-sale (POS) terminal are a
barcode reader and keyboard. Name two other input/output devices used at the
POS and give a use for each device. 1
(v) Why are NAND and NOR gates more popular? 1
(vi) Answer the following questions:- 4
(a) Convert (10110.0101)2 into decimal number.
(b) Convert (325)10 into octal number.
(c) Convert decimal number (0.375) to its equivalent binary number.
(d) Add 101101 to 11001.
(vii) Draw logic circuit diagram for the following expression: 2
Y = a e + ē o+ ō ā
(viii) State DeMorgan’s Law of Boolean Algebra and verify them using truth table.2
(ix) Write the equivalent Boolean Expression for the following Logic Circuit: 2

(x) What is parallel computing? 1

3. Answer the following questions based on Society, Law and Ethics.

(i) What is cyber safety? Why is it important? 1


(ii) What is private browsing? Why is it considered a better way of browsing the
internet? 1
(iii) What is cyber trolling? 1
(iv) Define the following terms: 2
6

(a) Digital footprint


(b) Cookies
(v) What is cyber bulling and cyber stalking? 2
(vi) What is an IP address? 1
(vii) What is a computer virus? How can it affect your computer? 1
(viii) What is the role of firewall? 1
(ix) Differentiate between http and https. 2
KENDRIYA VIDYALAYA SANGATHAN RANCHI REGION
HALF YEARLY EXAMINATION 2019-20
SUB: COMPUTER SCIENCE
CLASS - XI
Time : 3 Hours Max. Marks: 70

General Instruction:
i. All the questions are compulsory.
ii. Please write down the serial number of the question before attempting it.
iii. Programming Language: PYTHON.

Q1. (A) Components that provide internal storage to the CPU is: [1]

(i) Registers (ii) Program Counters


(iii) Controller (iv) Internal Chips

(B) Which of the following is used to hold the running program [1]

instructions?
(i) Primary Storage (ii) Virtual Storage
(iii) Internal Storage (iv) Minor Device

(C) Boolean expression Y+YZ =? [1]

(i) Y (ii) Z (iii) 1 (iv) 0

(D) 2’s compliment if 1010 is [1]

(i) 110 (ii) 1111 (iii) 1010 (iv) 0

(E) Which of the following are not valid string in Python? [1]

(i) “Hello” (ii) ‘Hello’


(iii) “Hello’ (iv) {Hello}

(F) Which of the following is not a characteristics of a computer? [1]

(i) Diligence (ii) I.Q


(iii) Accuracy (iv) Versatility

XI/CS/2019-20/SET-2 1|Pageoutof5
(G) Python was developed by ............................................ in February [1]

1991.

(H) A ....................... is an elementary unit of the memory [1]

(I) A set of wires/cables to carry binary information to or from [1]

input/output devices and memory is called…………..

(J) Microphone (Mic) is a ..................device. [1]

Q2. (A) Briefly explain the basic architecture of a computer with diagram? [2]

(B) What is the function of memory? What are its measuring units? [2]

(C) What do you mean by memory devices? Explain RAM and ROM. [2]

(D) What is SoC? How it is different from CPU? [2]

(E) What are the advantages of Python programming language? [2]

Q3. (A) Explain the following terms: [3]

(i) Assembler
(ii) Compiler
(iii) Interpreter

(B) What is cloud computing and what are its types? [2]

(C) What is parallel computing? [1]

(D) What are the various category of software explain in brief? [2]

(E) What is Operating System? Give one example of each single user [2]

XI/CS/2019-20/SET-2 2|Pageoutof5
and multiuser Operating System

Q4. (A) Name the law shown below and verify it using a truth table. [2]

A + B.C=(A+B).(A+C)

(B) Write the equivalent Boolean expression for the following Logic Circuit : [2]

(C) Convert the following base of number system: [1.5X4=6]


(i) (1010100.011)2  ( .................. )10
(ii) (3674)8  ( ...................... )2
(iii) (72905)10  (..................... )16
(iv) (B2F)16 = (… ................. )8

Q5. (A) What is the difference between a keyword and an identifier? [2]

(B) Name the Primitive data types in python. Explain mutable and [2]

immutable data types in python.

(C) Predict the output of following code snippet: [2]

(i) x, y=20,60 (ii) a, b=12,13


y, x, y=x, y-10, x+10 c, b=a*2,a/2
print(x, y) print(a, b, c)

(D) What is Token? What are categories of Token exist in Python? [2]

(E) Find and write the output of the following Python program code : [2]

XI/CS/2019-20/SET-2 3|Pageoutof5
>>>print (3**2 + 18/9 - 3**4+1)
>>>print (12%5*3+(2*6) // 4)
Q6. (A) Write Python expressions equivalent to the following [2]

arithmetic/algebraic expression:

(i) ut + ½ ft2 (ii) √ 𝒂 + 𝒂+𝒂


𝒂
2
|2x – 4x|
2 𝒂𝒂
(iii) 3 + (iv) e
𝒂

(B) Find out the error(s) in following code fragments and rewrite [2]

corrected code?

(i) max temp=30 (ii) a=30


print max temp b= a+b
print(a And b)

(iii) a, b, c = 2, 8, 9 (iv) name= “Hari”


print (a ; b; c) print (name)
name[2] = ‘R’
print( name)

(C) What is comment? Explain with help of example in python? [2]

(D) Explain the following with help of suitable example [1.5+1.5+1=4]

(i) Flow Chart


(ii) Decision Tree
(iii) Pseudo-code

Q7. (A) Write a Python program to calculate the compound interest. The [2]
principal, rate of interest and time must be entered by the user.
(Formula: Compound Interest = Principal (1 + Rate/100)Time )

(B) Write a Python program to obtain length and breadth of a rectangle [2]
and calculate its area.

XI/CS/2019-20/SET-2 4|Pageoutof5
(C) Write a program in python to accept a character from the user and [3]
display whether it is a vowel or consonant.

(D) Write a python program to print Fibonacci series’ first 20 elements. [3]
Some initial elements of a Fibonacci series are:
0 1 1 2 3 5 8…………………

********************

XI/CS/2019-20/SET-2 5|Pageoutof5

You might also like