Skip to content
#1. In file handling, what does this terms means ‘r’,’a’?
#2. Which function is used to read all the characters?
#3. To open a file c:scores.text for writing, we use
#4. What is the type of int?
#5. Python supports the creation of anonymous functions at runtime, using a construct called __________
#7. Which are the advantages of functions in python?
#8. Suppose list1 is [3,5,25,1,3] what is min(list1)?
#9. Suppose list1 is [3,5,25,1,3], what is max(list1)?
#10. What is the default value of encoding in encode() windows?
#11. How are variable length arguments specified in the function heading?
#12. Which function is used to write all the characters?
#13. To open a file c:scores.txt for appending data, we use
#14. ________ exceptions are raised as a result of an error in opening a particular file.
#15. Which of the following aren’t defined in the math module?
#16. Which of the following is incorrect?
#17. To insert 5 to the third position in list1, we use which command?
#18. How do you get the name of a file from a file object(fp)?
#19. Which of the following is invalid?
#20. _______ represents an entity in the real world with its identify and behaviour.
#21. Which of the following is an invalid statement?
#22. To add a new element to a list we use which command?
#23. Which operator is overloaded by _invert_()?
#24. Suppose list1 is [2,33,222,14,25], what is list1[-1]?
#25. Where is function defined?
#26. Which of the following functions is a built-in-functions in python?
#27. How are keyword arguments specified in the function heading?
#28. What is the output of the expression:round(4.576)?
#29. Evaluate the expression given below if A=16 and B=15.A%B||A
#30. All keywords in the python are in
#31. The expression a[5] will match ________ characters with the previous regular expression.
#32. What does single-level inheritance mean?
#33. What is the maximum possible length of an identifier?
#34. Which of the following represents the bitwise XOR operator?
#35. Suppose list1 is [1,5,9], what is sum(list1)?
#36. Which of the following expressions can be used to multiply a given number “a” by 4?
#37. _____ is used to create an object.
#38. Suppose list1[4,3,5,2,3], what is list1[-2]?
#39. In Python case sensitive when dealing with identifiers?
#40. What is called when a function is defined inside a class?
#41. Which of these is not a core datatype?
#42. Which of the following best describes inheritance?
#43. Suppose listExample is [‘h’,’e’,’l’,’l’,’o’], what is len(listExample)?
#44. What does 3^4 evaluate to?
#45. What datatype is the object below?L=[1,23,”hello”,1]
#46. What is the output of the following expression if the value of x is 34?print(“%f%x”)
#47. How many keyword arguments can be passed to a function in a single function call?
#48. Select all options that print hello-how-are-you
#49. How do you get the current position within the file?
#50. Operators with the same precedence are evaluated in which manner?
#51. What is answer of this expression, 22%3 is?
#52. Say s=’hello’ what will be the return value of type(s)?
#53. The assignment of more than one function to a particular operator is _________
#54. Can one block of except statements handle multiple exception?
#55. The output of the expression is:bin(29)
#56. Which of the following will run without errors?
#57. Which among the following list of operators has the highest precedence?+,-,*,%,/,,|
#58. What is the biggest reason for the use of polymorphism?
#59. Suppose list1 is [1,3,2], What is list1*2?
#60. What is returned by math.ceil(3,4)?