Report Bug

QusThe snippet that has to be used to check if “a” is not equal to “null” is Qus The snippet that has to be used to check if “a” is not equal to “null” is


A. if(a!=null)
B. if (!a)
C. if(a!null)
D. if(a!==null)


Solution
D. if(a!==null)



Explanation
The not-equal operator !== compares o to null and evaluates to either true or false.
CCC Online Test Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online Exam Quiz O Level NIELIT Study material and Quiz Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Best Website and Software Company in Allahabad Website development Company in Allahabad