ST.
BRITTO’S ACADEMY SENIOR SECONDARY SCHOOL
PREPARATORY EXAM – JANUARY 2025
COMPUTER SCIENCE (083)
STD: XI TIME: 2 Hrs
DATE: MARKS:50
General Instructions:
1. This question paper contains two parts – Part A and B.
2. Part - A is Objective type questions of 1 mark each.
3. Part - B is Descriptive
a. Section - I is short answer questions of 2 marks each.
b. Section - II is long answer questions of 3 marks each.
c. Section-III is long answer questions of 5 marks each.
PART A
[Link] of 1 KB means the following number of bytes :
(a)1000 (b)964 (c)1024 (d)1064
2. Complete the sequence of following binary numbers :
100, 101, 110, ............... , ................
3. Which of the following is not a valid encoding scheme for characters ?
(a)ASCII (b)ISCII (c)Unicode (d)ESCII
4. Which of the following is a valid identifier in Python ?
(a)my name (b)_myname (c)My$name (d)my-name
5. Value 0.000615 is equivalent to __________.
(a)615E3 (b)615E-3 (c)0.615E3 (d)0.615E-3
6. Select the correct output of the following String operations.
str=”my name is Anu John”
print([Link]())
(a)'My name is anu john' (b)TypeError: unsupported operand type(s) for * : 'str' and 'int'
(c)'My name is Anu John' (d)'My Name Is Anu John'
7. What is the output of the following code?
my_dict = {"apple": 3, "banana": 2, "cherry": 5}
keys = my_dict.keys()
print(keys)
(a) ["apple", "banana", "cherry"] (b) ["apple"]
(c) ["banana"] (d) dict_keys(["apple", "banana", "cherry"])
Q8, Q9 and Q10 are ASSERTION AND REASONING based questions. Mark the correct choice as
(a) Both A and R are true and R is the correct explanation for A
(b) Both A and R are true and R is not the correct explanation for A
(c) A is True but R is False
(d) A is false but R is True
8. Assertion (A): List is an immutable data type.
Reasoning (R): When an attempt is made to update the value of an immutable variable, the
old variable is destroyed and a new variable is created by the same name
in memory.
9. Assertion (A): In Python, the if-else statement can be used to execute a block of code only
if a given condition is True.
1
Reasoning (R): The else block is optional and will be executed if the condition in the if
statement is False.
10. Assertion (A): A tuple with a single element must include a trailing comma to be
correctly identified as a tuple in Python.
Reasoning (R): A tuple with one element is the same as the type of that element without
the comma.
PART B
SECTION I
11. (i)Given str1=”Hello” and str2=”Bye”, what is the output produced by the following
expressions:
(a) “Let us all say” + str1 (b) 3 * str1 + 4 * str2
(ii).What will be the output of the following code snippet?
message= "Hai Python"
print(message[-2::-2])
12. Convert the following binary numbers to decimal and hexadecimal:
(a) 1010 (b) 111010 (c) 101011111 (d) 1100
[Link] the following code and rewrite the correct one:
d=["IND":"DEL","SRI”:"COL","CHI","BEI"}
str1=""
for i in d
str1=strl+str(d[i])+"@"
str2=str1[:–1] Print (str2)
14. Write the output for the following python code:
def Change_text(Text):
T=""
for K in range(len(Text)):
if Text[K].isupper():
T=T+Text[K].lower()
elif K%2==0:
T=T+Text[K].upper()
else:
T=T+T[K-1]
print(T)
Text="Good go Head"
Change_text(Text)
15. (i)What will be the output of the following code snippet?
a,b,c=10,200,90
str1="Hello"
str2="JNV"
str3="Python"
print(a<b and a<c)
print(b>c or a>=c and a<c)
print(a<b>c)
print(str1>str2 and str2<str3)
(ii)Which one among the following statements are True?
(a) int (23.5) = =24 (b) round (23.5) ==24
(c) [Link] (23.5) ==24 (d)[Link] (23.5) ==24
2
SECTION II
16.(i) What is application software ? What are the three categories of application
software ?
(ii) Differentiate between a compiler and interpreter.
17. From the following, find out which assignment statement will produce an error. State
reason(s) too.
(a) x = 55
(b) y = 037
(c) z = 0o98
(d) 56thnumber = 3300
(e) length = 450.17
(f) !Taylor = 'Instant'
(g) this variable = 87.E02
(h) float = .17E - 03
(i) FLOAT = 0.17E - 03
18. Evaluate the following expressions .
(a) 15.0 / 4 + (8 + 3.0)
(b) not (5 > 3 or 7 < 2)
(c) 'apple' in ['banana', 'apple', 'cherry']
(d) [x**2 for x in range(5)]
(e) 3**2**2**2
(f)1+4//3**2
19. (i)What are cookies ? How are they used by websites to track you ?
(ii)What is Private browsing ? Why is it considered a better way of browsing the
Internet?
20. (i)Are these values equal? Why/why not?
(a)20 and 20.0 (b)20 and int(20)
(c)str(20) and str(20.0) (d) 'a' and "a"
(ii) Given a list L1 = [3, 4.5, 12, 25.7, [2, 1, 0, 5], 88]
(a)Which list slice will return [12, 25.7, [2, 1, 0, 5]]?
(b)Which expression will return [2, 1, 0, 5]?
(c)Which list slice will return [[2, 1, 0, 5]]?
(d)Which list slice will return [4.5, 25.7, 88]?
SECTION III
21. (i)Write a Python program to count the frequency of each character in a given string using
a dictionary.
(ii)How can you check if a dictionary is empty in Python? Write a Python program to check if
a given dictionary is empty or not.
22.(i) Write a program in python to reverse the digits of a given number.
(ii) Write a program in Python to generate Fibonacci series.
3
23. (i)Rewrite following code fragment using while loops and also predict the output:
for i in range(4) :
for j in range(5):
if i + 1 == j or j + 1 == 4 :
print ("+", end = ' ')
else :
print ("o", end = ' ')
print()
(ii) Rewrite following code fragment using for loops and also predict the output:
x=10
y=0
while x > y:
print (x, y)
x=x-1
y=y+1
*******************************************************************************