Python MCQs on variable and operators: SET 2
11. What is the output of the following code : print 31//2 A. 15 B. 15.5 C. 15.0 D. Error ...
Read more11. What is the output of the following code : print 31//2 A. 15 B. 15.5 C. 15.0 D. Error ...
Read more51. What will be the output of the following Python code? print("xyyzxyzxzxyy".count('yy')) a) 2 b) 0 c) error d) none ...
Read more41. What will be the output of the following Python code? print("abc DEF".capitalize()) a) abc def b) ABC DEF c) ...
Read more31. What is “Hello”.replace(“l”, “e”)? a) Heeeo b) Heelo c) Heleo d) None Answer: ...
Read more21. What will be the output of the following Python statement? >>>chr(ord('A')) a) A b) B c) a d) Error ...
Read more11. What will be the output of the following Python code? class father: def __init__(self, param): self.o1 = param class ...
Read more1. What will be the output of the following Python statement? >>"a"+"bc" a) a b) bc c) bca d) abc ...
Read moreWhat is a Factorial in java? The multiplication of all integers smaller than or equal to n is called Factorial. ...
Read more© 2020 Getting Placed