MCQ
Write a statement to check whether the variable x’ is having null value or not?
  • A
    if (x= null II x=” ”)
  • if (x=null II x = = ””)
  • C
    if= x=null II x==” ”
  • D
    if= x=not null

Answer

Correct option: B.
if (x=null II x = = ””)
if (x=null II x = = ””)

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