SSC MTS EXAM

SSC

PHYSICAL GEOGRAPHY

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
What is a pass?
A
Something that connects a river and a mountain
B
A natural route across a mountain peak
C
The name of a Himalayan Glacier
D
None of these
Explanation: 

Detailed explanation-1: -In Python, the pass keyword is an entire statement in itself. This statement doesn’t do anything: it’s discarded during the byte-compile phase. But for a statement that does nothing, the Python pass statement is surprisingly useful. Sometimes pass is useful in the final code that runs in production.

Detailed explanation-2: -So pass simply means to do nothing and just go on with processing the next line. Summary: return None is (or can imagined to be) always implicitly added below the last line of every function definition. It can also only appear in functions and immediately exits them, returning a value (or None as default).

There is 1 question to complete.