1. What is the maximum possible length of an identifier in Python? 31 characters 63 characters 79 characters none of the mentioned 2. Following set of commands are executed in shell, what will be the output? >>>str="hello" >>>str[:2] hel he Lo olleh 3. What is the maximum possible length of an identifier in Python? 1. 31 characters 2. 63 characters 3. 79 characters 4. none of the mentioned 4. What is the return type of function id ? 1. int 2. float 3. bool 4. dict 5. Which of the following results in a SyntaxError ? 1. ' ''Once upon a time…'', she said. ' 2. ''He said, 'Yes!' '' 3. '3\' 4. '' That's okay '' 6. Which of the following is not a complex number? 1. k = 2 + 3j 2. k = complex(2) 3. k = 2 + 3I 4. k = 2 + 3J 7. Which of the following is incorrect? 1. k = 0b101 2. k= 0x4f5 3. k = 19023 4. k = 0o3964 8. What is the output of the code: print(bool('False')) 1. False 2. True 3. SyntaxError 4. k = 0 9. Out of List and Tuple which is mutable ? 1. List 2. Tuple 3. Both 4. None 10. Are string references mutable ? 1. Yes 2. No 11. Are string objects mutable ? 1. Yes 2. No 12. Is there a do – while loop in Python ? 1. Yes 2. No 13. In Python which is the correct method to load a module ? 1. include math 2. import math 3. #include 4. using math 14. What is the name of data type for character in Python ? 1. chr 2. char 3. str 4. None Of The Above
No comments:
Post a Comment
If you have any doubts, let me know.