Posts

Showing posts from August, 2021

MCQ ON PYTHON

 Python MCQ’s 1. Is Python case sensitive when dealing with identifiers? a) yes 2 3 4 d) _ 5 Why are local variable names beginning with an underscore discouraged? a) they are used to indicate a private variables of a class b) they confuse the interpreter   c) they are used to indicate global variables d) they slow down execution 6 Which of the following is not a keyword? a) eval b) assert 7 8 9 10 Which of these in not a core data type? a) Lists b) Dictionary c) Tuples d) Class   11 Given a function that does not return any value, What value is thrown by default when executed in shell. a) int b) bool c) void d) None 15 What will be the output of the following Python code snippet?   5.>>>example("hello") a) indentation Error b) cannot perform mathematical operation on strings c) hello2 19 . What is the average value of the following Python code snippet?   a) 85.0 b) 85.1 c) 95.0 d) 95.1 20. What is the ret...