CBSE-XIi –NEET_RISE_APEX
Date: 11.01.2025
Maximum COMPUTER SCIENCE (083) Time: 180
Marks:70 minutes
General Instructions:
• This question paper contains 37 questions.
• The paper is divided into 5 Sections—A, B, C, D and E.
• Section A consists of 21 questions (1 to 21). Each question carries 1
Mark.
• Section B consists of 7 questions (22 to 28). Each question carries 2
Marks.
• Section C consists of 3 questions (29 to 31). Each question carries 3
Marks.
• Section D consists of 4 questions (32 and 35). Each question carries 4
Marks.
• Section E consists of 2 questions (36 to 37). Each question carries 5
Marks.
• All programming questions are to be answered using Python language
only.
Q.N SECTION-A MAR
o KS
1. State True or False: 1
The Python interpreter handles runtime errors during code
execution.
2. Identify the output of the following code snippet: 1
text = "MYSQLDATABASE"
text=text. replace('DATA' , ’d')
print(text)
(A) MYSQLDATABASE
(B) MYSQLDBASE
(C) DATAMYSQL
(D) MYSQLdBASE
3. Which of the following expressions evaluates to not(False)? 1
(A) not(True) and False
(B) True or False
(C) not(False or True)
(D) True and not(True)
4. What is the output of the expression? 1
sub='Python Program'
print(sub.partition(‘ ‘)) (single space)
(A) ['Python', ' ', 'Program']
(B) ['Python', 'Program']
(C) ('Python', ' ', 'Program')
(D) Error
5. 1
What is the output of the expression?
sub='Python Program'
print(sub.partition(‘’)) (no space)
(A) ['Python', ' ', 'Program']
(B) ['Python', 'Program']
(C) ('Python', ' ', 'Program')
(D) Error
6. What will be the output of the following code snippet? 1
message= "Python Programming"
print(message[-1: :-3])
7. What will be the output of the following code? 1
l1 = [1, 2, 3]
l2 = [1, 2, 3]
l1 += [5]
print(l1 is l2)
print(l1==l2)
(A) True (B) False (c) False (d) True
False False True True
8. Which of the following belongs to complex datatype . 1
(a) -12+2J (b) 4.0+j3 (c) 3+i4 (d) -2.05I
9. The below given expression will evaluate to 1
22//5+2**2**3%12
(a)5 (b) 10 (c) 15 (d) 20
10. What does the list.pop(x) method do in Python? 1
(A) Removes the element at index x from the list
(B) Removes the first occurrence of value x from the list
(C)Removes all occurrences of value x from the list
(D)Removes the last occurrence of value x from the list
11. If a table that has three (3) alternate keys. How many 1
Candidate keys will this table have?
(A) 3 (B) 2 (C) 1 (D) 4
12. Write the missing statement to complete the following 1
code:
file = open("example.txt", "r")
data = file.read(100)
_________________ #Move the file pointer to the beginning of
the file
next_data = file.read(50)
file.close()
13. It is raised when an operator is supplied with a value of 1
incorrect data type.
(a) IndexError (b) TypeError (c) ZeroDivisionError (d)
NameError
14. State whether the following statement is True or False: 1
The finally block in Python is executed only if no exception
occurs
in the try block.
15. What will be the output of the following code? 1
no = 125
def add():
no = no + 2
print(no,end='#')
add()
no=7
print(7,end='%')
(A) 127%7#
(B) 127%7#
(C) 7%125#
(D) error
16 Which SQL command is used to increase the cardinality of an existing table? 1
17. Which protocol is used to download messages to their 1
computers from the Internet?
(A) HTTP (B) POP3
(C) PPP (D) SMTP
18. Which network device is used to divide the network into 1
segments
(A) Hub
(B) Gateway
(C)Switch
(D)Repeater
19. Which switching technique breaks data into smaller 1
packets for
transmission, allowing multiple packets to share the same
network
resources.
Q20 and 21 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
20. Assertion: for the given expression 1
v1='1'
v2= 1
v3= v1==v2 #value of v3 is False
Reasoning: Integer value cannot be compared with string
value by using == operator
21. Assertion (A): A SELECT command in SQL can have both 1
WHERE and HAVING clauses.
Reasoning (R): WHERE and HAVING clauses are used to
check conditions, but, these cannot be used
interchangeably.
SECTION-B
22. Find the errors from the following code and rewrite the 2
code:
N=input("enter no"))
IF n%3=0
Print(N, " is a multiple of 3")
Else:
Print(N, " is not a multiple of 3"
23. Give two examples of each of the following: 2
(I) membership operators (II) logical operators
24. How is a mutable object different from an immutable object 2
in Python?
Identify one mutable object and one immutable object from
the following:
(1,2), [1,2], {1:1,2:2}, ‘123'
25. (i) Expand the following terms: 2
TCP/IP , URL
(ii) Give one difference between MAC Address and IP
Address.
26 Write a function, lenWords(STRING), that takes a string as 2
an argument and returns a tuple containing length of each
word of a string.
For example, if the string is "Come let us have some fun",
The tuple will have (4, 3, 2, 4, 4, 3)
27. (i) What constraint should be applied on a table column 2
so that NULL is not allowed in that column,
but duplicate values are allowed.
(ii) Which operator will be used for pattern matching?
28. 2
SECTION C
29. Write a Python function that displays all the words that begin and end with 3
consonant from a text file "Emails.txt".
30. i) List one advantage and disadvantage of satellite communication 3
(ii) Expand VoIP and what is the functionality?
31. 3
SECTION D
32. 4
33 4
34 4
35. 4
SECTION E
36 2+3
37 1x5=
5