MCQ
Which if statement for a variable y which is empty, not a number, not equal to six digits?
  • A
    If (y=” “|| is Nan(y) || y.length > 6)
  • If(y= =““|| is Nan(y) || y.length >61|| y.length <6)
  • C
    a and b both
  • D
    None of these

Answer

Correct option: B.
If(y= =““|| is Nan(y) || y.length >61|| y.length <6)
If(y= =““|| is Nan(y) || y.length >61|| y.length <6)

Need a full question paper?

Generate a complete, print-ready paper with questions like this in minutes — across 16+ boards, with answer keys.

Start Generating Free