COMPUTER SCIENCE AND ENGINEERING
DATA STRUCTURES
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
|
int
|
|
bool
|
|
void
|
|
none
|
Detailed explanation-1: -2. Given a function that does not return any value, What value is thrown by default when executed in shell. Explanation: Python shell throws a NoneType object back.
Detailed explanation-2: -Given a function that does not return any value, what value is shown when executed at the shell? Explanation: Python explicitly defines the None object that is returned if no value is specified.
Detailed explanation-3: -Void (NonValue-Returning) functions: Void functions are created and used just like value-returning functions except they do not return a value after the function executes.
Detailed explanation-4: -#Ans : A Explanation: If return statement is not used inside the function, the function will return None. So, option A is correct.
Detailed explanation-5: -Python id() function returns an identity of an object. This is an integer which is guaranteed to be unique.