Sample Paper For RevisionTest
Sample Paper For RevisionTest
Grade: XI
General Instructions:
SECTION – A
Q. Do as directed: 1 X 12 = 12 marks
1
2. In the below pseudocode, determine how any times the loop is iterated?
a) 0
b) 6
c) 5
d) 4
a) True
b) 1
c) False
d) 10.0
2
9. Consider the loop given below: What will be the final value of i after the loop?
a) 10
b) 0
c) Error
d) 9
10. ____________ is a general term used to refer to viruses, worms, spyware,
adware, etc.
11. Which of the following options will not result in an error when performed on
types in Python where tp=(5,3,1,0,2)?
a) tp[1] = 5
b) tp.append(3)
c) tp1 = tp + tp
d) tp.sum()
SECTION – B
14. Draw a flowchart to determine if a student passed the exam or not. (There are 4
subject papers and the average passing is 50 or more.)
3
15. Predict the output of the following program:
17. Find out the error and correct the error in the below code:
SECTION – C
18. Write a program that generates six random numbers in a sequence created with
(start, stop, step). Then print the mean, median and mode of the generated
numbers.
20. (a) Given the dictionary D1 = {‘A’: [1,2,3], B’: [4,5,6]}, create a dictionary D2
having same keys as D1 but values as the sum of the list elements of D1
i.e. D2 = {‘A’: 6, B’:15}
OR
4
(b) Write a Python program that inputs 3 numbers A, B and C from user, and
arrange them in ascending order and print smallest number, next higher
number and highest number from it.
21. Write a program that creates and prints the list [‘a’, ‘bb’, ‘ccc’, ‘dddd’ ,,,,,,,,,,,]
that ends with 26 copies of the letter z, using a for loop.
SECTION – D
22. (a) Write a program that creates a tuple storing first 9 terms of Fibonacci Series.
(b) Write a program using nested loops to produce the following output:
B B
C C C
D D D D
E E E E E
5
SECTION – E
Q. Do as directed: 5 X 2 = 10 marks
OR
25. (a) Write a program to create a nested tuple for 5 teams which stores the
information as mentioned below e.g. ((“India”, 4, 2, 6), …….)
(i) Prompt the user to enter team name, number of matches won, no of
teams lost
(ii) Calculate the total matches played by a team and add it as a 4th member
in the tuple
(iii) Print the nested tuple.
(b) What is Malware? What type of damage can they cause to the computer?
*********************