Mock Test XI C.S. Annual
Mock Test XI C.S. Annual
CLASS : XI
SUBJECT : COMPUTER SCIENCE (083)
TIME: 3 Hrs. Max. Marks: 70
GENERAL INSTRUCTIONS:-
● The paper is divided into 5 Sections- A, B, C, D and E.
● Section A, consists of 18 questions (1 to 18). Each question carries 1 Mark.
● Section B, consists of 7 questions (19 to 25). Each question carries 2 Marks.
● Section C, consists of 5 questions (26 to 30). Each question carries 3 Marks.
● Section D, consists of 2 questions (31 to 32). Each question carries 4 Marks.
● Section E, consists of 3 questions (33 to 35). Each question carries 5 Marks.
● All programming questions are to be answered using Python Language only.
Section A
1. State True or False: [1]
Meaningful content extracted from data is called information.
2. Which translator translates one line at a time? [1]
(A) Interpreter
(B) Translator
(C) Simulator
(D) None of these
3. Which of the following is a way to represent an algorithm? [1]
(A) Pseudocode
(B) flowchart
(C) None of these
(D) Both (A) & (B)
4. The precise step by step instructions given to perform a task are called [1]
(A) Flowchart
(B) algorithm
(C) SDLC
(D) all of these
5. What do we use to define a block of code in the Python language? [1]
(A) Key
(B) Brackets
(C) Indentation
(D) None of these
6. Study the following statement:
>>>”a”+”bc”
What will be the output of this statement? [1]
(A) a+bc
(B) abc
(C) abc
(D) a
7. _____ occurs when each statement of the block does not have the same indentation. [1]
(A) Logical error
(B) Syntax error
(C) Run time error
(D) Indentation error
1 P.T.O
8. If the value of a = 20 and b = 20, then a+ =b will assign ____ to a. [1]
(A) 40
(B) 30
(C) 20
(D) 10
9. Which of the following is not a valid identifier? [1]
(A) Mybook
(B) @book
(C) _book
(D) book23
10.By default, the values of range () in the for loop start from [1]
(A) -1
(B) 0
(C) 1
(D) 10
11.What is displayed when we print an empty string? [1]
(A) 0
(B) 1
(C) Name of the string
(D) Blank space
12.Write the output of the following code: [1]
>>> L=[ 'w' , 'e' , ' l' , ' c' , 'o' ,'m' , ' e' ]
>>> print (len(L))
(A) 7
(B) 8
(C) 9
(D) None
13.Which of the following is not a function of the tuple? [1]
(A) update( )
(B) min( )
(C) max( )
(D) count( )
14.sorted() can be used to sort the following: [1]
(A) Keys in a dictionary
(B) Dictionary according to the values
(C) Lists
(D) All of these
15.Exploring appropriate and ethical behaviors related to online environments and digital media [1]
(A) Cyber ethics
(B) Cyber security
(C) Cyber safety
(D) Cyber law
16.An antivirus software protects against [1]
(A) VIRUS attack
(B) Phishing and pharming
(C) Both (A) & (B)
(D) None of these
Q17 and 18 are ASSERTION AND REASONING based questions. Mark the correct choice as
(A) Both (A) and (R) are true and (R) is the correct explanation of (A)
(B) Both (A) and (R) are true but (R) is not the correct explanation of (A)
2 P.T.O
(C) (A) is true, but (R) is false
(D) (A) is false, but (R) is true
17.Assertion (A): The pow() function in Python can be used to calculate the square root of a number. [1]
Reasoning (R): The pow() function can raise a number to a fractional power, which can be used to
calculate square roots.
18.Assertion (A): Python modules are stored in files with a “.py” extension, and they allow you to
logically organize your Python code. [1]
Reasoning (R): The “.py” extension is commonly used for Python code files, and modules provide a
way to organize code by grouping related functions, classes, and variables together.
Section B
19.Define [2]
(i) POST (ii) PROM
OR
(i) What do you mean by registers?
(ii) Why is the Fetch-Execute cycle used inside a computer?
20.Define Operating system. Give the names of any three operating systems. [2]
21.Draw a flowchart to calculate the sum of two numbers. [2]
OR
Draw a flowchart to convert temperature from Fahrenheit to Celsius.
22.What will be the output of the following statements when inputs are a = 30, b = 20, c = 30? [2]
print(a<b)
print(b<=c)
print(a<b<=c)
23.What do you mean by debugging? [2]
OR
What do you mean by runtime error? [2]
24.Write a short note on a while loop. [2]
OR
Rewrite the code after correcting the errors.
a = int ["Enter a number for a:"]
for in range (1, 15)
if a = b
print "Equal numbers"
else
print "Non equal numbers"
25.Explain types of digital footprint. [2]
Section
26.Write a pseudocode to find the largest of the three numbers, taken as input from the user. [3]
27.If water boils at 100 degrees C and freezes at 0 degree C, write a program to find out what is the
boiling point and freezing point of water on the Fahrenheit scale.
[Use formula for conversion: T(°F) = T(°C) × 9/5 + 32] [3]
OR
Write a python program to convert 5000 secs to hr:mm:ss format. Print the calculated time.
28.Suppose you are collecting money for something. You need ₹ 200 in all. You ask your parents, uncles
and aunts as well as grandparents. Different people may give either ₹ 10, ₹ 20 or even ₹ 50. You will
collect till the total becomes at least ₹ 200. Write the algorithm. [3]
29.What do you understand about Net Etiquettes? Explain any two such Etiquettes. [3]
30.List and name any three types of cyber-crimes. [3]
3 P.T.O
Section D
31.Consider the following Python code snippet: [4]
input_list = [1, 2, 3, 4, 4, 5, 6, 6, 7, 8, 9, 9, 1o]
elements - []
for element in input_list:
if input_list.count(element) == 1:
elements.append(element)
print (elements)
(i) Explain the purpose of the ‘fund’ function. (1 mark)
(ii) What is the role of the ‘for’ loop in the ‘fund’ function? (1 mark)
(iii) Describe the conditions in the ‘if’ statement within the ‘for’ loop. (1 mark)
(iv) Write the output of the code snippet. (1 mark)
32.Create a dictionary, and count the frequency of each character, i.e., the number of times each character
appears. [4]
Section E
33.Write a program to find the grade of a student when grades are allocated as given in the table below:
[5]
Percentage of Marks Grade
Above 90% A
80% to 90% B
70% to 80% C
60% to 70% D
Below 60% E
4 P.T.O