0% found this document useful (0 votes)
23 views3 pages

KVBRP Xi Cs Half Yearly 2024-25

The document is a question paper for the XI Half Yearly Examination in Computer Science at PM Shri Kendriya Vidyalaya Berhampore, covering various topics in Python programming and computer science concepts. It consists of 35 questions divided into five sections, with varying marks assigned to each section. The questions include multiple-choice, programming tasks, and theoretical questions related to Python and computing principles.

Uploaded by

tiwarikartik187
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
23 views3 pages

KVBRP Xi Cs Half Yearly 2024-25

The document is a question paper for the XI Half Yearly Examination in Computer Science at PM Shri Kendriya Vidyalaya Berhampore, covering various topics in Python programming and computer science concepts. It consists of 35 questions divided into five sections, with varying marks assigned to each section. The questions include multiple-choice, programming tasks, and theoretical questions related to Python and computing principles.

Uploaded by

tiwarikartik187
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

PM SHRI KENDRIYA VIDYALAYA BERHAMPORE

XI HALF YEARLY EXAMINATION (2024-2025) SUBJECT: COMPUTER SCIENCE (083)


Time: 3 Hours M. Marks: 70
General Instructions:
• Please check this question paper contains 35 questions.
• The paper is divided into 4 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 ____ Memory stores those parts of data and instructions that are being repeatedly used by the CPU.
(i) RAM (ii) Cache memory (iii) ROM (iv) Secondary Memory
2 What will the following expression be evaluated to in Python?2**2**3
a) 16 b) 256 c) 64 d) 512
3 State True or False for the following statement: “Python does not support dynamic typing”
4 Consider the following logic gate diagram

What must be the value of x for which the above diagram is accurate?
a)1 b) 0 c) both a and b d) Error in gates
5 8 GB of data is equivalent to :
a) 8* 2056 bits b) 8 * 1024 bytes c) 233 bytes d) 233 bits
6 Find (11101.11)2 = (?)16
7 Select the correct output for the following code:

a) 3 6 9 b) 1 2 4 6 7 8 9 c) 1 2 4 5 7 8 d) 2 4 6 8
8 The following code produces an error:
a=int(input(“Enter a number”))
c=a+b
print (b)
What is the name of the error? a) Name Error b) Undefined Error c) Type Error d) Syntax Error
9

Find the output of the following code: a) 0 b) -7 c) 6 d) 7


10 Which of the following is not a legal string operation:
a. ‘11’+ ‘-A’ b . ‘11’ * ‘A’ c. ‘11’ + ‘12’ d. ‘A’+’B’
11 By default, the values of range () in the for loop starts from: a)-1 b) 1 c) 0 d) None
12 Which of the following is/are valid identifier?
a) while b) mail2you c) #code d) _size e) 2024AD
13 _____ translator converts line by line from high level language to machine language
14 Expand the following abbreviations: (i) EPROM (ii) ASCII
15 What will be the value of y after following code fragment is executed?
x=10.0
y=(x<100.0)and x>=10
(a)110 (b) True (c)False (d)Error
16 Ram wanted to make a program which takes in two numbers from the user and print the two numbers
as shown below:
Input: Enter number 1=>23
Enter number 2=>24
Output: 23.0,24.0
He wrote the following code but doesn‟t know what the last line is supposed to be
a=float(input(‘Enter number 1=>’))
b=float(input(‘Enter number 2=>’))
...
What would be the last line of his code which produces his desired output?
a. print(a+b) b. print(a,b) c. print('a', ', ', 'b') d. print(a,b,sep=', ')
The following questions 17 and 18 are Assertion-Reasoning based, answer the questions bychoosing one
of the following responses:
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.
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.
Reason (R): The pow() function can raise a number to a fractional power, which can be used to calculate
square roots..
18 Assertion (A): Variables are not containers in Python
Reason (R): Variables in Python don't directly store the data but they reference objects in memory
SECTION B
19 Differentiate between (i)break and continue (ii) String and List
20 Differentiate between Membership and Identity operator in Python with suitable Example for each
21 State and prove De-Morgan’s Theorem using Truth table.
22 Rewrite the code using for loop:
X = -3
while ( X < = 30):
print(X)
X+=3
23 Given the following code, what will be the output of x after the following code completes execution:

24 Write a program to print the factorial of a number.


25 WAP to print the Fibonacci series. Take the number of terms from the user.
SECTION-C
26 Write a program to calculate digits and letters in a string.
27 What are utility softwares? Give one example of utility software.
How is Object code different from Source code?
28 Write a program to check whether a number is prime number or not.
29 Write a program to obtain the following pattern for “n” (input) rows:
A
AB
ABC
A B C D, and so on. (say, n=4)
OR
Write a program to obtain the following pattern for input “n” (say, n is 5):
12345
1234
123
12
1
30 Find the output of the following code:

SECTION-D
31 Write a program to check whether a number is a palindrome or not.
32 Find the output of the following code:
my_string = 'Jhunjhunu'
print(my_string[:3])
for i in range(len(my_string)):
print(my_string[i].upper(),end="@")
print()
print (my_string)
print (my_string[3:6])
SECTION-E
33 (i) Obtain output of the following: (2 marks)
a = "Year 2024 @ Best"
b = a.partition('2')
a = a.split('2')
c = a[0] + ". " + a[1] + ". " + a[2]
print(b)
print(c)

(ii) Write a program to obtain the following sum of the series: (3 marks)
2 3 4 n
Sum=1- x + x - x + x …x
Given x and n as natural numbers input from user. (Example: Input x=2 n=2, Output: Sum of series: 3)
34 (i) WAP to for an arithmetic calculator (+,-,*,/) by taking the two (float) numbers from the user. (3 marks)
(ii) Make the logic circuit diagram for the following expression. (A’+B’).(A+B’) (2 marks)
35 (i) Explain the following String functions in Python using suitable examples. (3 marks)
a) find() b) count() c) index()
(ii) Write a program which checks whether a string is a palindrome or not. (2 marks)

You might also like