Computer Science - Informatics Practices Class XI/XII Python List Solved Test Part 9
Q1. Write a program to check whether a number (accepted from user) is present in a list.
Q2. Name a function which is used to find the largest number from a
list.
Q3. ______ function returns the smallest value from the list.
Q4. max() function works in a list which have all values of same data
type. (T/F)
Q5. Write the full form of ASCII value.
Q6. ASCII value of ‘A’ is ______.
Q7. ASCII value of ‘b’ is ______.
Q8. Write the output of the following:
a = [11,42,31,14]
print(max(a))
print(min(a))
print(a.index(42))
Q9. Write the output of the
following:
a = [11,42,31,'a',14]
print(max(a))
Q10. Write
the output of the following:
a = ['amit','Amit','Amita']
print(max(a))
print(min(a))
No comments:
Post a Comment