Question Bank of Class XI (Comp. SC.)
Question Bank of Class XI (Comp. SC.)
Q12. How is clear() different from del<dict> statement in Dictionary? Give example. [2]
Q13. Predict the output of the following Python code fragments: [2 x 2 = 4]
Per<=49 Fail
Q19. Write a program in Python to print the table of any number input by the user and display the
table on the screen in the following form: [3]
2x1=2
2x2=4
----------
----------
2 x 10 = 20
Q20. Write a program in Python that reads a string and checks whether it is a palindrome (i.e.
String from left to right and right to left both are equal) string or not. [3]
Q21. Write a program in Python to print the string in the form of: [3]
P N
Y O
T H
H T
O Y
N P
Q22. How creating a list by initializing a list is different from making a true copy of list on Python?
Write a program in Python to show the difference. Also show output. [3]
Q23. What is the difference between append(), extend() and insert() function in the list. Write
small code of each in Python. [3]
Q24. Write a program in Python that creates a tuple string first 9 terms of Fibonacci series. [4]
Q25. Write a program in Python to accept a string from the user and print its each element along
with its backward and forward indexing. Also show output. [4]
Q26 Write a program in Python to create a dictionary containing names of competition winner
student as keys and number of their wins as values. [4]
*********************************************************