Home > B.Sc (CS) > Quizzes > Python Programming Basics
Python Programming Basics
Fast practice, instant feedback. Timer auto-submits when time’s up.
Avg score: 17% Most missed: “Which predefined Python function is used to find length of string?”
Python Programming Basics
Time left 00:00
25 Questions

1. PVM stands for ________
2. Suppose list1 is [3, 5, 25, 1, 3], what is min(list1)?
3. Which of the following functions does not accept any argument?
4. Which one of these is floor division?
5. Suppose t = (1, 2, 4, 3), which of the following is incorrect
6. Which of these is false about recursion?
7. How many except statements can a try-except block have?
8. __________ module displays the byte code instruction in human readable format.
9. Which one of the following has the highest precedence in the expression?
10. Where is function defined?
11. Which of these in not a core data type?
12. Which of the following functions will not result in an error when no arguments are passed to it?
13. To shuffle the list(say list1) what function do we use?
14. Pypy is a just in time compiler used to ________________ execution of the python program.
15. Python supports the creation of anonymous functions at runtime, using a construct called __________
16. How are variable length arguments specified in the function heading?
17. What will be the output of the following Python code? x = ['ab', 'cd'] for i in x: i.upper() print(x)
18. Suppose t = (1, 2, 4, 3), which of the following is incorrect?
19. To read the next line of the file from a file object infile, we use ____________
20. What is the type of sys.argv?
21. When will the else part of try-except-else be executed?
22. To add a new element to a list we use which command?
23. What will be the output of the following Python expression? round(4.5676,2)?
24. What is output of 3*2**2?
25. Which is the function used to display the datatype?