Home > BCA > Quizzes > Python Programming Test
Python Programming Test
Fast practice, instant feedback. Timer auto-submits when time’s up.
Avg score: 22% Most missed: “What will be the output of the following Python code?”
Python Programming Test
Time left 00:00
25 Questions

1. Suppose list1 is [3, 5, 25, 1, 3], what is min(list1)?
2. Which of the following functions will not result in an error when no arguments are passed to it?
3. ___________ represents group of elements or items.
4. What will be the output of the following Python function any([2>8, 4>2, 1>2])?
5. Which of the following is a Python tuple?
6. Program code making use of a given module is called a ______ of the module.
7. What will be the output of the following Python expression? int(1011)?
8. What is the value stored in sys.argv[0]?
9. What will be the value of the following Python expression? float(4+int(2.39)%2)
10. To shuffle the list(say list1) what function do we use?
11. Which of these is false about recursion?
12. How many except statements can a try-except block have?
13. Which are the advantages of functions in python?
14. __________ module displays the byte code instruction in human readable format.
15. Which of the following will run without errors?
16. Which of the following functions does not accept any argument?
17. To read two characters from a file object infile, we use ____________
18. Which of the following commands will create a list?
19. Where is function defined?
20. What is the data type of (1)?
21. What will be the value of the following Python expression? 4+2**5//10
22. Which of the following expressions is an example of type conversion?
23. Which of the following functions is a built-in function in python?
24. Suppose list1 is [2, 33, 222, 14, 25], What is list1[-1]?
25. What is Instantiation in terms of OOP terminology?