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

PSS Computer 11th (Fa3)

The document contains a series of questions for a class XI examination conducted by Patriot Shikshan Sansthan, Unnao. It includes one-word answer questions, programming tasks, and short answer questions related to lists, strings, and data types in Python. The questions assess students' understanding of basic programming concepts and string manipulations.

Uploaded by

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

PSS Computer 11th (Fa3)

The document contains a series of questions for a class XI examination conducted by Patriot Shikshan Sansthan, Unnao. It includes one-word answer questions, programming tasks, and short answer questions related to lists, strings, and data types in Python. The questions assess students' understanding of basic programming concepts and string manipulations.

Uploaded by

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

PATRIOT SHIKSHAN SANSTHAN, UNNAO

F. A.: III
CLASS: XIth

Question 1. One Word Answer Questions . (Any 5) 1


a. List can contain values of these types.
b. Which statement will return the last element of a list with 5 elements?
c. If (L=|1,2|) then (L\cdot2) will yield
d. If (L.1=[1,3,5]) and (1.2=[2,4,6]) then L1+L2 will yield
e. Which of the following can add only one value to a list?
f. Which of the following can add a list of elements to a list ?

Question 2. One Word Answer Questions . (Any 5) 1


a. What is the output of the following code?
str1 = "Mission 999";
str2 = "999"
print(str1.isdigit(), str2.isdigit())

b. Question 7: Which method should I use to convert String "Python programming


is fun" to "Python Programming Is Fun"?

c. Guess the correct output of the following String operations:


str1 = 'Wah'
print(str1*2)

d. What is the output of the following string operation?


print(str.isalnum())
str = "My roll no. is 12"

e. Question 10: Select the correct output of the following String operations:
str1 = 'Waha'
print (str1[:3] + 'Bhyi' + str1[-3:])
f. Which function will removes all leading and trailing spaces from a string?

Question 3. Programs . 3
a. Write a program that inputs two lists and creates a third, that contains all
elements of the first followed by all elements of the second.
b. Write a program that removes all capitalization from the string.
c. Write a program to count the frequency of a given element in a list of a
number.

Question 4. Short Answer Questions . 3


a. What is the difference between sort() and sorted()?
b. What are list slicing?
c. What do you understand by mutability?

Question 5. Short Answer Questions . 3


a. What are the data type?
b. What is the difference between error and exception?
c. What is the method to slice the string?
d. What is empty statement and simple statement?

You might also like