Computer Science - Informatics Practices Class XI/XII Python List Solved Test Part 9

 

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

Most Recently Published

File Handling Test 6

 File Handling Test 6 Q1 . Do we need to use the close() function when we use 'with' statement to open a file? Q2. Which mode you wi...

CS - IP Assignment/Worksheet