0% found this document useful (0 votes)
15 views4 pages

Cs Grga Half Yearly Question Paper

Uploaded by

hindu6132
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)
15 views4 pages

Cs Grga Half Yearly Question Paper

Uploaded by

hindu6132
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/ 4

G.

R Global Academy
Term -1 Exam(2024-25)
Class - XI
Subject- CS with Python (083)
Time: 3 hrs M.M: 70

General instructions:

All questions are compulsory.


Question paper Is divided into 4 sections A, B, Cand D.
Section A:Unit-1
Section B: Unit-2
Section C: Unit-3
Section D: Unit-4

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]

(g) Difference between break and continue statement. [1]


Q2. (a) Write an algorithm of find the 9 number is present in the list [4,8,9,6,7,9,5,4,41] ||2]
or not.

(b) What do you mean of:


Join() (2]
() Swapcase()
(c)Write a program to enter your name in small letter and convert into capital. [2)
(d) How we can replicate the string. Explain with example. [1]

SECTION-B
a.3
(a)What is flow chart. Name it.
(b) What are the advantages of Python. write any two point. 2

(c)What is full form of ASCIl and ISCII. 1

(d) Draw a flow chart to display sum of the following series: 2

S=1| +21 +3l+.. 101

(e
What is the difference between /and //. Explain with example 1

(f) What is the extension of Python Programming Language. 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

(e) String is immutable. Why? 2

Section-D ?o
(a) Suppose L=[10,["few", "facts","fun"],3,'good"] 2

Consider the above list and answer the following:


1. L[3:]
2. L[1:5]
3. L[1][1]
4. L[1][31
WAP-to sort the list [2.45,12,48,59,65,49] with bubble sort. [21
(b)
Define the terms explain with python code: (1x4]
(c)
1.count()
|2.remove()
3. extend()
4. min()
(d) What is the use of ** operator. Explain with example. 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

You might also like