Cs Grga Half Yearly Question Paper
Cs Grga Half Yearly Question Paper
R Global Academy
Term -1 Exam(2024-25)
Class - XI
Subject- CS with Python (083)
Time: 3 hrs M.M: 70
General instructions:
SECTION-A
(a)Write the fullform of IDLE. [1]
Q1,
1. Define the string in python with example. (2)
(b (2)
2. What will be the output of the following code snippet?
X,Y=16,8
if (X+Y>=2):
print("True")
else:
print("False")
(c
What is the use of thefollowing functions: [2
1, rstrip()
2. title()
What does each of the following expressions evaluate to? [2
(d) Suppose that L="hello python'".
a. L[1:-3:2]
b. L[1:9:3]
c. L[-6:-1:-2)
d. L[:-1]
How Many times is the word HELLO' printed in the following statement: [1)
(e) S="python rocks"
for ch in s:
print("HELLO")
() Write the program to find the maximum value in the list [22,18,74,58,62,34,). (2]
SECTION-B
a.3
(a)What is flow chart. Name it.
(b) What are the advantages of Python. write any two point. 2
(e
What is the difference between /and //. Explain with example 1
(8)
Difference between append() and insert(). explain with example. 2
(h)
What do youmean by Alias? 1
SECTION-C
Q.4 a. Write the most appropriate list method to perform the following tasks: [2]
a. Delete a given element from the list
b. Get the position of an item in the list
c. Delete the 3rd element from the list
d. Add elements in the list at the end of a list.
b. Convert the following into:
(10010) to (decimal number) [1]
i. (26), to (binary number)
i. (B2),, to (Octal number) [2]
iv. (11001) to (octal number) [1
C. Write a program to perform linear search on the given list: (2]
List=[10,51,2,18 4,31,13,5,23,64,29]
d. Write a program to calculate mean of given list of numbers. [2]
e 1. Write the program to sum of the even number between 10 to 100. [2)
2. make the program of the pattern: [2X2=4]| -
1 2
1 2 3
1 2 3 4
1 2 3 45
Section-D ?o
(a) Suppose L=[10,["few", "facts","fun"],3,'good"] 2
e
What are the difference between string and list? 2
Find the output of the following:
() 2
(e) WAP to enter the data by user and check this number is positive or negative or 2
zero
(h Write the 4 function of the list. 2
Write a program to check the number is divisible by 4 and 5 2