MCQ Answer

What is 'pass' in python?

What is 'pass' in python?

पायथन में 'pass' क्या है?
Topic : Operators Expressions and Python Statements

A. No Operation

B. No Action

C. Null Statement

D. Placeholder




Correct Answer is :

C. Null Statement



Explanation

pass statement is sued to represent Null Statements

Example:

for a in range(1,11):
    if a%3==0:
        pass
    else:
        print(a)
Hear it will print only integer between1 to 10 which are not divisible by 3. i.e. (1,2,4,5,7,8,10)
Online Exam Quiz for One day Exam Online Typing Test CCC Online Test 2026 Best Computer Training Institute in Prayagraj (Allahabad) Best Java Training Institute in Prayagraj (Allahabad) Best Python Training Institute in Prayagraj (Allahabad) O Level Online Test in Hindi Best Website and Software Company in Allahabad